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.
Systematic Comparison between Constrained Transport and Mixed Divergence Cleaning Methods for Astrophysical Magnetohydrodynamic Simulations
Astronomical Institute, Tohoku University(东北大学天文学研究所);École Normale Supérieure de Lyon, Centre de Recherche Astrophysique de Lyon(里昂高等师范学校,里昂天体物理研究中心);Humanities and Sciences/Museum Careers, Musashino Art University(武藏野美术大学人文科学与博物馆职业);Center for Computational Astrophysics, National Astronomical Observatory of Japan(日本国立天文台计算天体物理学中心)
A partially dimensionally-split approach to numerical MHD
我们修改现有的磁流体力学算法,使其更兼容的维度分裂(DS)框架。它基于标准的重建-求解-平均策略(使用黎曼解算器),并依赖于受约束的传输来确保磁场保持无发散(div B = 0)。DS方法,结合使用一个单一的,细胞为中心的网格(流体量和磁场),意味着该算法可以很容易地添加到现有的DS流体动力学代码。这使得它对成熟的天体物理代码特别有用,这些代码通常在底层DS流体动力学引擎之上模拟更复杂的物理效应,因此不能轻易重构。几个测试问题已被列入,以证明算法的准确性,说明性的源代码已免费提供在线。
A Stable, Accurate Methodology for High Mach Number, Strong Magnetic Field MHD Turbulence with Adaptive Mesh Refinement: Resolution and Refinement Studies
Modified-gradient methods for exact divergence-free in meshless magnetohydrodynamics
Hubei Normal University(湖北师范大学);National Astronomical Observatories, Chinese Academy of Sciences(中国科学院国家天文台);University of Chinese Academy of Sciences(中国科学院大学);Beijing Normal University(北京师范大学);Zhengzhou University(郑州大学);Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院)
A comparison of numerical schemes for driven subsonic MHD turbulence
Max Planck Institut für Astrophysik(马克斯·普朗克天体物理学研究所);University of Exeter(埃克塞特大学);Institut für Astrophysik, Universität Zürich(苏黎世大学天体物理研究所);Leibniz-Institut für Astrophysik Potsdam (AIP)(波茨坦莱布尼茨天体物理研究所);Princeton University(普林斯顿大学)