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.

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

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

Bx error against cells, every Ha and wall

u(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.
| Metric | Value | Gate | Allowance used | Result |
|---|---|---|---|---|
| Ha 2, conducting walls: relative L2 error of velocity, 128 cells acrosskey | 1.01e-4 | |x| ≤ 0.01 | 1 % | ✓ pass |
| Ha 2, conducting walls: relative L2 error of field Bx, 128 cells across | 8.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| ≤ 1 | 90 % | ✓ pass |
| Ha 2, conducting walls: 1.8 divided by convergence order of field Bx (pass at or below 1) | 0.934 | |x| ≤ 1 | 93 % | ✓ 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 across | 9.96e-5 | |x| ≤ 0.01 | <1 % | ✓ pass |
| Ha 2, insulating walls: relative L2 error of field Bx, 128 cells across | 4.27e-4 | |x| ≤ 0.01 | 4 % | ✓ pass |
| Ha 2, insulating walls: 1.8 divided by convergence order of velocity (pass at or below 1) | 0.899 | |x| ≤ 1 | 90 % | ✓ pass |
| Ha 2, insulating walls: 1.8 divided by convergence order of field Bx (pass at or below 1) | 0.885 | |x| ≤ 1 | 88 % | ✓ 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 across | 1.78e-4 | |x| ≤ 0.01 | 2 % | ✓ pass |
| Ha 10, conducting walls: relative L2 error of field Bx, 256 cells across | 2.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| ≤ 1 | 96 % | ✓ pass |
| Ha 10, conducting walls: 1.8 divided by convergence order of field Bx (pass at or below 1) | 1.04 | |x| ≤ 1 | 104 % | ✕ 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.1 | 2 % | ✓ pass |
| Ha 10, insulating walls: relative L2 error of velocity, 256 cells across | 2.15e-4 | |x| ≤ 0.01 | 2 % | ✓ pass |
| Ha 10, insulating walls: relative L2 error of field Bx, 256 cells across | 3.69e-4 | |x| ≤ 0.01 | 4 % | ✓ pass |
| Ha 10, insulating walls: 1.8 divided by convergence order of velocity (pass at or below 1) | 0.779 | |x| ≤ 1 | 78 % | ✓ pass |
| Ha 10, insulating walls: 1.8 divided by convergence order of field Bx (pass at or below 1) | 0.876 | |x| ≤ 1 | 88 % | ✓ 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.1 | 1 % | ✓ pass |
| Ha 30, conducting walls: relative L2 error of velocity, 512 cells across | 1.97e-4 | |x| ≤ 0.01 | 2 % | ✓ pass |
| Ha 30, conducting walls: relative L2 error of field Bx, 512 cells across | 9.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| ≤ 1 | 99 % | ✓ pass |
| Ha 30, conducting walls: 1.8 divided by convergence order of field Bx (pass at or below 1) | 1.02 | |x| ≤ 1 | 102 % | ✕ 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.1 | 5 % | ✓ pass |
| Ha 30, conducting walls: share of the velocity error due to compressibility (pass at or below 0.1) | 0.0221 | |x| ≤ 0.1 | 22 % | ✓ pass |
| Ha 30, conducting walls: share of the field Bx error due to compressibility (pass at or below 0.1) | 0.00546 | |x| ≤ 0.1 | 5 % | ✓ pass |
| Ha 30, insulating walls: relative L2 error of velocity, 512 cells across | 6.12e-4 | |x| ≤ 0.01 | 6 % | ✓ pass |
| Ha 30, insulating walls: relative L2 error of field Bx, 512 cells across | 4.12e-4 | |x| ≤ 0.01 | 4 % | ✓ pass |
| Ha 30, insulating walls: 1.8 divided by convergence order of velocity (pass at or below 1) | 0.65 | |x| ≤ 1 | 65 % | ✓ pass |
| Ha 30, insulating walls: 1.8 divided by convergence order of field Bx (pass at or below 1) | 0.881 | |x| ≤ 1 | 88 % | ✓ 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.1 | 5 % | ✓ pass |
| Ha 30, insulating walls: share of the velocity error due to compressibility (pass at or below 0.1) | 0.0337 | |x| ≤ 0.1 | 34 % | ✓ 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


