Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > astro-ph > arXiv:1509.07877

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Astrophysics > Instrumentation and Methods for Astrophysics

arXiv:1509.07877 (astro-ph)
[Submitted on 25 Sep 2015 (v1), last revised 7 Jul 2017 (this version, v2)]

Title:A Constrained-Gradient Method to Control Divergence Errors in Numerical MHD

Authors:Philip F. Hopkins (Caltech)
View a PDF of the paper titled A Constrained-Gradient Method to Control Divergence Errors in Numerical MHD, by Philip F. Hopkins (Caltech)
View PDF
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.
Comments: 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 this http URL
Subjects: Instrumentation and Methods for Astrophysics (astro-ph.IM); Cosmology and Nongalactic Astrophysics (astro-ph.CO); Astrophysics of Galaxies (astro-ph.GA); Solar and Stellar Astrophysics (astro-ph.SR); Fluid Dynamics (physics.flu-dyn)
Cite as: arXiv:1509.07877 [astro-ph.IM]
  (or arXiv:1509.07877v2 [astro-ph.IM] for this version)
  https://doi.org/10.48550/arXiv.1509.07877
arXiv-issued DOI via DataCite
Journal reference: MNRAS, 462, 576 (2016)
Related DOI: https://doi.org/10.1093/mnras/stw1578
DOI(s) linking to related resources

Submission history

From: Philip Hopkins [view email]
[v1] Fri, 25 Sep 2015 20:07:07 UTC (1,744 KB)
[v2] Fri, 7 Jul 2017 23:02:42 UTC (1,959 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled A Constrained-Gradient Method to Control Divergence Errors in Numerical MHD, by Philip F. Hopkins (Caltech)
  • View PDF
  • TeX Source
  • Other Formats
view license
Current browse context:
astro-ph.IM
< prev   |   next >
new | recent | 2015-09
Change to browse by:
astro-ph
astro-ph.CO
astro-ph.GA
astro-ph.SR
physics
physics.flu-dyn

References & Citations

  • INSPIRE HEP
  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack