Skip to content
DimensionLab

KazeMHDCPU · f64

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.

Density along the tube (problem 4d)
Pass
18 of 18 gates met
0.00616Problem 1a: worst wave-position error in x/t, 4096 cells · gate |x| ≤ 0.01
62 %
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 1a: density along the tube vs the exact solution

Problem 2b: 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 3a: density along the tube vs the exact solution

Problem 4a: By 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

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

Worst plateau and wave-position errors against 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.

MetricValueGateAllowance usedResult
Problem 1a: worst plateau error (fraction of range), 4096 cells2.07e-5|x| ≤ 0.01<1 %✓ pass
Problem 1a: worst wave-position error in x/t, 4096 cellskey0.00616|x| ≤ 0.0162 %✓ pass
Problem 1b: worst plateau error (fraction of range), 4096 cells3.08e-4|x| ≤ 0.013 %✓ pass
Problem 1b: worst wave-position error in x/t, 4096 cells0.0067|x| ≤ 0.0167 %✓ pass
Problem 2b: worst plateau error (fraction of range), 4096 cells8.33e-4|x| ≤ 0.018 %✓ pass
Problem 2b: worst wave-position error in x/t, 4096 cells0.00409|x| ≤ 0.0141 %✓ pass
Problem 3a: worst plateau error (fraction of range), 4096 cells5.52e-5|x| ≤ 0.01<1 %✓ pass
Problem 3a: worst wave-position error in x/t, 4096 cells0.00445|x| ≤ 0.0144 %✓ pass
Problem 3b: worst plateau error (fraction of range), 4096 cells2.34e-6|x| ≤ 0.01<1 %✓ pass
Problem 3b: worst wave-position error in x/t, 4096 cells4.75e-4|x| ≤ 0.015 %✓ pass
Problem 4a: worst plateau error (fraction of range), 4096 cells8.28e-6|x| ≤ 0.01<1 %✓ pass
Problem 4a: worst wave-position error in x/t, 4096 cells0.00305|x| ≤ 0.0130 %✓ pass
Problem 4b: worst plateau error (fraction of range), 4096 cells1.6e-5|x| ≤ 0.01<1 %✓ pass
Problem 4b: worst wave-position error in x/t, 4096 cells0.00114|x| ≤ 0.0111 %✓ pass
Problem 4c: worst plateau error (fraction of range), 4096 cells8.09e-6|x| ≤ 0.01<1 %✓ pass
Problem 4c: worst wave-position error in x/t, 4096 cells8.87e-4|x| ≤ 0.019 %✓ pass
Problem 4d: worst plateau error (fraction of range), 4096 cells0.001|x| ≤ 0.0110 %✓ pass
Problem 4d: worst wave-position error in x/t, 4096 cells0.0039|x| ≤ 0.0139 %✓ pass
Problem 1a: mean L1 error (fraction of range), 4096 cells4.9e-4not gatedreported onlyreported
Problem 1b: mean L1 error (fraction of range), 4096 cells6.91e-4not gatedreported onlyreported
Problem 2b: mean L1 error (fraction of range), 4096 cells7.43e-4not gatedreported onlyreported
Problem 3a: mean L1 error (fraction of range), 4096 cells6.14e-4not gatedreported onlyreported
Problem 3b: mean L1 error (fraction of range), 4096 cells3.01e-4not gatedreported onlyreported
Problem 4a: mean L1 error (fraction of range), 4096 cells3.16e-4not gatedreported onlyreported
Problem 4b: mean L1 error (fraction of range), 4096 cells2.71e-4not gatedreported onlyreported
Problem 4c: mean L1 error (fraction of range), 4096 cells3.15e-4not gatedreported onlyreported
Problem 4d: mean L1 error (fraction of range), 4096 cells6.47e-4not gatedreported onlyreported

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