Ginnungagap -- a massively parallel cosmological initial conditions generator
Sergey Pilipenko, Gustavo Yepes, Stefan Gottlöber, Steffen Knollmann
TL;DR
Ginnungagap addresses the need for massively parallel, open-source cosmological initial-condition generation with support for zoom-in and resolution-refinement. It constructs ICs by generating a Gaussian white-noise field, convolving it with the transfer function to obtain density and velocity fields, and applying the Zel'dovich approximation to place particles, with plans for improved perturbation theory. The code demonstrates robust halo-property consistency across resolutions for both Milky Way–scale and cluster-mass halos, enabling reliable high-resolution resimulations and constrained realizations. Its modular workflow, automated configuration tooling, and open-source license make Ginnungagap a practical backbone for large-scale cosmological simulations across evolving hardware.
Abstract
Ginnungagap is a fully parallel (MPI+OpenMP) code designed to generate cosmological initial conditions for simulations involving very large numbers of particles. It operates in several modes, including the creation of initial conditions with either uniform or spatially varying resolution (for "zoom-in" simulations). The initial conditions can be fully random or derived by extending the resolution of existing ones while preserving the large-scale structures. Ginnungagap is open source and modular, consisting of a collection of independent tools that can be used for a variety of tasks. In this paper, we describe the main features of Ginnungagap and present test results for different types of simulations prepared with it.
