[Paper Review] Particle-Mesh code for cosmological simulations
This paper presents a publicly available, fast, and simple Particle-Mesh (PM) N-body code for cosmological simulations, enabling efficient exploration of diverse cosmological models—including flat, open, and closed universes with or without a cosmological constant, varying Hubble parameters, hot neutrinos, and tilted initial power spectra. The code supports simulations up to $800^3$ mesh and $256^3$ particles on standard workstations, with built-in tools for power spectrum analysis, halo finding via bound-density-maxima, and comprehensive data analysis routines.
Particle-Mesh (PM) codes are still very useful tools for testing predictions of cosmological models in cases when extra high resolution is not very important. We release for public use a cosmological PM N-body code. We provide a complete package of routines needed to set initial conditions, to run the code, and to analyze the results. The package allows you to simulate models with numerous combinations of parameters: open/flat/closed background, with or without the cosmological constant, different values of the Hubble constant, with or without hot neutrinos, tilted or non-tilted initial spectra, different amount of baryons. Routines are included to measure the power spectrum and the density distribution function in your simulations, and a bound-density-maxima code for halo finding. We also provide results of test runs. A simulation with 256^3 mesh and 128^3 particles can be done in a couple of days on a typical workstation (70Mb of RAM are needed). To run simulations with 800^3 mesh and 256^3 particles one needs a computer with 1Gb memory and 1Gb disk space. The code has been successfully tested on an HP workstation and on a Sun workstation running Solaris. Most of the files (not tests) can be obtained from ftp://astro.nmsu.edu/pub/aklypin/PMCODE The package can be downloaded from http://astro.nmsu.edu/~aklypin/PM/pmcode/index.html We provide this tool as a service to the astronomical community, but we cannot guarantee results or publications.
Motivation & Objective
- To provide a fast, accessible, and extensible Particle-Mesh (PM) N-body code for cosmological simulations to support testing of cosmological models.
- To enable simulations with a wide range of cosmological parameters, including varying Hubble constants, cosmological constants, curvature, baryon content, and massive neutrinos.
- To offer a complete software package with tools for setting initial conditions, running simulations, and analyzing results—including power spectrum and halo catalog generation.
- To support high particle counts (up to $256^3$) and large meshes ($800^3$) on standard workstations, making it suitable for large-scale structure studies.
- To provide a robust, tested, and portable codebase for the astronomical community, with documented examples and extensive analysis tools.
Proposed method
- Uses comoving coordinates and dimensionless variables to simplify the equations of motion and improve numerical stability.
- Employs a 7-point discrete Laplacian operator and Cloud-in-Cell (CIC) density assignment for force computation on a fixed mesh.
- Solves the Poisson equation for gravitational potential using the dimensionless form of the density contrast and cosmological parameters.
- Integrates particle trajectories using a time-stepping scheme in terms of the expansion parameter $a$, with equations of motion rewritten in terms of particle momenta $\mathbf{p}$.
- Includes routines for generating initial conditions with arbitrary initial power spectra, either via fitting functions (e.g., in cdm.fit) or direct code modification.
- Provides a bound-density-maxima algorithm for halo finding, with configurable parameters for sphere count, shell resolution, and radial binning to optimize detection.
Experimental results
Research questions
- RQ1How can a fast and simple PM N-body code be designed to support a broad range of cosmological models with varying parameters?
- RQ2What are the optimal configuration parameters for the bound-density-maxima halo-finding algorithm to ensure detection of both massive and low-mass halos?
- RQ3How accurately can the PM method reproduce power spectra and density distribution functions in cosmological simulations with $256^3$ particles and $800^3$ mesh?
- RQ4What is the computational cost and memory requirement for simulating large-scale structure with $800^3$ mesh and $256^3$ particles on standard workstations?
- RQ5How can initial conditions be generated for non-standard models such as CHDM with massive neutrinos, and what constraints apply to their redshift and spectral shape?
Key findings
- A simulation with $256^3$ mesh and $128^3$ particles can be completed in a couple of days on a typical workstation using approximately 70 MB of memory.
- Simulations with $800^3$ mesh and $256^3$ particles require about 1 GB of memory and 1 GB of disk space, and are feasible on modern workstations.
- The code successfully supports a wide range of cosmological models, including flat, open, and closed universes, with or without a cosmological constant, varying Hubble parameters, and massive neutrinos.
- The bound-density-maxima halo-finding code detects halos effectively when using 100,000–150,000 seed spheres and 5–6 particles per radial shell, with proper radial binning and minimum radius constraints.
- The power spectrum and density distribution functions can be reliably measured using the PMpower routine, with output stored in Spectrum.DAT.
- Test simulations with $32^3$ particles and $128^3$ mesh, and $128^3$ particles and $256^3$ mesh, are provided as examples with full data and analysis outputs for validation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.