InflationEasy: A C++ Lattice Code for Inflation
arXiv:2506.11797
Abstract
InflationEasy is a lattice code specifically developed for cosmological inflation. It simulates the nonlinear dynamics of a scalar field on a three-dimensional lattice in an expanding FLRW universe using finite-difference spatial derivatives. Based in part on the well-known LATTICEEASY, it incorporates several features tailored specifically to inflationary applications, including a nonperturbative method to compute the curvature perturbation at the end of inflation directly from the lattice. In addition to the scalar sector, the code can also simulate scalar-induced gravitational waves, accounting for contributions generated both during inflation and during the subsequent horizon re-entry of scalar perturbations, and enabling the computation of the resulting gravitational-wave background. \texttt{InflationEasy} enables fully nonlinear studies of regimes with large fluctuations or nonperturbative non-Gaussianities, which lie beyond the reach of standard perturbation theory. It is applicable to a broad range of inflationary models, including those relevant for primordial black hole formation, gravitational-wave backgrounds, and large-scale structure.
21 pages, 3 figures. v2: updated paper and public code to include the gravitational-wave module. Code available at https://github.com/caravangelo/inflation-easy.git