This 2026 arXiv lecture note is aimed at cosmological simulation practitioners, bridging the gap between perturbation theory and the practice of cosmological N-body simulations, and systematically presents methods for generating initial conditions and fitting fast integrators.
Initial condition generation for cosmological N-body simulations, whose complete technical pipeline covers everything from constructing Gaussian random fields to choosing a numerical integration scheme, is the core subject of this discussion.
The standard research framework in this field takes the Vlasov-Poisson system of cold, collisionless matter as the governing equations, solves the system's evolution via the characteristics method and Lagrangian perturbation theory, and ultimately outputs particle initial states that can be used directly in N-body simulations.
The core optimization goal in this direction is currently to minimize the impact of truncation errors and discreteness errors as much as possible by using higher-order Lagrangian perturbation theory and delaying the simulation start time, while also adopting more appropriate time integration schemes.
A stationary Gaussian random field has a diagonal covariance structure in Fourier space, with its expectation values determined by a given power spectrum P(k). This property allows researchers to efficiently simulate Gaussian random fields on a periodic domain with a specified power spectrum via discrete Fourier transforms. Combined with the content that follows, you can intuitively understand the spatial distribution of a Gaussian random field in a three-dimensional periodic domain, and how the input power spectrum matches the simulated output.
When the initial displacement potential of Lagrangian perturbation theory has a one-dimensional planar configuration, all higher-order LPT terms vanish exactly; in this case the Zel'dovich approximation is exactly exact before shell crossing occurs, with no error from higher-order corrections. Combined with the figure showing the displacement fields of LPT at different orders and the convergence comparison curves for the spherically symmetric collapse scenario, you can intuitively understand the exactness characteristics of this special scenario.
Higher-order LPT can be constructed entirely layer by layer from the first-order LPT results, and the entire perturbative series is convergent and physically valid before the shell-crossing singularity appears — that is, before the characteristic curves intersect in position space.
Among the family of integrators constrained by physical priors designed according to the perturbative rules described above, there is a unique second-order integrator that simultaneously satisfies symplecticity and Zel'dovich consistency — a property that was not formally proven in its original related work.
The key construction condition for this integrator's symplecticity is choosing the coefficient α such that the canonical momentum is recovered at the end of the time step, giving α = .
The BULLFROG integrator in the same family makes a different design trade-off: it deliberately gives up the symplecticity requirement and instead requires trajectories to match second-order Lagrangian perturbation theory results; to achieve this goal, its coefficient α is set to .
Measured analysis compared the impact of different initialization schemes on the nonlinear power spectrum at z=0 and z=1, overturning the previous field-wide consensus that simulations should be initialized as early as possible. The optimal initialization conclusion is to use higher-order LPT to initialize at a very late time; in the analyzed scenario, 3LPT initialized at z=24 achieves the highest accuracy.
Regarding the convergence properties of time integrators fitted to LPT evolution rules, measured validation shows that such N-body simulation integrators conforming to LPT evolution constraints require fewer time steps to achieve convergence on large scales than when using standard integrators.
Two competing types of numerical error arise in initial condition generation. The first is the truncation error introduced by expanding Lagrangian perturbation theory to finite order; this error grows gradually with the simulation evolution time, until shell crossing appears and Lagrangian perturbation theory no longer applies. It can be controlled by starting the simulation earlier or using higher-order Lagrangian perturbation theory. The second is the discreteness error introduced by approximating the continuous fluid with a discrete particle system in N-body simulations; the perturbation growth rate of the discrete particle system differs observably from that of the continuous fluid.
Provided that initial conditions are generated using Lagrangian perturbation theory of sufficiently high order, delaying the simulation start time as much as possible effectively suppresses the negative impact of the discreteness error.