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 ratio from 256 to 512 cells, 0.665, misses the 0.6 bound. CPU, f64.

Density along the tube
Failed
3 of 4 gates met
0.665Error ratio from 256 to 512 cells · gate |x| ≤ 0.6
111 %

States, wave positions and convergence order pass; the coarse-grid error ratio misses its bound. A gate fixed before the run is not loosened.

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.6111 %✕ fail
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

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