English

Modified-gradient methods for exact divergence-free in meshless magnetohydrodynamics

Instrumentation and Methods for Astrophysics 2026-03-05 v1 Computational Physics Plasma Physics

Abstract

We present a novel gradient regularization to completely eliminate the magnetic divergence error in meshless magnetohydrodynamics (MHD), which offers a high spatial resolution and conservative advantage, due to its Lagrangian nature. Comparing with the counterpart of constrained-gradient (CG) technique, we reform B=0\nabla \cdot \mathbf{B}=0 by an implicit projection method to modify the magnetic-field gradients. The accuracy of modified-gradient (MG) method is verified and it achieves exact divergence-free results with round-off precision, by using tests of shock tube, 2D and 3D vortex, magneto-rotational instability, and especially, advection experiment, compared with CG method and the GIZMO code. It leads to noticeable improvement in pattern, amplitude and numerical dissipation of divergence error of magnetic field.

Keywords

Cite

@article{arxiv.2603.04077,
  title  = {Modified-gradient methods for exact divergence-free in meshless magnetohydrodynamics},
  author = {Xiongbiao Tu and Qiao Wang and Liang Gao and Yifa Tang},
  journal= {arXiv preprint arXiv:2603.04077},
  year   = {2026}
}

Comments

20 Pages, 11 figures, accepted for publication in Journal of Computational Physics

R2 v1 2026-07-01T11:03:03.546Z