Hydromagnetic waves in an expanding universe -- cosmological MHD code tests using analytic solutions
arXiv:2203.11887 · doi:10.1093/mnras/stac1882
Abstract
We describe how analytic solutions for linear hydromagnetic waves can be used for testing cosmological magnetohydrodynamic (MHD) codes. We start from the comoving MHD equations and derive analytic solutions for the amplitude evolution of linear hydromagnetic waves in a matter-dominated, flat Einstein-de-Sitter (EdS) universe. The waves considered are comoving, linearly polarized Alfvén waves and comoving, magnetosonic (fast) waves modified by self-gravity. The solution for compressible waves is found for a general adiabatic index and we consider the limits of hydrodynamics without self-gravity in addition to the full solution. In addition to these analytic solutions, the linearized equations are solved numerically for a CDM cosmology. We use the analytic and numeric solutions to compare with results obtained using the cosmological MHD code AREPO and find good agreement when using a sufficient number of grid points. We interpret the numerical damping clearly evident in simulations with few grid points by further deriving the Alfvén wave solution including physical Navier-Stokes viscosity. A comparison between Alfvén wave simulations and theory reveals that the dissipation can be described by a numerical viscosity coefficient where is the scale factor. We envision that our examples could be useful when developing a new cosmological MHD code or for regression testing of existing codes.
arXiv comment20 pages, 9 figures, published in MNRAS, python code available at https://github.com/tberlok/comoving_mhd_waves
References in corpus (49)
- The cosmological simulation code GADGET-2
- E pur si muove: Galiliean-invariant cosmological hydrodynamical simulations on a moving mesh
- Cosmological Hydrodynamics with Adaptive Mesh Refinement: a new high resolution code called RAMSES
- Physical Models of Galaxy Formation in a Cosmological Framework
- In the Beginning: The First Sources of Light and the Reionization of the Universe
- FIRE-2 Simulations: Physics versus Numerics in Galaxy Formation
- First results from the IllustrisTNG simulations: radio haloes and magnetic fields
- Magnetic Fields in the Early Universe
- Athena: A New Code for Astrophysical MHD
- Enzo: An Adaptive Mesh Refinement Code for Astrophysics
- Cosmological Magnetic Fields: Their Generation, Evolution and Observation
- The Santa Barbara cluster comparison project: a comparison of cosmological hydrodynamics solutions
- The origin, evolution and signatures of primordial magnetic fields
- The Arepo public code release
- Simulating cosmic structure formation with the GADGET-4 code
- Simulations of magnetic fields in isolated disk galaxies
- Magnetohydrodynamics on an unstructured moving grid
- Damping of Cosmic Magnetic Fields
- Detecting shock waves in cosmological smoothed particle hydrodynamics simulations
- Microwave Background Signals from Tangled Magnetic Fields
- Simulating cosmic ray physics on a moving mesh
- Accurate, Meshless Methods for Magneto-Hydrodynamics
- An MHD Gadget for cosmological simulations
- Large-scale dark matter simulations
- Magnetic fields in cosmological simulations of disk galaxies
- Resolved magnetic dynamo action in the simulated intracluster medium
- Generation of Density Perturbations by Primordial Magnetic Fields
- Constraining Primordial Magnetism
- Magnetized cosmological perturbations
- A Constrained-Gradient Method to Control Divergence Errors in Numerical MHD
- Cosmological MHD simulation of a cooling flow cluster
- Cosmological AMR MHD with Enzo
- The effect of magnetic fields on properties of the circumgalactic medium
- A Convenient Set of Comoving Cosmological Variables and Their Application
- Magnetising the circumgalactic medium of disk galaxies
- A Moving Frame Algorithm for High Mach Number Hydrodynamics
- Semi-implicit anisotropic cosmic ray transport on an unstructured moving mesh
- Introducing SPHINX-MHD: The Impact of Primordial Magnetic Fields on the First Galaxies, Reionization, and the Global 21cm Signal
- Cosmological MHD simulations of cluster formation with anisotropic thermal conduction
- CosmoMHD: A Cosmological Magnetohydrodynamics Code
- A small-scale dynamo in feedback-dominated galaxies - III. Cosmological simulations
- Magnetogenesis around the first galaxies: the impact of different field seeding processes on galaxy formation
- Constrained-Transport Magnetohydrodynamics with Adaptive-Mesh-Refinement in CHARM
- The impact of magnetic fields on cosmological galaxy mergers. I: Reshaping gas and stellar discs
- Primordial magnetic fields and CMB anisotropies
- WOMBAT: A Scalable and High Performance Astrophysical MHD Code
- Braginskii viscosity on an unstructured, moving mesh accelerated with super-time-stepping
- Cosmic magnetic fields with MASCLET: an application to galaxy clusters
- SPMHD simulations of Structure Formation