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.

- 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

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.
| Metric | Value | Gate | Allowance used | Result |
|---|---|---|---|---|
| Relative div B, Brio-Wu along x, f64 | 0 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Relative div B, Brio-Wu along x, f32 | 0 | |x| ≤ 1e-5 | <1 % | ✓ pass |
| Relative div B, Brio-Wu along y, f64 | 0 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Relative div B, Brio-Wu along y, f32 | 0 | |x| ≤ 1e-5 | <1 % | ✓ pass |
| Relative div B, Orszag-Tang 64^2, f64key | 2.6e-15 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Relative div B, Orszag-Tang 64^2, f32 | 1.74e-6 | |x| ≤ 1e-5 | 17 % | ✓ pass |
| Relative div B, field loop 64 x 32, f64 | 2.43e-15 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Relative div B, field loop 64 x 32, f32 | 1.85e-6 | |x| ≤ 1e-5 | 19 % | ✓ pass |
| Relative div B, fast wave 32 x 16, f64 | 1.4e-14 | |x| ≤ 1e-12 | 1 % | ✓ pass |
| Relative div B, fast wave 32 x 16, f32 | 4.29e-7 | |x| ≤ 1e-5 | 4 % | ✓ pass |
| Relative div B, drifting blast 50 x 75, f64 | 2.17e-15 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Relative div B, drifting blast 50 x 75, f32 | 4.24e-7 | |x| ≤ 1e-5 | 4 % | ✓ pass |
| Relative div B, radial expansion 64^2 with flux correction, f64 | 1.61e-15 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Relative div B, radial expansion 64^2 with flux correction, f32 | 3.59e-7 | |x| ≤ 1e-5 | 4 % | ✓ 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


