Field-loop advection: magnetic-energy loss against Athena++ and the exact field
Kaze matches Athena++ v24.0 on the Gardiner-Stone field-loop advection: magnetic-energy loss after two orbits is equal at 0.50, 0.21 and 0.11 on 64x32, 128x64 and 256x128 cells, both error figures of merit are 0.8 (gate 1) and div B stays below 7e-15; CPU, f64, 2026-11-21.

- Reference
- T. A. Gardiner
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Solver version
- Kaze 0.1.0+cdaf0423
- Grid
- 2D periodic [-1, 1] x [-0.5, 0.5], velocity (2, 1, 2), loop…
Results
Figures from the run.
Loss and field error relative to Athena++, with the bound

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 |
|---|---|---|---|---|
| Magnetic-energy loss, Kaze over 1.25 times Athena++, 64x32 cells (pass at or below 1) | 0.8 | |x| ≤ 1 | 80 % | ✓ pass |
| Field error against the exact loop, Kaze over 1.25 times Athena++, 64x32 cells (pass at or below 1) | 0.8 | |x| ≤ 1 | 80 % | ✓ pass |
| Largest relative divergence of B, 64x32 cells | 3.05e-15 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Magnetic-energy loss after two orbits, Kaze, 64x32 cells | 0.503 | not gated | reported only | reported |
| Magnetic-energy loss after two orbits, Athena++, 64x32 cells | 0.503 | not gated | reported only | reported |
| Magnetic-energy loss, Kaze over 1.25 times Athena++, 128x64 cells (pass at or below 1) | 0.8 | |x| ≤ 1 | 80 % | ✓ pass |
| Field error against the exact loop, Kaze over 1.25 times Athena++, 128x64 cells (pass at or below 1) | 0.8 | |x| ≤ 1 | 80 % | ✓ pass |
| Largest relative divergence of B, 128x64 cells | 4.16e-15 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Magnetic-energy loss after two orbits, Kaze, 128x64 cells | 0.209 | not gated | reported only | reported |
| Magnetic-energy loss after two orbits, Athena++, 128x64 cells | 0.209 | not gated | reported only | reported |
| Magnetic-energy loss, Kaze over 1.25 times Athena++, 256x128 cells (pass at or below 1)key | 0.8 | |x| ≤ 1 | 80 % | ✓ pass |
| Field error against the exact loop, Kaze over 1.25 times Athena++, 256x128 cells (pass at or below 1) | 0.8 | |x| ≤ 1 | 80 % | ✓ pass |
| Largest relative divergence of B, 256x128 cells | 6.83e-15 | |x| ≤ 1e-12 | <1 % | ✓ pass |
| Magnetic-energy loss after two orbits, Kaze, 256x128 cells | 0.11 | not gated | reported only | reported |
| Magnetic-energy loss after two orbits, Athena++, 256x128 cells | 0.11 | not gated | reported only | reported |
Setup and reproducibility
- Grid and numerics
- 2D periodic [-1, 1] x [-0.5, 0.5], velocity (2, 1, 2), loop amplitude 1e-3, radius 0.3, t = 2, 64x32 to 256x128 cells; PLM, HLLD, constrained transport, VL2, CFL 0.4
- Solver
- Kaze 0.1.0+cdaf0423
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Precision
- f64
- Code revision
- cdaf0423953c
- Physics
- MHD · field loop, advection, constrained transport, ideal mhd
- Run date
References
- 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 - Third-party code · reference, not our solver
J. M. Stone, K. Tomida, C. J. White, K. G. Felker, The Athena++ Adaptive Mesh Refinement Framework: Design and Magnetohydrodynamic Solvers, Astrophys. J. Suppl. Ser. 249 (2020) 4 (field-loop reference runs, v24.0)
doi:10.3847/1538-4365/ab929b


