Skip to content
DimensionLab

KazeMHDCPU · f64

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.

Bz after one period
Pass
4 of 4 gates met
0.236Error ratio, n = 256 over n = 128 · gate |x| ≤ 0.3
79 %
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

Bz along a row vs exact

Error vs resolution

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.

MetricValueGateAllowance usedResult
RMS-L1 error, n = 640.00475not gatedreported onlyreported
RMS-L1 error, n = 1280.00116not gatedreported onlyreported
RMS-L1 error, n = 2562.72e-4not gatedreported onlyreported
Error ratio, n = 256 over n = 128key0.236|x| ≤ 0.379 %✓ pass
Observed order, n = 128 to 2562.09≥ 1.886 %✓ pass
Difference between left- and right-going waves, n = 2562.74e-17|x| ≤ 2e-6<1 %✓ pass
RMS-L1 error, n = 256, against the regression guard2.72e-4|x| ≤ 3e-491 %✓ 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