Skip to content
DimensionLab

KazeMHDCPU · f64

Hunt flow in a rectangular duct at Ha 10 with compensated constrained transport

On an Intel Core i7-6800K CPU, Kaze reproduces the exact Hunt (1965) MHD duct solution at Ha 10 with a relative L2 velocity error of 8.0e-4 and magnetic-field error of 1.7e-4 on 128^2 cells (gate 1e-2), with the compensated constrained-transport update holding div B at 1.5e-16 (gate 1e-12); f64, 2026-11-27.

Kaze w(x, y), Hunt flow, 128^2
Pass
6 of 6 gates met
8.04e-4Relative L2 error of the velocity, 128^2 cells · gate |x| ≤ 0.01
8 %
Reference
J. C. R. Hunt
Hardware
Intel Core i7-6800K, one thread per run
Solver version
Kaze 0.1.0+f421d6ec
Grid
2D duct [-1, 1]^2, applied field along y, 32^2 / 64^2 / 128^2 cells

Results

Figures from the run.

w(y) across the Hartmann walls, Kaze and exact

w(y) across the Hartmann walls, Kaze and exact

Bz(x) across the side walls, Kaze and exact

Bz(x) across the side walls, Kaze and exact

div B against steps, default and compensated CT update

div B against steps, default and compensated CT update

w and Bz error against cells

w and Bz error against cells

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 L2 error of the velocity, 128^2 cellskey8.04e-4|x| ≤ 0.018 %✓ pass
Relative L2 error of the induced field Bz, 128^2 cells1.69e-4|x| ≤ 0.012 %✓ pass
Velocity order gate: 1.8 divided by observed order, 64^2 to 128^2 (pass at or below 1)0.912|x| ≤ 191 %✓ pass
Bz order gate: 1.8 divided by observed order, 64^2 to 128^2 (pass at or below 1)0.979|x| ≤ 198 %✓ pass
Velocity drift t = 27 to 30 over the velocity error, worst grid4.74e-4|x| ≤ 0.1<1 %✓ pass
Maximum normalised div B on the stored faces, every output and grid1.5e-16|x| ≤ 1e-12<1 %✓ pass

Setup and reproducibility

Grid and numerics
2D duct [-1, 1]^2, applied field along y, 32^2 / 64^2 / 128^2 cells; Mach 0.008; t = 30; PLM, HLLD, constrained transport with compensated face update, VL2
Solver
Kaze 0.1.0+f421d6ec
Hardware
Intel Core i7-6800K, one thread per run
Precision
f64
Code revision
f421d6ec0436
Physics
MHD · hunt flow, hartmann, duct flow, constrained transport, mhd
Run date

References