Skip to content
DimensionLab

KazeMHDCPU · f64

Shercliff duct flow with insulating walls at Ha 10: velocity, induced field and div B

Kaze matches the exact Shercliff (1953) solution for flow in a square duct with insulating walls at Hartmann number 10: relative L2 error 7.3e-04 in velocity and 1.5e-03 in the induced field at 128 x 128 (gate 1e-2), observed order about 2, and div B 1.5e-16 (gate 1e-12) with the compensated field update; CPU, f64, 2026-11-27.

Kaze w(x, y), Shercliff duct, 128^2
Pass
6 of 6 gates met
7.28e-4Velocity, relative L2 error, 128 x 128 · gate |x| ≤ 0.01
7 %
Reference
J. A. Shercliff
Hardware
Intel Core i7-6800K workstation CPU, one thread
Solver version
Kaze 0.1.0+f421d6ec
Grid
2D duct [-1, 1]^2, applied field along y, 32^2 / 64^2 / 128^2, Mach…

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
Velocity, relative L2 error, 128 x 128key7.28e-4|x| ≤ 0.017 %✓ pass
Induced field, relative L2 error, 128 x 1280.00153|x| ≤ 0.0115 %✓ pass
Velocity convergence order 64 to 128 (shown as 1.8 over order)0.822|x| ≤ 182 %✓ pass
Induced field convergence order 64 to 128 (shown as 1.8 over order)0.9|x| ≤ 190 %✓ pass
Steady-state drift over the velocity error, worst grid0.00196|x| ≤ 0.12 %✓ pass
Largest normalised div B on any grid and output1.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, Mach 0.008, t = 30, PLM + HLLD + constrained transport (compensated face update) + VL2
Solver
Kaze 0.1.0+f421d6ec
Hardware
Intel Core i7-6800K workstation CPU, one thread
Precision
f64
Code revision
f421d6ec0436
Physics
MHD · shercliff, duct flow, hartmann number, div b, constrained transport
Run date

References

  • Analytic solution

    J. A. Shercliff, Steady motion of conducting fluids in pipes under transverse magnetic fields, Math. Proc. Cambridge Philos. Soc. 49 (1953) 136-144 (exact series solution, insulating walls)

    doi:10.1017/s0305004100028139In the Physics Atlas