# Gargantua: experimental 3D ideal GRMHD The new `/gargantua/plasma.html` mode jointly evolves density, pressure, all three velocity components and magnetic field on a fixed Kerr background. Existing Schwarzschild ray tracing is retained as a separate optical model. The plasma state is not yet consumed by that ray tracer. ## Implemented equations and method Units G=c=M=1, signature -+++. Ingoing spherical Kerr-Schild coordinates remain regular at the outer horizon. The code evolves sqrt(-g) rho u^t and sqrt(-g) T^t_mu with fluxes sqrt(-g) rho u^i and sqrt(-g) T^i_mu and source (sqrt(-g)/2) T^(ab) partial_mu g_ab. Stationarity and axisymmetry give exact zero geometric sources for Killing energy and angular momentum. Metric derivatives in r/theta use centred finite differences of the analytic metric. The gas follows p=(Gamma-1)u with Gamma=4/3. The ideal-MHD stress tensor includes magnetic pressure and tension. Primitive recovery solves a scalar enthalpy root using spatial ADM invariants. Finite-volume evolution is first-order explicit Euler with light-cone-bounded Rusanov flux. Face magnetic fluxes use one edge-centred electric field and a staggered curl, preserving discrete magnetic divergence. No arbitrary animation controls the computed gas state. The 3D grid is periodic in phi. Its default domain is 0.85r_plus < r < 22 and 0.3 < theta < pi-0.3. The polar cones are excluded; radial and theta boundaries use primitive extrapolation. This permits boundary exchange, which is included in the reported budgets. The initial condition is a non-equilibrium rotating Gaussian torus with poloidal magnetic loops, a small azimuthal density perturbation and a hot dilute atmosphere. It is not a Fishbone–Moncrief equilibrium. A pressure floor of 1e-6 is allowed in Kerr runs. Its actual energy and momentum corrections are explicitly accumulated, and conservation diagnostics subtract these corrections as well as account for boundary flux. Runs stop when the magnitude of net floor energy exceeds 0.5% of initial Killing energy, or when primitive recovery fails despite bounded timestep retries. There is no silent reset of an invalid cell. The browser pauses after 2000 accepted steps and when hidden. ## Verification and limits `tests/gargantua-grmhd.test.mjs` checks the metric inverse across the horizon, analytic ISCO values, spin reversal of frame dragging, four-vector normalization, primitive recovery, uniform magnetized Minkowski states, advection and refinement in each spatial direction, field back reaction, changing density/pressure/field and CT plus corrected conservation in Kerr evolutions with positive and negative spin. These checks verify selected equations and numerical properties, not astrophysical fidelity. The coarse, first-order browser grids are numerically diffusive. MRI growth/convergence, turbulent steady-state accretion, shocks and Alfven-wave benchmarks remain unverified. No radiation transport/cooling, resistivity, kinetic particles, disk self-gravity or dynamical spacetime is present. Thus this release must not be described as a validated, unrestricted full plasma simulation. Snapshots export the physical cell variables, geometry, options and diagnostics for inspection. They are not restart checkpoints: staggered faces are not included in the exported cell-centred representation. ## References - Gammie, McKinney & Toth (2003): https://arxiv.org/abs/astro-ph/0301509 - Noble, Gammie, McKinney & Del Zanna (2006): https://arxiv.org/abs/astro-ph/0512420 This is an original small implementation of the published equations, not HARM software or its validation suite.