Cosmo Lattice: A modern code for lattice simulations of scalar and gauge field dynamics in an expanding universe
Abstract
This paper describes Cosmo Lattice, a modern package for lattice simulations of the dynamics of interacting scalar and gauge fields in an expanding universe. Cosmo Lattice incorporates a series of features that makes it very versatile and powerful: i) it is written in C++ fully exploiting the object oriented programming paradigm, with a modular structure and a clear separation between the physics and the technical details, ii) it is MPI-based and uses a discrete Fourier transform parallelized in multiple spatial dimensions, which makes it specially appropriate for probing scenarios with well-separated scales, running very high resolution simulations, or simply very long ones, iii) it introduces its own symbolic language, defining field variables and operations over them, so that one can introduce differential equations and operators in a manner as close as possible to the continuum, iv) it includes a library of numerical algorithms, ranging from O (δt2) to O (δt10) methods, suitable for simulating global and gauge theories in an expanding grid, including the case of 'self-consistent' expansion sourced by the fields themselves. Relevant observables are provided for each algorithm (e.g. energy densities, field spectra, lattice snapshots) and we note that, remarkably, all our algorithms for gauge theories (Abelian or non-Abelian) always respect the Gauss constraint to machine precision.
- Publication:
-
Computer Physics Communications
- Pub Date:
- February 2023
- DOI:
- 10.1016/j.cpc.2022.108586
- arXiv:
- arXiv:2102.01031
- Bibcode:
- 2023CoPhC.28308586F
- Keywords:
-
- Early universe;
- Real-time lattice simulations;
- Gauge-invariant lattice techniques;
- Astrophysics - Cosmology and Nongalactic Astrophysics;
- General Relativity and Quantum Cosmology;
- High Energy Physics - Lattice;
- High Energy Physics - Phenomenology
- E-Print:
- 111 pages, 3 figures and O(100) code files. v1.1 is out, with GW!