Papers › Hydromagnetic waves in an expanding universe -- cosmological MHD code tests using...

Hydromagnetic waves in an expanding universe -- cosmological MHD code tests using analytic solutions

22 Mar 2022arXiv:2203.11887links table onlyarchive 2025-07-28

Thomas Berlok

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

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\'en 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\'en wave solution including physical Navier-Stokes viscosity. A comparison between Alfv\'en wave simulations and theory reveals that the dissipation can be described by a numerical viscosity coefficient ηₙᵤₘ ∝a^(-5/2) where a 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.

PaperPDFCode

Code

tberlok/comoving_mhd_waves officialmentioned in paper report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections