The mass-Peak Patch algorithm for fast generation of deep all-sky dark matter halo catalogues and itsN-body validation

George Stein, Marcelo A. Alvarez, J. Richard BondMonthly 2018 · DOI

Abstract: We present a detailed description and validation of our massively parallel update to the mass-Peak Patch method, a fully predictive initial-space algorithm to quickly generate dark matter halo catalogues in very large cosmological volumes. We perform an extensive systematic comparison to a suite of N-body simulations covering a broad range of redshifts and simulation resolutions, and find that, without any parameter fitting, our method is able to generally reproduce N-body results while typically using over 3 orders of magnitude less CPU time, and a fraction of the memory cost. Instead of calculating the full non-linear gravitational collapse determined by an N-body simulation, the mass-Peak Patch method finds an overcomplete set of just-collapsed structures around a hierarchy of density-peak points by coarse-grained (homogeneous) ellipsoidal dynamics. A complete set of mass peaks, or haloes, is then determined by exclusion of overlapping patches, and second-order Lagrangian displacements are used to move the haloes to their final positions and to give their flow velocities. Our results show that the mass-Peak Patch method is well suited for creating large ensembles of halo catalogues to mock cosmological surveys, and to aid in complex statistical interpretations of cosmological models.

Introduction

Modern cosmological surveys, such as those conducted by the Euclid mission or the Vera C. Rubin Observatory, require vast ensembles of "mock" universes to accurately estimate covariance matrices and validate analysis pipelines. The traditional "gold standard" for generating these catalogs is the N-body simulation, which tracks the gravitational evolution of billions of particles. However, the computational cost of N-body simulations is prohibitive for generating the thousands of realizations needed for robust statistical analysis.

Approximate methods have been developed to bridge this gap, but many rely on stochastic processes or extensive parameter tuning to match N-body results. This paper introduces a massively parallel update to the mass-Peak Patch (mPP) algorithm—a physically predictive, initial-space method that achieves N-body accuracy with a $1000\times$ reduction in computational time.

The mass-Peak Patch Methodology

The mPP algorithm operates in the Lagrangian (initial) space of the early universe, identifying regions destined to collapse into dark matter halos based on the initial density field. The process follows four distinct stages:

  1. Initial Conditions: A linear density field is generated on a grid, representing the Gaussian random field of the early universe.
  2. Peak Finding & Ellipsoidal Collapse: The algorithm identifies density peaks across multiple scales. For each peak, it solves the equations for homogeneous ellipsoidal collapse, accounting for external tidal forces.
  3. Exclusion: To prevent mass double-counting, an exclusion hierarchy is applied to overlapping patches, resulting in a unique set of halos.
  4. Displacements: Second-Order Lagrangian Perturbation Theory (2LPT) is used to calculate the final positions and velocities of the halos.
The four-step mass-Peak Patch algorithm: 1) Generation of initial conditions, 2) Peak finding and ellipsoidal collapse calculation, 3) Exclusion of overlapping patches, and 4) Calculation of final displacements and velocities.

Physical Foundations: Ellipsoidal Collapse

A key innovation of the mPP method is its use of ellipsoidal dynamics rather than simpler spherical collapse models. By considering the "tides" and "strains" from the surrounding cosmic web, the algorithm captures the complex shapes and formation times of halos more accurately. This predictive approach allows the model to remain robust across different redshifts and cosmological parameters without the need for recalibration against a training set.

Evolution of a halo and its surrounding environment from redshift z=2 to z=0. The rightmost panel shows the collapse of the three ellipsoidal axes over time (scale factor), illustrating the predictive power of the ellipsoidal collapse model.

Validation and Performance

The authors validated the mPP algorithm against a suite of Gadget-2 N-body simulations. The results demonstrate significant advantages in both efficiency and accuracy:

  • Computational Efficiency: The mPP method is typically over 1,000 times faster than N-body simulations. In a benchmark test, mPP completed a catalog in approximately 3 minutes, whereas the N-body equivalent required nearly 47 hours.
  • Memory Footprint: By operating in initial space and avoiding particle tracking, the memory requirement is drastically reduced to as little as 28 bytes per particle.
  • Statistical Accuracy: The halo mass function—the number density of halos as a function of mass—is reproduced within 10% of N-body results across redshifts $z=0, 1, \text{ and } 2$.
  • Spatial Fidelity: Over 90% of massive halos identified by mPP have a direct spatial counterpart in the reference N-body simulations.

Conclusion

The massively parallel mass-Peak Patch algorithm provides a powerful tool for modern cosmology. By combining the speed of approximate methods with the physical rigor of ellipsoidal collapse, it enables the rapid generation of high-fidelity halo catalogs. This capability is essential for the statistical interpretation of upcoming large-scale structure surveys and the exploration of diverse cosmological models.

Summary updated

BibTeX
@inproceedings{stein2018mass,
  author = {George Stein and Marcelo A. Alvarez and J. Richard Bond},
  title = {{The mass-Peak Patch algorithm for fast generation of deep all-sky dark matter halo catalogues and its<i>N</i>-body validation}},
  booktitle = {Monthly},
  year = {2018},
  doi = {10.1093/mnras/sty3226},
}
Figure