Skip to content
DimensionLab

KazeMHDCPU · f64

Balsara magnetised vortex: in-plane field against the exact solution

Kaze reproduces the Balsara (2004) magnetised vortex after one period with an in-plane field error of 1.8e-4 at 256^2 cells, observed order 1.95 from 128^2 to 256^2 (gate 1.8) and div B at most 5.3e-15 (gate 1e-12); CPU, f64, 2026-11-21.

Kaze |B| after one period
Pass
3 of 3 gates met
1.95Observed order of the in-plane field error, 128^2 to 256^2 cells · gate ≥ 1.8
92 %
Reference
D. S. Balsara
Hardware
AMD EPYC Genoa server CPU, one thread
Solver version
Kaze 0.1.0+53e67d29
Grid
2D [-5, 5]^2 periodic, kappa = mu = 1, gamma 5/3, mean flow (1, 1)…

Results

Figures from the run.

Error against cells with second order

Error against cells with second order

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
Observed order of the in-plane field error, 128^2 to 256^2 cellskey1.95≥ 1.892 %✓ pass
Order gate 1.8 divided by the observed order (at most 1 passes)0.921|x| ≤ 192 %✓ pass
Largest relative divergence of the magnetic field5.3e-15|x| ≤ 1e-12<1 %✓ pass
Mean in-plane field error, 32^2 cells0.00837not gatedreported onlyreported
Mean in-plane field error, 64^2 cells0.00231not gatedreported onlyreported
Mean in-plane field error, 128^2 cells6.89e-4not gatedreported onlyreported
Mean in-plane field error, 256^2 cells1.78e-4not gatedreported onlyreported

Setup and reproducibility

Grid and numerics
2D [-5, 5]^2 periodic, kappa = mu = 1, gamma 5/3, mean flow (1, 1), t = 10, 32^2 to 256^2 cells; PLM, HLLD, constrained transport, VL2, CFL 0.4
Solver
Kaze 0.1.0+53e67d29
Hardware
AMD EPYC Genoa server CPU, one thread
Precision
f64
Code revision
53e67d29090e
Physics
MHD · magnetised vortex, divergence-free, convergence order
Run date

References

  • Analytic solution

    D. S. Balsara, Second-order-accurate schemes for magnetohydrodynamics with divergence-free reconstruction, Astrophys. J. Suppl. Ser. 151 (2004) 149-184

    doi:10.1086/381377