Skip to content
DimensionLab

KazeMHDCPU · f64

Hartmann flow against the exact solution: conducting and insulating walls, Ha 2, 10 and 30

Kaze reproduces the exact Hartmann profiles of velocity and magnetic field for Ha 2, 10 and 30 with conducting and insulating walls (finest-grid relative L2 error at most 6.1e-4, gate 1e-2), but fails the convergence-order gate (at least 1.8) for the field Bx with conducting walls at Ha 10 (1.73) and Ha 30 (1.76); Intel Core i7-6800K CPU, f64, 2026-11-26.

Kaze u(y) as a colour band, Ha 30 conducting
Failed
32 of 34 gates met
1.01e-4Ha 2, conducting walls: relative L2 error of velocity, 128 cells across · gate |x| ≤ 0.01
1 %

Passed: finest-grid error gate for all six wall and Ha pairs, steady-state drift, divergence-free field and the low-Mach compressibility share at Ha 30. Failed: the order-of-convergence gate (1.8) for Bx with conducting walls at Ha 10 (order 1.73) and Ha 30 (1.76); the velocity orders pass (1.87, 1.81).

Reference
U. Muller
Hardware
Intel Core i7-6800K, one thread per run
Solver version
Kaze 0.1.0+6b7838d6
Grid
2D channel, walls at y = -1 and 1, periodic in x

Results

Figures from the run.

u(y), Kaze and exact, Ha 30 conducting

u(y), Kaze and exact, Ha 30 conducting

Bx(y), Kaze and exact, Ha 30 conducting

Bx(y), Kaze and exact, Ha 30 conducting

Bx error against cells, every Ha and wall

Bx error against cells, every Ha and wall

u(y), Kaze and exact, Ha 30 insulating

u(y), Kaze and exact, Ha 30 insulating

Bx(y), Kaze and exact, Ha 30 insulating

Bx(y), Kaze and exact, Ha 30 insulating

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
Ha 2, conducting walls: relative L2 error of velocity, 128 cells acrosskey1.01e-4|x| ≤ 0.011 %✓ pass
Ha 2, conducting walls: relative L2 error of field Bx, 128 cells across8.38e-5|x| ≤ 0.01<1 %✓ pass
Ha 2, conducting walls: 1.8 divided by convergence order of velocity (pass at or below 1)0.901|x| ≤ 190 %✓ pass
Ha 2, conducting walls: 1.8 divided by convergence order of field Bx (pass at or below 1)0.934|x| ≤ 193 %✓ pass
Ha 2, conducting walls: steady-state drift (t = 27 to 30) over the error (pass at or below 0.1)3.89e-4|x| ≤ 0.1<1 %✓ pass
Ha 2, insulating walls: relative L2 error of velocity, 128 cells across9.96e-5|x| ≤ 0.01<1 %✓ pass
Ha 2, insulating walls: relative L2 error of field Bx, 128 cells across4.27e-4|x| ≤ 0.014 %✓ pass
Ha 2, insulating walls: 1.8 divided by convergence order of velocity (pass at or below 1)0.899|x| ≤ 190 %✓ pass
Ha 2, insulating walls: 1.8 divided by convergence order of field Bx (pass at or below 1)0.885|x| ≤ 188 %✓ pass
Ha 2, insulating walls: steady-state drift (t = 27 to 30) over the error (pass at or below 0.1)2.22e-4|x| ≤ 0.1<1 %✓ pass
Ha 10, conducting walls: relative L2 error of velocity, 256 cells across1.78e-4|x| ≤ 0.012 %✓ pass
Ha 10, conducting walls: relative L2 error of field Bx, 256 cells across2.59e-5|x| ≤ 0.01<1 %✓ pass
Ha 10, conducting walls: 1.8 divided by convergence order of velocity (pass at or below 1)0.961|x| ≤ 196 %✓ pass
Ha 10, conducting walls: 1.8 divided by convergence order of field Bx (pass at or below 1)1.04|x| ≤ 1104 %✕ fail
Ha 10, conducting walls: steady-state drift (t = 27 to 30) over the error (pass at or below 0.1)0.00175|x| ≤ 0.12 %✓ pass
Ha 10, insulating walls: relative L2 error of velocity, 256 cells across2.15e-4|x| ≤ 0.012 %✓ pass
Ha 10, insulating walls: relative L2 error of field Bx, 256 cells across3.69e-4|x| ≤ 0.014 %✓ pass
Ha 10, insulating walls: 1.8 divided by convergence order of velocity (pass at or below 1)0.779|x| ≤ 178 %✓ pass
Ha 10, insulating walls: 1.8 divided by convergence order of field Bx (pass at or below 1)0.876|x| ≤ 188 %✓ pass
Ha 10, insulating walls: steady-state drift (t = 27 to 30) over the error (pass at or below 0.1)0.00114|x| ≤ 0.11 %✓ pass
Ha 30, conducting walls: relative L2 error of velocity, 512 cells across1.97e-4|x| ≤ 0.012 %✓ pass
Ha 30, conducting walls: relative L2 error of field Bx, 512 cells across9.11e-6|x| ≤ 0.01<1 %✓ pass
Ha 30, conducting walls: 1.8 divided by convergence order of velocity (pass at or below 1)0.993|x| ≤ 199 %✓ pass
Ha 30, conducting walls: 1.8 divided by convergence order of field Bx (pass at or below 1)1.02|x| ≤ 1102 %✕ fail
Ha 30, conducting walls: steady-state drift (t = 27 to 30) over the error (pass at or below 0.1)0.00504|x| ≤ 0.15 %✓ pass
Ha 30, conducting walls: share of the velocity error due to compressibility (pass at or below 0.1)0.0221|x| ≤ 0.122 %✓ pass
Ha 30, conducting walls: share of the field Bx error due to compressibility (pass at or below 0.1)0.00546|x| ≤ 0.15 %✓ pass
Ha 30, insulating walls: relative L2 error of velocity, 512 cells across6.12e-4|x| ≤ 0.016 %✓ pass
Ha 30, insulating walls: relative L2 error of field Bx, 512 cells across4.12e-4|x| ≤ 0.014 %✓ pass
Ha 30, insulating walls: 1.8 divided by convergence order of velocity (pass at or below 1)0.65|x| ≤ 165 %✓ pass
Ha 30, insulating walls: 1.8 divided by convergence order of field Bx (pass at or below 1)0.881|x| ≤ 188 %✓ pass
Ha 30, insulating walls: steady-state drift (t = 27 to 30) over the error (pass at or below 0.1)0.00474|x| ≤ 0.15 %✓ pass
Ha 30, insulating walls: share of the velocity error due to compressibility (pass at or below 0.1)0.0337|x| ≤ 0.134 %✓ pass
Ha 30, insulating walls: share of the field Bx error due to compressibility (pass at or below 0.1)9.73e-4|x| ≤ 0.1<1 %✓ pass

Setup and reproducibility

Grid and numerics
2D channel, walls at y = -1 and 1, periodic in x; Ha 2, 10, 30 on 32-128, 64-256, 128-512 cells; Mach 0.008; t = 30; PLM, HLLD, CT, VL2
Solver
Kaze 0.1.0+6b7838d6
Hardware
Intel Core i7-6800K, one thread per run
Precision
f64
Code revision
6b7838d612ac
Physics
MHD · hartmann flow, magnetohydrodynamics, constrained transport, convergence order, low mach
Run date

References

  • Analytic solution

    U. Muller, L. Buhler, Magnetofluiddynamics in Channels and Containers, Springer, 2001 (exact Hartmann profiles, conducting and insulating walls)

    doi:10.1007/978-3-662-04405-6