Particle loads for cosmological simulations with equal-mass dark matter and baryonic particles
Shihong Liao, Yizhou Liu, Haonan Zheng, Ming Li, Jie Wang, Liang Gao, Bingqing Sun, Shi Shao
TL;DR
This work addresses spurious collisional heating in cosmological simulations by introducing a two-component glass-based particle-load method that supports arbitrary $N_{ m DM}:N_{ m gas}$ ratios and equal-mass dark matter and baryonic particles. The method simultaneously relaxes two Poisson distributions under total anti-gravity plus intra-component repulsion, with intra-component forces scaled by $C_{ m gas}$ and $C_{ m DM}$ and final off-switch steps, producing $P(k) \\propto k^{4}$ and highly uniform, isotropic loads. When applied to Planck-like cosmologies, equal-mass initializations mitigate the small-scale power transfer seen in unequal-mass runs, aligning results with high-resolution benchmarks in both pure gravity and non-radiative hydrodynamics. The approach, implemented in Gadget-2 and extensible to multi-component systems, provides a practical, flexible tool for accurate initial conditions across diverse cosmologies.
Abstract
Traditional cosmological hydrodynamical simulations usually assume equal-numbered but unequal-mass dark matter and baryonic particles, which can lead to spurious collisional heating due to energy equipartition. To avoid such a numerical heating effect, a simulation setup with equal-mass dark matter and baryonic particles, which corresponds to a particle number ratio of $N_{\rm DM}:N_{\rm gas} = Ω_{\rm cdm} / Ω_{\rm b}$, is preferred. However, previous studies have typically used grid-based particle loads to prepare such initial conditions, which can only reach specific values for $N_{\rm DM}:N_{\rm gas}$ due to symmetry requirements. In this study, we propose a method based on the glass approach that can generate two-component particle loads with more general $N_{\rm DM}:N_{\rm gas}$ ratios. The method simultaneously relaxes two Poisson particle distributions by introducing an additional repulsive force between particles of the same component. We show that the final particle load closely follows the expected minimal power spectrum, $P(k) \propto k^{4}$, exhibits good homogeneity and isotropy properties, and remains sufficiently stable under gravitational interactions. Both the dark matter and gas components individually also exhibit uniform and isotropic distributions. We apply our method to two-component cosmological simulations and demonstrate that an equal-mass particle setup effectively mitigates the spurious collisional heating that arises in unequal-mass simulations. Our method can be extended to generate multi-component uniform and isotropic distributions. Our code based on Gadget-2 is available at https://github.com/liaoshong/gadget-2glass .
