Pressure Lens
Velocity cross-section
Time & power telemetry
Scientific measurements ledger
Capture the true numerical state, compare your experiments, and export a CSV for analysis.
| Mode / material | t / s | B / T | Ha | ū / m/s | PJ / W m⁻² |
|---|
10 interactive physics challenges
Answers are checked from your live parameters and solver measurements, not canned numbers. Difficulty: foundational, intermediate, and advanced.
Inside the liquid-metal magnetic channel
HARTMANN reveals how an ordinary-looking stream becomes an electrically conducting machine. A liquid metal moving across a magnetic field generates current. The current feels a Lorentz force that slows the liquid, shifts energy into heat, and radically reshapes the velocity profile. This virtual laboratory solves that coupled mechanical–electrical effect in a clear, controlled one-dimensional geometry.
1 · Set up the apparatus
The camera looks along a transparent planar channel with a stationary lower wall and optionally moving upper wall. Pressure drives flow along x; the applied magnetic field points along y; induced current points along z. Coloured ribbons and droplets represent velocity computed by the numerical solver at their actual cross-channel positions. Cyan flow arrows show ux; orange arrows show induced Jz; blue arrows show magnetic-field polarity. Drag an illuminated depth probe vertically, move the magnet handle, turn the pressure regulator, or drag the upper-wall drive. Orbit by dragging empty space, pan with Shift+drag, and zoom using the wheel or touch pinch.
2 · The governing equations
For a fully developed incompressible liquid with fixed material properties, we solve ρ ∂u/∂t = G + μ ∂²u/∂y² − σ B²u. Here ρ is density in kg/m³, μ dynamic viscosity in Pa·s, σ electrical conductivity in S/m, B imposed magnetic flux density in tesla, and G = −∂p/∂x pressure gradient in Pa/m. With the externally short-circuited transverse circuit and Ez = 0, Ohm's law gives Jz = σuB; hence (J × B)x = −σB²u. The lower boundary is u(−a) = 0 and the upper boundary is u(+a) = U.
The Hartmann number Ha = |B|a√(σ/μ) compares electromagnetic braking with viscosity. Strong fields flatten the channel core while concentrating shear near each stationary wall. The approximate thickness of those Hartmann layers is δ ≈ a/Ha, accurate as a high-Ha scaling rather than a precise thickness at small Ha.
3 · Six connected experiments
Pressure Lens: run a steady pressure gradient, increase B, and compare the teal numerical profile with the amber dashed exact solution. At B = 0, the profile is a parabola. Magnetic damping reduces mean velocity and reshapes the centre. Magnetic Brake: the imposed field switches on after exactly 2 seconds of simulated time. Watch the solver respond and inspect the probe-speed history; pause and use 0.25× time to see the transition. Couette Conveyor: start with pressure drive zero, move the upper plate and observe a strongly asymmetric profile. The wall applies genuine mechanical work. Polarity Paradox: reverse B every 4 seconds; Jz flips sign but B² does not. Compare the signed probe-current readout with the essentially unchanged motion. Alloy Atlas: choose Galinstan, sodium, mercury, or saline as representative virtual materials; differences in viscosity, density and conductivity change both transient and steady responses. Power Ledger: combine pressure and wall drive, then switch the second chart to Dissipation and Work Inputs to inspect where mechanical energy goes.
4 · How the solver and instruments work
The solver discretises the physical gap into 321 equally spaced vertical samples and advances time with an implicit backward-Euler finite-difference step of 0.02 s, independent of screen refresh rate. Every graph point, tracer speed, arrow, instantaneous velocity, current, and power readout derives from this solved velocity field. The exact Hartmann–Couette steady solution is computed separately: for B ≠ 0, its pressure component is G/(σB²)[1 − cosh(Ha y/a)/cosh(Ha)], with a hyperbolic-sine wall-driven component. At zero field we use the polynomial limit. Click the profile to relocate the probe and hover either chart to inspect calculated values. Save snapshots to overlay the most recent previous profile, then export the measurements as comma-separated data.
5 · Energy and conservation
The kinetic energy per channel width and length is K = ∫ρu²/2 dy. The exact continuum rate satisfies dK/dt = Ppressure + Pwall − Pviscous − PJoule, with pressure power ∫Gu dy, wall power μU(∂u/∂y)|+a, viscous loss ∫μ(∂u/∂y)²dy, and Joule loss ∫σB²u²dy. These quantities are calculated numerically from the live profile. The finite-step energy residual is reported separately; it is not silently forced to zero. During transients, a change in stored kinetic energy can make input and dissipation differ instantaneously.
6 · Suggested investigations
Hypothesise that doubling B makes electromagnetic damping four times stronger at the same local velocity; test how long the approach to equilibrium takes. Save a weak-field flow and overlay a strong-field flow: does the channel core flatten while speed drops? In Polarity Paradox, predict which observable reverses sign. In Alloy Atlas, compare strongly conducting metal with conductive saline using the same geometry and B; predict which has the larger Ha. In Couette Conveyor, make U negative and look for reversed flow near the moving wall. Finally, increase the gap and check whether the resulting thin boundary layers remain resolved by the mesh.
7 · Scope, limitations, and applications
This is an idealised, isothermal, laminar plane channel, uniform in flow and spanwise directions. It assumes a prescribed uniform B, low magnetic Reynolds number (induced magnetic fields neglected), no Hall effect, constant density and material properties, flat no-slip walls, and an external electrical closure maintaining Ez = 0. Real insulating sidewalls, electrode contact resistance, three-dimensional duct return currents, turbulence, heating-dependent viscosity, and chemically reactive liquids require additional models. The interface warns when Ha creates layers too thin for the grid, and high Reynolds number may invalidate the laminar assumption. Applications include fusion-reactor liquid-metal blankets, electromagnetic brakes, metallurgical flow control, MHD pumping, and electrically conducting coolant design. All material values are representative rather than certified process data, and hazardous materials are used virtually only.
8 · Glossary and next questions
Lorentz force: force per volume J × B. Joule heating: electrical dissipation J²/σ. Magnetic Reynolds number: ratio of magnetic advection to diffusion. Hartmann layer: thin viscous adjustment near walls perpendicular to B. Couette flow: fluid motion induced by a moving wall. Quasi-static MHD: conducting-flow approximation neglecting magnetic-field induction. Further questions: what changes if spanwise current is electrically blocked, if B varies spatially, or if induced heating changes conductivity? Which measurements would distinguish these models in a real laboratory?
docs/SCIENCE.md.