English

Magnetohydrodynamics with GAMER

Computational Physics 2018-06-22 v4 Instrumentation and Methods for Astrophysics

Abstract

GAMER, a parallel Graphic-processing-unit-accelerated Adaptive-MEsh-Refinement hydrodynamic code, has been extended to support magnetohydrodynamics (MHD) with both the corner-transport-upwind (CTU) and MUSCL-Hancock schemes and the constraint transport (CT) technique. The divergent preserving operator for adaptive mesh refinement (AMR) has been applied to reinforce the divergence-free constraint on the magnetic field. GAMER-MHD has fully exploited the concurrent executions between the GPU MHD solver and other CPU computation pertinent to AMR. We perform various standard tests to demonstrate that GAMER-MHD is both second-order accurate and robust, producing results as accurate as those given by high-resolution uniform-grid runs. We also explore a new 3D MHD test, where the magnetic field assumes the Arnold-Beltrami-Childress (ABC) configuration, temporarily becomes turbulent with current sheets and finally settles to a lowest-energy equilibrium state. This 3D problem is adopted for the performance test of GAMER-MHD. The single-GPU performance reaches 1.2×1081.2\times 10^8 and 5.5×1075.5\times 10^7 cell-updates/sec for the single- and double-precision calculations, respectively, on Tesla P100. We also demonstrate a parallel efficiency of 70%\sim 70\% for both weak and strong scaling using 1,0241,024 XK nodes on the Blue Waters supercomputers.

Keywords

Cite

@article{arxiv.1804.03479,
  title  = {Magnetohydrodynamics with GAMER},
  author = {Ui-Han Zhang and Hsi-Yu Schive and Tzihong Chiueh},
  journal= {arXiv preprint arXiv:1804.03479},
  year   = {2018}
}

Comments

29 pages, 22 figures, 1 table. GAMER-MHD will soon become available at https://github.com/gamer-project/gamer

R2 v1 2026-06-23T01:19:12.239Z