Skip to content
DimensionLab

KazeMHDCPU · f64

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.

Density along the tube
Pass
16 of 16 gates met
6.03e-4Plateau states: largest error over 42 checks (fraction of range), 4096 cells · gate |x| ≤ 0.01
6 %
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

Density along the tube vs the published states

By along the tube vs the published states

By along the tube vs the published states

Wave-position error against the published speeds

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.

MetricValueGateAllowance usedResult
Plateau states: largest error over 42 checks (fraction of range), 4096 cellskey6.03e-4|x| ≤ 0.016 %✓ pass
Plateau 1: largest primitive error (fraction of range), 4096 cells6.16e-5|x| ≤ 0.01<1 %✓ pass
Plateau 2: largest primitive error (fraction of range), 4096 cells5.54e-4|x| ≤ 0.016 %✓ pass
Plateau 3: largest primitive error (fraction of range), 4096 cells1.62e-4|x| ≤ 0.012 %✓ pass
Plateau 4: largest primitive error (fraction of range), 4096 cells2.54e-4|x| ≤ 0.013 %✓ pass
Plateau 5: largest primitive error (fraction of range), 4096 cells6.03e-4|x| ≤ 0.016 %✓ pass
Plateau 6: largest primitive error (fraction of range), 4096 cells7.48e-5|x| ≤ 0.01<1 %✓ pass
Left fast shock: position error in x/t, 4096 cells4.81e-5|x| ≤ 0.01<1 %✓ pass
Left rotational discontinuity: position error in x/t, 4096 cells1.93e-5|x| ≤ 0.01<1 %✓ pass
Left slow shock: position error in x/t, 4096 cells7.46e-4|x| ≤ 0.017 %✓ pass
Contact: position error in x/t, 4096 cells0.00208|x| ≤ 0.0121 %✓ pass
Right slow shock: position error in x/t, 4096 cells7.61e-4|x| ≤ 0.018 %✓ pass
Right rotational discontinuity: position error in x/t, 4096 cells4.92e-6|x| ≤ 0.01<1 %✓ pass
Right fast shock: position error in x/t, 4096 cells1.32e-4|x| ≤ 0.011 %✓ pass
RMS of conserved-variable L1 errors, 512 cells0.00989|x| ≤ 0.0199 %✓ pass
Error ratio 512 to 256 cells0.534|x| ≤ 0.689 %✓ pass
RMS L1 error, 256 cells0.0185not gatedreported onlyreported
Plateau states: largest error, 1024 cells0.00158not gatedreported onlyreported
Wave positions: largest error, 1024 cells0.00704not gatedreported onlyreported
Plateau states: largest error, 2048 cells0.00113not gatedreported onlyreported
Wave positions: largest error, 2048 cells0.00381not gatedreported onlyreported
Athena++ on the same case, same norm, 512 cells0.00989not gatedreported onlyreported

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