Skip to content
DimensionLab

KazeMHDCPU · f64

Ryu-Jones 2a MHD shock tube: error against the published solution

Kaze reproduces the Ryu-Jones 2a (Dai-Woodward) MHD shock tube with an RMS error of 9.9e-3 at 512 cells (gate 0.01), the same as Athena++'s 9.9e-3, and an error ratio of 0.53 from 256 to 512 cells (gate 0.6); CPU, f64, 2026-11-21.

Density along the tube
Pass
2 of 2 gates met
0.00989RMS error over the conserved variables, 512 cells · gate |x| ≤ 0.01
99 %
Reference
D. Ryu
Hardware
AMD EPYC Genoa server CPU, one thread
Solver version
Kaze 0.1.0+cdaf0423
Grid
1D on [-0.5, 0.5], gamma 5/3, Bx = 2/sqrt(4 pi), t = 0.2, 256 and…

Results

Figures from the run.

By vs the published solution

By vs the published solution

Density vs the published solution

Density vs the published solution

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
RMS error over the conserved variables, 512 cellskey0.00989|x| ≤ 0.0199 %✓ pass
RMS error ratio, 512 over 256 cells0.534|x| ≤ 0.689 %✓ pass
RMS error over the conserved variables, 256 cells0.0185not gatedreported onlyreported
Athena++ RMS error, 512 cells0.00989not gatedreported onlyreported
RMS error, 512 cells, CFL 0.80.00935not gatedreported onlyreported

Setup and reproducibility

Grid and numerics
1D on [-0.5, 0.5], gamma 5/3, Bx = 2/sqrt(4 pi), t = 0.2, 256 and 512 cells; PLM, HLLD, VL2, CFL 0.3
Solver
Kaze 0.1.0+cdaf0423
Hardware
AMD EPYC Genoa server CPU, one thread
Precision
f64
Code revision
cdaf0423953c
Physics
MHD · mhd shock tube, riemann problem, hlld
Run date

References

  • Published benchmark

    D. Ryu, T. W. Jones, Numerical magnetohydrodynamics in astrophysics: algorithm and tests for one-dimensional flow, Astrophys. J. 442 (1995) 228-258

    doi:10.1086/175437
  • Analytic solution

    W. Dai, P. R. Woodward, An approximate Riemann solver for ideal magnetohydrodynamics, J. Comput. Phys. 111 (1994) 354-372

    doi:10.1006/jcph.1994.1069
  • 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