Client-side ideal MHD
iTensor solves the conservative two-dimensional ideal-MHD equations in the browser. The conserved variables are density, three momentum components, total energy and three magnetic-field components. Dimensionless units use μ₀=1 and γ=5/3.
Implemented numerical method
- cell-centred conservative finite volumes with a Rusanov flux,
- second-order SSP-RK2 time integration and automatic CFL=0.3 steps,
- periodic boundaries and Dedner GLM divergence transport,
- 32²–128² grids with at most eight retained frames,
- Orszag–Tang, MHD rotor and uniform conservation initial conditions.
Scope
This module is intentionally limited to ideal, compressible 2D MHD. It does not claim resistive or viscous physics, spectral methods, constrained transport, 3D grids, fusion-device equilibria or production research accuracy. GLM controls numerical divergence, while diagnostics expose conservation drift, positivity repairs and normalized ∇·B so results can be judged rather than hidden.
Open the MHD Simulator tab to run it locally. No API request or paid server is involved.