Skip to content
DimensionLab

KazeCompressible flowCPU · f64

Well-posed Kelvin-Helmholtz instability: density and mode amplitude against Athena++

Kaze reproduces Athena++ v24.0 on the well-posed Kelvin-Helmholtz problem of McNally et al. (2012): density differs by 1.9e-4 of Athena++'s own refinement change at 256^2 (gate 0.5) and the mode amplitude is 0.14665 in both codes; code to code comparison; CPU, f64, 2026-11-21.

Kaze density at t = 1.5
Pass
5 of 5 gates met
1.86e-4Density L1 difference from Athena++ relative to Athena++'s refinement change, 256^2 cells · gate |x| ≤ 0.5
<1 %
Reference
C. P. McNally
Hardware
AMD EPYC Genoa server CPU, one thread
Solver version
Kaze 0.1.0+53e67d29
Grid
2D periodic unit square, gamma 5/3, t = 1.5, 128^2 and 256^2 cells

Results

Figures from the run.

Matched-resolution difference with the gate

Matched-resolution difference with the gate

Metrics and gates

Each gate is fixed before the run. The bar shows how much of its allowance a metric uses: the line marks the gate, so a bar past it fails. A metric without a gate is reported for context and does not decide the verdict.

MetricValueGateAllowance usedResult
Density L1 difference from Athena++ relative to Athena++'s refinement change, 128^2 cells5.45e-4|x| ≤ 0.5<1 %✓ pass
Density L1 difference between Kaze and Athena++, 128^2 cells2.87e-6not gatedreported onlyreported
Density L1 difference from Athena++ relative to Athena++'s refinement change, 256^2 cellskey1.86e-4|x| ≤ 0.5<1 %✓ pass
Density L1 difference between Kaze and Athena++, 256^2 cells2.48e-7not gatedreported onlyreported
Mode amplitude difference from Athena++ relative to Athena++'s refinement change, 128^2 cells5.89e-4|x| ≤ 0.5<1 %✓ pass
Mode amplitude difference between Kaze and Athena++, 128^2 cells4.08e-6not gatedreported onlyreported
Mode amplitude difference from Athena++ relative to Athena++'s refinement change, 256^2 cells1.8e-4|x| ≤ 0.5<1 %✓ pass
Mode amplitude difference between Kaze and Athena++, 256^2 cells1.96e-7not gatedreported onlyreported
Deviation of Kaze's refinement change from Athena++'s (relative)3.6e-4|x| ≤ 0.25<1 %✓ pass
Kaze mode amplitude, 256^2 cells0.147not gatedreported onlyreported
Athena++ mode amplitude, 256^2 cells0.147not gatedreported onlyreported

Setup and reproducibility

Grid and numerics
2D periodic unit square, gamma 5/3, t = 1.5, 128^2 and 256^2 cells; PLM, HLLC, VL2, first-order flux correction, CFL 0.4
Solver
Kaze 0.1.0+53e67d29
Hardware
AMD EPYC Genoa server CPU, one thread
Precision
f64
Code revision
53e67d29090e
Physics
Compressible flow · kelvin-helmholtz, shear layer, code comparison
Run date

References

  • Published benchmark

    C. P. McNally, W. Lyra, J.-C. Passy, A well-posed Kelvin-Helmholtz instability test and comparison, Astrophys. J. Suppl. Ser. 201 (2012) 18

    doi:10.1088/0067-0049/201/2/18
  • Third-party code · reference, not our solver

    J. M. Stone, K. Tomida, C. J. White, K. G. Felker, The Athena++ adaptive mesh refinement framework: design and magnetohydrodynamic solvers, Astrophys. J. Suppl. Ser. 249 (2020) 4

    doi:10.3847/1538-4365/ab929b