GAMERA-OP: A three-dimensional finite-volume MHD solver for orthogonal curvilinear geometries
Hongyang Luo, Binzheng Zhang, Jiaxing Tian, Jinshu Cai, Junjie Chen, Enhao Feng, Zhiqi Zheng, Sheng Xi, John G. Lyon
TL;DR
GAMERA-OP extends MHD finite-volume methods to orthogonal curvilinear geometries with constrained transport on a Yee-like grid to enforce $\nabla\cdot\mathbf{B}=0$ to machine precision and exact angular-momentum conservation. It introduces geometry-consistent high-order reconstruction via the enhanced PDM (e-PDM) limiter, multiple flux options including gas-kinetic and Rusanov, and two time integrators (AB2 and SSPRK3). The solver includes axis/pole treatments (ring-average), semi-relativistic corrections, background-field splitting, and anisotropic MHD support, all implemented in C with a modular design. A broad suite of tests across Cartesian, cylindrical, and spherical geometries demonstrates high accuracy, low diffusion, and robust handling of coordinate singularities and rotating flows, with performance improvements over previous GAMERA/LFM implementations. GAMERA-OP provides a practical, extensible platform for space and astrophysical plasma problems where orthogonal coordinates and angular-momentum conservation are advantageous.
Abstract
We present GAMERA-OP (Orthogonal-Plus), a three-dimensional finite-volume magnetohydrodynamics (MHD) solver for orthogonal curvilinear geometries. The solver advances magnetic fields using constrained transport to preserve $\nabla\!\cdot\!\mathbf{B}=0$ to machine precision and employs geometry-consistent high-order reconstruction with an enhanced Partial Donor Cell method (e-PDM) that accounts for geometry curvature. Flexible numerics include various numerical fluxes and time integrators. In axial symmetric coordinates, angular momentum are preserved to round-off, and a ring-averaging treatment near the axis relaxes CFL constraints while maintaining divergence-free magnetic fields. Optional capabilities include the semi-relativistic (Boris) correction, background-field splitting, and an anisotropic MHD formulation. Rewritten in C, the code adopts a modular design that simplifies case setup and facilitates the addition of physics modules and coupling to other first-principles codes. Standard benchmarks across multiple geometries verify the code's high accuracy, low numerical diffusion, and robust handling of coordinate singularities and rotating flows. GAMERA-OP provides a practical, high-order framework for space and astrophysical plasma applications where orthogonal curvilinear coordinates and exact angular-momentum conservation are advantageous.
