Equations and assumptions¶
LMhdX solves incompressible, inductionless liquid-metal MHD. The magnetic Reynolds number is assumed small, so the imposed magnetic field \(\mathbf B\) is not evolved. The full isothermal formulation below uses density \(\rho\), kinematic viscosity \(\nu\), conductivity \(\sigma\), pressure \(p\), and body drive \(\mathbf f\). The implemented model reductions are described below it:
The electric potential therefore satisfies the variable-conductivity equation
Fully developed models set \(\mathbf u=(u(y,z),0,0)\) and solve the coupled
cross-section equations. The three-dimensional staggered core
(lmhdx.core3d, lmhdx.steady) retains all three velocity, current and
Lorentz-force components; a duct with an inlet and an outlet (lmhdx.axial)
is solved in the inertialess limit, without \(\mathbf u\cdot\nabla\mathbf u\).
The inertialess core-flow model (lmhdx.coreflow) reduces the core of a
thin-walled duct in a field \(B_y(x)\) to three two-dimensional equations
(ANL/FPP/TM-228, eqs. 4a–4c). Their verification and open gates are in the
validation matrix.
No-slip walls set velocity to zero. Insulating walls impose zero normal current. Conducting solid regions solve potential with their own conductivity and enforce potential and normal-current continuity at interfaces. Pipe meshes use cylindrical/mapped electric metrics; rectangular electric operators use nonuniform Cartesian finite-volume metrics. Generic momentum uses a distinct discretization: electric closure alone does not establish nonuniform or cylindrical vector-momentum consistency.
Common dimensionless groups are
The inductionless model requires \(Rm\ll1\). Geometry length, field orientation, wall conductance ratio, and velocity scale must accompany any reported value.
Quasi-two-dimensional model¶
For a strong uniform field normal to a shallow flow plane, the basic Sommeria–Moreau closure evolves depth-averaged vorticity:
Here \(1/\tau_H\) is the linear Hartmann-layer friction and \(f_\omega\) is a vorticity source. On a periodic domain the velocity is divergence free by construction. With kinetic energy \(E=\langle|\mathbf u_\perp|^2\rangle/2\) and enstrophy \(Z=\langle\omega^2\rangle/2\),
solve_q2d enforces energy_budget_tolerance (default \(10^{-3}\)) on the
absolute integrated defect divided by the larger of initial energy and
absolute integrated power, with the smallest positive normal working-dtype
value as a zero-energy floor. An absolute machine-epsilon floor would hide
relative defects in small-amplitude flows.
Power is integrated by the trapezoidal rule at every time step, independently
of saved-frame stride. This diagnostic has second-order quadrature error even
when the IFRK4 field evolution is more accurate. Refine the time step when it
fails; completed still does not certify mesh independence or steady flow.
The Q2D model is a
depth-averaged strong-field approximation; it does not resolve Hartmann-layer
profiles or replace the 3-D formulation where the field varies along the flow.