We present the AGATE simulation code, a Python-based framework developed primarily for solving the magnetohydrodynamics (MHD) equations while maintaining adaptability to other equation sets. The code employs a modular, object-oriented architecture that separates interface specifications from numerical implementations, allowing users to customize numerical methods and physics models. Built on a Godunov-type finite-volume scheme, AGATE currently supports the ideal, Hall, and Chew-Goldberger-Low (CGL) MHD equations, with multiple acceleration options ranging from Numpy to GPU-enabled computation via NVIDIA CUDA. Performance testing demonstrates that our GPU implementations achieve 40-60x speedups over CPU versions. Comprehensive validation through established benchmarks confirms accurate reproduction of both linear and nonlinear phenomena across different MHD regimes. This combination of modularity, performance, and extensibility makes AGATE suitable for multiple applications: from rapid prototyping to production simulations, and from numerical algorithm development to physics education.
OpenFOAM computational fluid dynamics (CFD) solver for magnetohydrodynamic open cycles, applied to the Sakhalin pulsed magnetohydrodynamic generator (PMHDG)
College of Engineering, University of Buraimi(布雷米大学工程学院)
Characterization of Numerical Dissipation in Simulations of Magnetohydrodynamic Turbulence
Center for Applied Physics and Technology, HEDPS and SKLNPT, School of Physics, Peking University(北京大学物理学院,应用物理与技术中心,HEDPS和SKLNPT);Frontiers Science Center for Nano-optoelectronics, Peking University(北京大学纳米光电前沿科学中心)
Institute of Theoretical Astrophysics, University of Oslo(奥斯陆大学理论天体物理研究所);Université Paris-Saclay, Université Paris Cité, CEA, CNRS, AIM(巴黎萨克雷大学、巴黎西岱大学、法国原子能和替代能源委员会、法国国家科学研究中心、天体物理学与行星学实验室);Rosseland Centre for Solar Physics, University of Oslo(奥斯陆大学罗斯兰太阳物理中心)