A Constrained-Gradient Method to Control Divergence Errors in Numerical MHD
arXiv:1509.07877 · doi:10.1093/mnras/stw1578
Abstract
In numerical magnetohydrodynamics (MHD), a major challenge is maintaining zero magnetic field-divergence (div-B). Constrained transport (CT) schemes can achieve this at high accuracy, but have generally been restricted to very specific methods. For more general (meshless, moving-mesh, or ALE) methods, 'divergence-cleaning' schemes reduce the div-B errors, however they can still be significant, especially at discontinuities, and can lead to systematic deviations from correct solutions which converge away very slowly. Here we propose a new constrained gradient (CG) scheme which augments these with a hybrid projection step, and can be applied to any numerical scheme with a reconstruction. This iteratively approximates the least-squares minimizing, globally divergence-free reconstruction of the fluid. We emphasize that, unlike 'locally divergence free' methods, this actually minimizes the numerically unstable div-B terms, without affecting the convergence order of the method. We implement this in the mesh-free code GIZMO and compare a wide range of test problems. Compared to state-of-the-art cleaning schemes, our CG method reduces the maximum div-B errors in each problem by 1-3 orders of magnitude (2-5 dex below the typical errors if no div-B cleaning is used). By preventing large div-B even at unresolved discontinuities, the method eliminates systematic errors at jumps. In every problem, the accuracy of our CG results is comparable to CT methods. The cost is modest, ~30% of the hydro algorithm, and the CG correction can be easily implemented in a wide range of different numerical MHD methods. While for many problems, we find Dedner-type cleaning schemes are sufficient for good results, we identify a wide range of problems where using only the simplest Powell or '8-wave' cleaning can produce systematic, order-of-magnitude errors.
12 pages, 8 figures. MNRAS (updated to published version). A public version of the GIZMO code, user's guide, test problem setups, and movies are available at http://www.tapir.caltech.edu/~phopkins/Site/GIZMO.html
References in corpus (8)
- Athena: A New Code for Astrophysical MHD
- Producing ultra-strong magnetic fields in neutron star mergers
- An Unsplit Godunov Method for Ideal MHD via Constrained Transport in Three Dimensions
- Magnetic processes in a collapsing dense core. I Accretion and Ejection
- Accurate, Meshless Methods for Magneto-Hydrodynamics
- The effect of magnetic fields on star cluster formation
- Neutral hydrogen in galaxy halos at the peak of the cosmic star formation history
- MAGMA: a 3D, Lagrangian magnetohydrodynamics code for merger applications
Cited by in corpus (70)
- FIRE-2 Simulations: Physics versus Numerics in Galaxy Formation
- How To Model Supernovae in Simulations of Star and Galaxy Formation
- But What About... Cosmic Rays, Magnetic Fields, Conduction, & Viscosity in Galaxy Formation
- STARFORGE: Toward a comprehensive numerical model of star cluster formation and feedback
- Feedback first: the surprisingly weak effects of magnetic fields, viscosity, conduction, and metal diffusion on galaxy formation
- Properties of the Circumgalactic Medium in Cosmic Ray-Dominated Galaxy Halos
- Cosmic ray feedback in the FIRE simulations: constraining cosmic ray propagation with GeV gamma ray emission
- The dynamics and outcome of star formation with jets, radiation, winds, and supernovae in concert
- FIRE-3: Updated Stellar Evolution Models, Yields, & Microphysics and Fitting Functions for Applications in Galaxy Simulations
- On the Survival of Cool Clouds in the Circum-Galactic Medium
- Radiative Stellar Feedback in Galaxy Formation: Methods and Physics
- Anisotropic Diffusion in Mesh-Free Numerical Magnetohydrodynamics
- Testing Physical Models for Cosmic Ray Transport Coefficients on Galactic Scales: Self-Confinement and Extrinsic Turbulence at GeV Energies
- A model for the formation of stellar associations and clusters from giant molecular clouds
- STARFORGE: The effects of protostellar outflows on the IMF
- Which AGN Jets Quench Star Formation in Massive Galaxies?
- Cosmic-Ray Driven Outflows to Mpc Scales from Galaxies
- The failure of stellar feedback, magnetic fields, conduction, and morphological quenching in maintaining red galaxies
- Effects of Different Cosmic Ray Transport Models on Galaxy Formation
- Scaling Laws of Passive-Scalar Diffusion in the Interstellar Medium
- First Predicted Cosmic Ray Spectra, Primary-to-Secondary Ratios, and Ionization Rates from MHD Galaxy Formation Simulations
- Cluster assembly and the origin of mass segregation in the STARFORGE simulations
- Standard Self-Confinement and Extrinsic Turbulence Models for Cosmic Ray Transport are Fundamentally Incompatible with Observations
- Resolving massive black hole binaries evolution via adaptive particle-splitting
- Magnetic fields in the Galactic halo restrict fountain-driven recycling and accretion
- Global simulations of self-gravitating magnetized protoplanetary disks
- High-order Magnetohydrodynamics for Astrophysics with an Adaptive Mesh Refinement Discontinuous Galerkin Scheme
- Can magnetized turbulence set the mass scale of stars?
- The global structure of magnetic fields and gas in simulated Milky Way-analogue galaxies
- A geometric multigrid library for quadtree/octree AMR grids coupled to MPI-AMRVAC
- The Pandora project. I: the impact of radiation and cosmic rays on baryonic and dark matter properties of dwarf galaxies
- Virial shocks are suppressed in cosmic ray-dominated galaxy halos
- Stellar feedback strongly alters the amplification and morphology of galactic magnetic fields
- The importance of live binary evolution in numerical simulations of binaries embedded in circumbinary discs
- Local simulations of MRI turbulence with meshless methods
- Less wrong: a more realistic initial condition for simulations of turbulent molecular clouds
- Hyper-Eddington Black Hole Growth in Star-Forming Molecular Clouds and Galactic Nuclei: Can It Happen?
- Does God play dice with star clusters?
- Nonlinear Evolution of the Resonant Drag Instability in Magnetized Gas
- Emission signatures from sub-pc Post-Newtonian binaries embedded in circumbinary discs
- Nonlinear Evolution of Instabilities Between Dust and Sound Waves
- Simulating the Diverse Instabilities of Dust in Magnetized Gas
- The In-situ Origins of Dwarf Stellar Outskirts in FIRE-2
- Establishing Dust Rings and Forming Planets Within Them
- Synchrotron Emission on FIRE: Equipartition Estimators of Magnetic Fields in Simulated Galaxies with Spectrally-Resolved Cosmic Rays
- Inhibition of the electron cyclotron maser instability in the dense magnetosphere of a hot Jupiter
- Simulating the magnetorotational instability on a moving mesh with the shearing box approximation
- Dust in the Wind with Resonant Drag Instabilities: I. The Dynamics of Dust-Driven Outflows in GMCs and HII Regions
- Smoothed particle magnetohydrodynamics with the geometric density average force expression
- The sub-critical illusion: synthetic Zeeman effect observations from galactic zoom-in simulations
- Characterizing fragmentation and sub-Jovian clump properties in magnetized young protoplanetary disks
- Novel Conservative Methods for Adaptive Force Softening in Collisionless and Multi-Species N-Body Simulations
- Dust Dynamics in AGN Winds: A New Mechanism For Multiwavelength AGN Variability
- Numerical Study of Cosmic Ray Confinement through Dust Resonant Drag Instabilities
- Feedback-regulated Seed Black Hole Growth in Star-Forming Molecular Clouds and Galactic Nuclei
- On the limitations of H alpha luminosity as a star formation tracer in spatially resolved observations
- Wavelet-based parallel dynamic mesh adaptation for magnetohydrodynamics in the AMROC framework
- Dust-Evacuated Zones Near Massive Stars: Consequences of Dust Dynamics on Star-forming Regions
- Diverse dark matter profiles in FIRE dwarfs: black holes, cosmic rays and the cusp-core enigma
- A Simple Sub-Grid Model For Cosmic Ray Effects on Galactic Scales
- Fundamental limits to orbit reconstruction due to non-conservation of stellar actions in a Milky Way-like simulation
- On the optical properties of Resonant Drag Instabilities: Variability of Asymptotic Giant Branch and R Coronae Borealis stars
- Meshless Methods for Magnetohydrodynamics with Vector Potential
- Wind of Change: Faraday Rotation in a Simulated Large Magellanic Cloud
- A general relativistic magnetohydrodynamics extension to mesh-less schemes in the code GIZMO
- Towards convergence of turbulent dynamo amplification in cosmological simulations of galaxies
- Evolution of action-space coherence in a Milky Way-like simulation
- Gauging the Impact of Cosmic Ray Feedback on the Stellar Initial Mass Function
- Hydromagnetic waves in an expanding universe -- cosmological MHD code tests using analytic solutions
- Chemical analysis of prestellar cores in Ophiuchus yields short timescales and rapid collapse