Ryu-Jones MHD shock tubes against the exact Riemann solution
Kaze matches the exact solution of all nine Ryu & Jones (1995) MHD shock tubes at 4096 cells: intermediate states within 1.0e-03 of each variable's range and wave positions within 6.7e-03 in x/t (bounds 0.01). Problem 3a, a Mach 19 stream with no normal field, needs a first-order flux correction in one cell at the start. CPU, f64.

- Reference
- D. Ryu
- Hardware
- AMD EPYC Genoa server CPU
- Solver version
- Kaze 0.1.0+28d4797a
- Grid
- 1D on [-0.5, 0.5], interface at 0, gamma 5/3
Results
Figures from the run.
Problem 1a: density along the tube vs the exact solution

Problem 2b: density along the tube vs the exact solution

Problem 3a: density along the tube vs the exact solution

Problem 4a: By along the tube vs the exact solution

Problem 4d: density along the tube vs the exact solution

Worst plateau and wave-position errors against the exact 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.
| Metric | Value | Gate | Allowance used | Result |
|---|---|---|---|---|
| Problem 1a: worst plateau error (fraction of range), 4096 cells | 2.07e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Problem 1a: worst wave-position error in x/t, 4096 cellskey | 0.00616 | |x| ≤ 0.01 | 62 % | ✓ pass |
| Problem 1b: worst plateau error (fraction of range), 4096 cells | 3.08e-4 | |x| ≤ 0.01 | 3 % | ✓ pass |
| Problem 1b: worst wave-position error in x/t, 4096 cells | 0.0067 | |x| ≤ 0.01 | 67 % | ✓ pass |
| Problem 2b: worst plateau error (fraction of range), 4096 cells | 8.33e-4 | |x| ≤ 0.01 | 8 % | ✓ pass |
| Problem 2b: worst wave-position error in x/t, 4096 cells | 0.00409 | |x| ≤ 0.01 | 41 % | ✓ pass |
| Problem 3a: worst plateau error (fraction of range), 4096 cells | 5.52e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Problem 3a: worst wave-position error in x/t, 4096 cells | 0.00445 | |x| ≤ 0.01 | 44 % | ✓ pass |
| Problem 3b: worst plateau error (fraction of range), 4096 cells | 2.34e-6 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Problem 3b: worst wave-position error in x/t, 4096 cells | 4.75e-4 | |x| ≤ 0.01 | 5 % | ✓ pass |
| Problem 4a: worst plateau error (fraction of range), 4096 cells | 8.28e-6 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Problem 4a: worst wave-position error in x/t, 4096 cells | 0.00305 | |x| ≤ 0.01 | 30 % | ✓ pass |
| Problem 4b: worst plateau error (fraction of range), 4096 cells | 1.6e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Problem 4b: worst wave-position error in x/t, 4096 cells | 0.00114 | |x| ≤ 0.01 | 11 % | ✓ pass |
| Problem 4c: worst plateau error (fraction of range), 4096 cells | 8.09e-6 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Problem 4c: worst wave-position error in x/t, 4096 cells | 8.87e-4 | |x| ≤ 0.01 | 9 % | ✓ pass |
| Problem 4d: worst plateau error (fraction of range), 4096 cells | 0.001 | |x| ≤ 0.01 | 10 % | ✓ pass |
| Problem 4d: worst wave-position error in x/t, 4096 cells | 0.0039 | |x| ≤ 0.01 | 39 % | ✓ pass |
| Problem 1a: mean L1 error (fraction of range), 4096 cells | 4.9e-4 | not gated | reported only | reported |
| Problem 1b: mean L1 error (fraction of range), 4096 cells | 6.91e-4 | not gated | reported only | reported |
| Problem 2b: mean L1 error (fraction of range), 4096 cells | 7.43e-4 | not gated | reported only | reported |
| Problem 3a: mean L1 error (fraction of range), 4096 cells | 6.14e-4 | not gated | reported only | reported |
| Problem 3b: mean L1 error (fraction of range), 4096 cells | 3.01e-4 | not gated | reported only | reported |
| Problem 4a: mean L1 error (fraction of range), 4096 cells | 3.16e-4 | not gated | reported only | reported |
| Problem 4b: mean L1 error (fraction of range), 4096 cells | 2.71e-4 | not gated | reported only | reported |
| Problem 4c: mean L1 error (fraction of range), 4096 cells | 3.15e-4 | not gated | reported only | reported |
| Problem 4d: mean L1 error (fraction of range), 4096 cells | 6.47e-4 | not gated | reported only | reported |
Setup and reproducibility
- Grid and numerics
- 1D on [-0.5, 0.5], interface at 0, gamma 5/3; 512, 1024, 2048 and 4096 cells (4096 judged); PLM, HLLD, VL2, CFL 0.3
- Solver
- Kaze 0.1.0+28d4797a
- Hardware
- AMD EPYC Genoa server CPU
- Precision
- f64
- Code revision
- 28d4797ab759
- Physics
- MHD · riemann problem, shock tube, ideal mhd, switch-on shock
- 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 (problems 1a-4d)
doi:10.1086/175437 - Analytic solution
M. Torrilhon, Uniqueness conditions for Riemann problems of ideal magnetohydrodynamics, J. Plasma Phys. 69 (2003) 253-276 (method of the exact solution)
doi:10.1017/S0022377803002186 - Analytic solution
W. Dai, P. R. Woodward, Extension of the piecewise parabolic method to multidimensional ideal magnetohydrodynamics, J. Comput. Phys. 111 (1994) 354-372 (states the exact solver reproduces before use)
doi:10.1006/jcph.1994.1069


