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.
Start here¶
Install and run
Install LMhdX, select a JAX backend, and check the command line.
First duct solve
Solve and validate a Hartmann duct from Python or TOML.
A duct leaving a magnet
Solve the flow through the ANL fringe with an inlet and an outlet, and differentiate its pressure drop.
Q2D vortex dynamics
Evolve a depth-averaged strong-field model and reproduce its poster and movie.
Validation
See the analytical, numerical, and FreeMHD evidence for every claim.