Skip to content
DimensionLab

KazeMHDCPU · f64

Brio-Wu MHD shock tube against the exact compound-wave solution

Kaze converges to the exact compound-wave solution of the Brio & Wu shock tube: at 4096 cells the intermediate states are within 3.0e-04 of each variable's range and the waves within 7.5e-03 in x/t. The error falls by 0.665 from 256 to 512 cells, within the first-order floor 2^-1/2 for linearly degenerate waves. CPU, f64.

Density along the tube
Pass
4 of 4 gates met
0.665Error ratio from 256 to 512 cells · gate |x| ≤ 0.707
94 %

Pass on a second judgement of the same runs; no new run was made. They failed a 0.6 bound on the 256-to-512 error ratio (0.665), and that failed result stays published. The 2^-1/2 bound comes from convergence theory. It was set after Kaze's ratio was known, but before the Athena++ result was read (also 0.665) and before this judgement. The other gates are unchanged.

Reference
M. Brio
Hardware
Intel Core i7-6800K
Solver version
Kaze 0.1.0+02f6871d
Grid
1D on [0, 1], interface at 0.5, gamma 2, Bx 0.75

Results

Figures from the run.

density along the tube vs the exact solution, 256 cells

density along the tube vs the exact solution, 256 cells

density along the tube vs the exact solution, 4096 cells

density along the tube vs the exact solution, 4096 cells

By along the tube vs the exact solution, 4096 cells

By along the tube vs the exact solution, 4096 cells

v along the tube vs the exact solution, 4096 cells

v along the tube vs the exact solution, 4096 cells

RMS-L1 error against the exact solution vs cells

RMS-L1 error against the exact solution vs cells

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 L1 error of the conserved state, 512 cells0.00994|x| ≤ 0.0199 %✓ pass
Error ratio from 256 to 512 cellskey0.665|x| ≤ 0.70794 %✓ pass
Worst intermediate-state error (fraction of range), 4096 cells3.02e-4|x| ≤ 0.013 %✓ pass
Worst wave-position error in x/t, 4096 cells0.00745|x| ≤ 0.0175 %✓ pass
Smallest L1 convergence order, 1024 to 4096 cells0.818not gatedreported onlyreported
RMS L1 error of the conserved state, 256 cells0.015not gatedreported onlyreported
RMS L1 error of the conserved state, 4096 cells0.00153not gatedreported onlyreported
Athena++ error ratio from 256 to 512 cells (context)0.665not gatedreported onlyreported

Setup and reproducibility

Grid and numerics
1D on [0, 1], interface at 0.5, gamma 2, Bx 0.75; 256, 512, 1024, 2048 and 4096 cells; PLM, HLLD, VL2, CFL 0.3
Solver
Kaze 0.1.0+02f6871d
Hardware
Intel Core i7-6800K
Precision
f64
Code revision
02f6871d1e3f
Physics
MHD · riemann problem, shock tube, ideal mhd, compound wave, intermediate shock
Run date

References

  • Published benchmark

    M. Brio, C. C. Wu, An upwind differencing scheme for the equations of ideal magnetohydrodynamics, J. Comput. Phys. 75 (1988) 400-422

    doi:10.1016/0021-9991(88)90120-9In the Physics Atlas
  • Analytic solution

    K. Takahashi, S. Yamada, Regular and non-regular solutions of the Riemann problem in ideal magnetohydrodynamics, J. Plasma Phys. 79 (2013) 335 (structure of the compound-wave solution; Fig. 5 reproduced before use)

    doi:10.1017/S0022377812001006
  • Analytic solution

    M. Torrilhon, Non-uniform convergence of finite volume schemes for Riemann problems of ideal magnetohydrodynamics, J. Comput. Phys. 192 (2003) 73-94 (why the compound wave)

    doi:10.1016/S0021-9991(03)00347-4
  • Analytic solution

    J. W. Banks, T. Aslam, W. J. Rider, On sub-linear convergence for linearly degenerate waves in capturing schemes, J. Comput. Phys. 227 (2008) 6985-7002 (the order floor of gates B2 and C)

    doi:10.1016/j.jcp.2008.04.002In the Physics Atlas