Skip to content
DimensionLab

KazeMHDNVIDIA GPU · f64 and f32 storage

2D MHD with constrained transport on the GPU: divergence of the magnetic field

Kaze's 2D MHD solver with constrained transport on an NVIDIA GeForce RTX 3090 keeps the relative div B at or below 1.4e-14 in f64 (gate 1e-12) and 1.9e-6 in f32 storage (gate 1e-5) in all 7 cases, including Orszag-Tang and a field loop; 2026-11-15.

Device density, Orszag-Tang 64^2
Pass
14 of 14 gates met
2.6e-15Relative div B, Orszag-Tang 64^2, f64 · gate |x| ≤ 1e-12
<1 %
Reference
C. R. Evans
Hardware
NVIDIA GeForce RTX 3090
Solver version
Kaze 0.1.0+6b5a6a06
Grid
2D MHD, 7 cases: Brio-Wu 200 x 4 (both axes), Orszag-Tang 64^2…

Results

Figures from the run.

div B against its bound, every case

div B against its bound, every case

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
Relative div B, Brio-Wu along x, f640|x| ≤ 1e-12<1 %✓ pass
Relative div B, Brio-Wu along x, f320|x| ≤ 1e-5<1 %✓ pass
Relative div B, Brio-Wu along y, f640|x| ≤ 1e-12<1 %✓ pass
Relative div B, Brio-Wu along y, f320|x| ≤ 1e-5<1 %✓ pass
Relative div B, Orszag-Tang 64^2, f64key2.6e-15|x| ≤ 1e-12<1 %✓ pass
Relative div B, Orszag-Tang 64^2, f321.74e-6|x| ≤ 1e-517 %✓ pass
Relative div B, field loop 64 x 32, f642.43e-15|x| ≤ 1e-12<1 %✓ pass
Relative div B, field loop 64 x 32, f321.85e-6|x| ≤ 1e-519 %✓ pass
Relative div B, fast wave 32 x 16, f641.4e-14|x| ≤ 1e-121 %✓ pass
Relative div B, fast wave 32 x 16, f324.29e-7|x| ≤ 1e-54 %✓ pass
Relative div B, drifting blast 50 x 75, f642.17e-15|x| ≤ 1e-12<1 %✓ pass
Relative div B, drifting blast 50 x 75, f324.24e-7|x| ≤ 1e-54 %✓ pass
Relative div B, radial expansion 64^2 with flux correction, f641.61e-15|x| ≤ 1e-12<1 %✓ pass
Relative div B, radial expansion 64^2 with flux correction, f323.59e-7|x| ≤ 1e-54 %✓ pass

Setup and reproducibility

Grid and numerics
2D MHD, 7 cases: Brio-Wu 200 x 4 (both axes), Orszag-Tang 64^2, field loop 64 x 32, fast wave 32 x 16, blast 50 x 75, radial expansion 64^2; PLM, HLLD, constrained transport, VL2
Solver
Kaze 0.1.0+6b5a6a06
Hardware
NVIDIA GeForce RTX 3090
driver 575.51.03, CUDA 12.8
Precision
f64 and f32 storage
Code revision
6b5a6a064b1d
Physics
MHD · gpu, constrained transport, divergence-free
Run date

References

  • Analytic solution

    C. R. Evans, J. F. Hawley, Simulation of magnetohydrodynamic flows: a constrained transport method, Astrophys. J. 332 (1988) 659-677

    doi:10.1086/166684In the Physics Atlas
  • Published benchmark

    T. A. Gardiner, J. M. Stone, An unsplit Godunov method for ideal MHD via constrained transport, J. Comput. Phys. 205 (2005) 509-539

    doi:10.1016/j.jcp.2004.11.016