InflationEasy: A C++ Lattice Code for Inflation - Angelo Caravano (2025)
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 $δN$ 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. 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.
Keywords: astro-ph.CO; gr-qc; hep-lat; hep-ph