LMhdX

LMhdX solves inductionless liquid-metal MHD with JAX. It provides analytical-reference fully developed flows, three-dimensional ducts and pipes on a staggered core, ducts with an inlet and an outlet through a field that varies along them, and periodic Q2D flow with Hartmann-layer damping. LMhdX builds the physics; SOLVAX supplies reusable numerical solvers.

Hartmann-layer collapse, flow-rate error against a spectral reference, and mesh convergence

Start here

Install and run

Install LMhdX, select a JAX backend, and check the command line.

Install LMhdX
First duct solve

Solve and validate a Hartmann duct from Python or TOML.

Run a first duct case
A duct leaving a magnet

Solve the flow through the ANL fringe with an inlet and an outlet, and differentiate its pressure drop.

A duct leaving a magnet
Q2D vortex dynamics

Evolve a depth-averaged strong-field model and reproduce its poster and movie.

Evolve a Q2D vortex field
Validation

See the analytical, numerical, and FreeMHD evidence for every claim.

Validation