Dai-Woodward MHD shock tube: plateau states and wave positions
Kaze reproduces all six intermediate states of the Dai & Woodward (1994) MHD shock tube to 6.0e-04 of each variable's range (bound 0.01) and places all seven waves within 2.1e-03 of their published speeds (bound 0.01) at 4096 cells; RMS L1 error 9.89e-03 at 512 cells (Athena++ bound 0.01). CPU, f64.

- Reference
- W. Dai
- Hardware
- AMD EPYC Genoa server CPU
- Solver version
- Kaze 0.1.0+e0c5336b
- Grid
- 1D on [-0.5, 0.5], interface at 0, gamma 5/3, t = 0.2
Results
Figures from the run.
Density along the tube vs the published states

By along the tube vs the published states

Wave-position error against the published speeds

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 |
|---|---|---|---|---|
| Plateau states: largest error over 42 checks (fraction of range), 4096 cellskey | 6.03e-4 | |x| ≤ 0.01 | 6 % | ✓ pass |
| Plateau 1: largest primitive error (fraction of range), 4096 cells | 6.16e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Plateau 2: largest primitive error (fraction of range), 4096 cells | 5.54e-4 | |x| ≤ 0.01 | 6 % | ✓ pass |
| Plateau 3: largest primitive error (fraction of range), 4096 cells | 1.62e-4 | |x| ≤ 0.01 | 2 % | ✓ pass |
| Plateau 4: largest primitive error (fraction of range), 4096 cells | 2.54e-4 | |x| ≤ 0.01 | 3 % | ✓ pass |
| Plateau 5: largest primitive error (fraction of range), 4096 cells | 6.03e-4 | |x| ≤ 0.01 | 6 % | ✓ pass |
| Plateau 6: largest primitive error (fraction of range), 4096 cells | 7.48e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Left fast shock: position error in x/t, 4096 cells | 4.81e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Left rotational discontinuity: position error in x/t, 4096 cells | 1.93e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Left slow shock: position error in x/t, 4096 cells | 7.46e-4 | |x| ≤ 0.01 | 7 % | ✓ pass |
| Contact: position error in x/t, 4096 cells | 0.00208 | |x| ≤ 0.01 | 21 % | ✓ pass |
| Right slow shock: position error in x/t, 4096 cells | 7.61e-4 | |x| ≤ 0.01 | 8 % | ✓ pass |
| Right rotational discontinuity: position error in x/t, 4096 cells | 4.92e-6 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Right fast shock: position error in x/t, 4096 cells | 1.32e-4 | |x| ≤ 0.01 | 1 % | ✓ pass |
| RMS of conserved-variable L1 errors, 512 cells | 0.00989 | |x| ≤ 0.01 | 99 % | ✓ pass |
| Error ratio 512 to 256 cells | 0.534 | |x| ≤ 0.6 | 89 % | ✓ pass |
| RMS L1 error, 256 cells | 0.0185 | not gated | reported only | reported |
| Plateau states: largest error, 1024 cells | 0.00158 | not gated | reported only | reported |
| Wave positions: largest error, 1024 cells | 0.00704 | not gated | reported only | reported |
| Plateau states: largest error, 2048 cells | 0.00113 | not gated | reported only | reported |
| Wave positions: largest error, 2048 cells | 0.00381 | not gated | reported only | reported |
| Athena++ on the same case, same norm, 512 cells | 0.00989 | not gated | reported only | reported |
Setup and reproducibility
- Grid and numerics
- 1D on [-0.5, 0.5], interface at 0, gamma 5/3, t = 0.2; 256 and 512 cells for the RMS error, 1024, 2048 and 4096 cells for plateaus and waves (4096 judged); PLM, HLLD, VL2, CFL 0.3
- Solver
- Kaze 0.1.0+e0c5336b
- Hardware
- AMD EPYC Genoa server CPU
- Precision
- f64
- Code revision
- e0c5336b6a05
- Physics
- MHD · riemann problem, shock tube, ideal mhd, rotational discontinuity
- Run date
References
- Analytic solution
W. Dai, P. R. Woodward, Extension of the piecewise parabolic method to multidimensional ideal magnetohydrodynamics, J. Comput. Phys. 111 (1994) 354-372 (Tables Ia, Ib)
doi:10.1006/jcph.1994.1069 - Published benchmark
D. Ryu, T. W. Jones, Numerical magnetohydrodynamics in astrophysics: algorithm and tests for one-dimensional flow, Astrophys. J. 442 (1995) 228 (problem 2a)
doi:10.1086/175437 - Third-party code · reference, not our solver
J. M. Stone et al., The Athena++ adaptive mesh refinement framework, Astrophys. J. Suppl. 249 (2020) 4 (rj2a regression-test bound)
doi:10.3847/1538-4365/ab929b


