We present a novel method of magnetohydrodynamics (MHD) within the smoothed particle hydrodynamics scheme using the Geometric Density average force expression (GDSPH). GDSPH has recently been shown to reduce the leading order errors and greatly improve the accuracy near density discontinuities, eliminating surface tension effects. Here, we extend the study to investigate how SPMHD benefits from this method. We implement ideal MHD in the Gasoline2 and Changa codes with both GDSPH and traditional SPH (TSPH) schemes. An constrained hyperbolic divergence cleaning scheme is employed to control the divergence error, and a switch for artificial resistivity with minimized dissipation is used. We test the codes with a large suite of MHD tests, and show that in all problems the results are comparable or improved over previous SPMHD implementations. While both GDSPH and TSPH perform well with relatively smooth or highly supersonic flows, GDSPH shows significant improvements in the presence of strong discontinuities and large dynamic scales. In particular, when applied to an astrophysical problem of the collapse of a magnetized cloud, GDSPH realistically captures the development of a magnetic tower and jet launching in the weak-field regime, and exhibit fast convergence with resolution, while TSPH failed to do so. Our new method shows qualitatively similar results to the ones from the meshless finite mass/volume (MFM/MFV) schemes within the Gizmo code, while remaining computationally less expensive.
Smoothed particle magnetohydrodynamics has reached a level of maturity that enables the study of a wide range of astrophysical problems. In this review, the numerical details of the modern SPMHD method are described. The three fundamental components of SPMHD are methods to evolve the magnetic field in time, calculate accelerations from the magnetic field, and maintain the divergence-free constraint on the magnetic field (no monopoles). The connection between these three requirements in SPMHD will be highlighted throughout. The focus of this review is on the methods that work well in practice, …
We present Phantom, a fast, parallel, modular and low-memory smoothed particle hydrodynamics and magnetohydrodynamics code developed over the last decade for astrophysical applications in three dimensions. The code has been developed with a focus on stellar, galactic, planetary and high energy astrophysics and has already been used widely for studies of accretion discs and turbulence, from the birth of planets to how black holes accrete. Here we describe and test the core algorithms as well as modules for magnetohydrodynamics, self-gravity, sink particles, H_2 chemistry, dust-gas mixtures, phy…
Smoothed particle magnetohydrodynamics for simulations of galaxy and cosmic structure formation
Lorentz Institute for Theoretical Physics, Leiden University(莱顿大学洛伦兹理论物理研究所);Leiden Observatory, Leiden University(莱顿大学莱顿天文台);Instituto de Astronomía teórica y experimental-Conicet(理论与实验天体物理学研究所-阿根廷国家科学研究委员会);Observatorio Astronómico de Córdoba, Universidad Nacional de Córdoba(科尔多瓦天文台,科尔多瓦国立大学)