Circularly polarised Alfven wave: convergence against the exact solution
Kaze reproduces the circularly polarised Alfven wave (Toth 2000) after one period with an RMS-L1 error of 2.7e-4 at 256x128 cells, an error ratio of 0.24 from 128 to 256 (Athena++ gate 0.3) and observed order 2.09 (gate 1.8); CPU, f64, 2026-11-15.

- Reference
- G. Toth
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Solver version
- Kaze 0.1.0+5cd3e93b
- Grid
- 2D periodic domain sqrt(5) x sqrt(5)/2, wave along the diagonal, n…
Results
Figures from the run.
Bz along a row vs exact

Error vs resolution

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 |
|---|---|---|---|---|
| RMS-L1 error, n = 64 | 0.00475 | not gated | reported only | reported |
| RMS-L1 error, n = 128 | 0.00116 | not gated | reported only | reported |
| RMS-L1 error, n = 256 | 2.72e-4 | not gated | reported only | reported |
| Error ratio, n = 256 over n = 128key | 0.236 | |x| ≤ 0.3 | 79 % | ✓ pass |
| Observed order, n = 128 to 256 | 2.09 | ≥ 1.8 | 86 % | ✓ pass |
| Difference between left- and right-going waves, n = 256 | 2.74e-17 | |x| ≤ 2e-6 | <1 % | ✓ pass |
| RMS-L1 error, n = 256, against the regression guard | 2.72e-4 | |x| ≤ 3e-4 | 91 % | ✓ pass |
Setup and reproducibility
- Grid and numerics
- 2D periodic domain sqrt(5) x sqrt(5)/2, wave along the diagonal, n x n/2 cells with n = 64, 128, 256, perpendicular field 0.1, CFL 0.4
- Solver
- Kaze 0.1.0+5cd3e93b
- Hardware
- AMD EPYC Genoa server CPU, one thread
- Precision
- f64
- Code revision
- 5cd3e93b1148
- Physics
- MHD · alfven wave, ideal mhd, convergence
- Run date
References
- Analytic solution
G. Toth, The div B = 0 constraint in shock-capturing magnetohydrodynamics codes, J. Comput. Phys. 161 (2000) 605-652 (exact nonlinear wave, section 6.3.1)
doi:10.1006/jcph.2000.6519In the Physics Atlas - 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 (circularly polarised Alfven wave test and its error gate)
doi:10.3847/1538-4365/ab929b


