The Stagger Code for Accurate and Efficient, Radiation-coupled Magnetohydrodynamic Simulations
Abstract
We describe the Stagger code for simulations of magnetohydrodynamic (MHD) systems. This is a modular code with a variety of physics modules that will let the user run simulations of deep stellar atmospheres, sunspot formation, stellar chromospheres and coronae, proto-stellar disks, star formation from giant molecular clouds, and even galaxy formation. The Stagger code is efficiently and highly parallelizable, enabling such simulations with large ranges of both spatial and temporal scales. We describe the methodology of the code and present the most important of the physics modules, as well as its input and output variables. We show results of a number of standard MHD tests to enable comparison with other, similar codes. In addition, we provide an overview of tests that have been carried out against solar observations, ranging from spectral line shapes, spectral flux distribution, limb darkening, intensity and velocity distributions of granulation, to seismic power spectra and the excitation of p-modes. The Stagger code has proven to be a high-fidelity code with a large range of uses.
- Publication:
-
The Astrophysical Journal
- Pub Date:
- July 2024
- DOI:
- 10.3847/1538-4357/ad4706
- arXiv:
- arXiv:2405.02483
- Bibcode:
- 2024ApJ...970...24S
- Keywords:
-
- Radiative magnetohydrodynamics;
- Atomic physics;
- Computational methods;
- 2009;
- 2063;
- 1965;
- Astrophysics - Instrumentation and Methods for Astrophysics;
- 85-08;
- I.6
- E-Print:
- accepted for the Astrophysical Journal