English

CUBE2: A Parallel $N$-Body Simulation Code for Scalability, Accuracy, and Memory Efficiency

Instrumentation and Methods for Astrophysics 2026-03-05 v2 Cosmology and Nongalactic Astrophysics

Abstract

NN-body simulation serves as a critical method for modeling cosmic evolution and poses a significant challenge in high-performance computing. We present CUBE2, an open-source cosmological NN-body code emphasizing memory efficiency, computational performance, scalability and precision. The core of its algorithm utilizes multi-level Particle-Mesh (PM) method to solve the Poisson equation for matter distribution, leveraging the well-optimized Fast Fourier Transform (FFT) for computational efficiency. Precision is ensured by the optimized Green's function that seamlessly bridges gravitational interactions between multi-level PM and Particle-Particle (PP) calculations. The program design enhances per-core/node efficiency in processing NN-body particles, while the Information Optimized Storage (IOS) addresses memory constraints for large particle counts. Using CUBE2, we run two cosmological simulations with particle counts of 614436144^3 on the Advanced Computing East China Sub-center (ACECS) to test performance and accuracy.

Keywords

Cite

@article{arxiv.2512.12629,
  title  = {CUBE2: A Parallel $N$-Body Simulation Code for Scalability, Accuracy, and Memory Efficiency},
  author = {Hao-Ran Yu and Bing-Hang Chen and Kun Xu and Ming-Jie Sheng and Jiaxin Han and Yipeng Jing and Huahua Cui},
  journal= {arXiv preprint arXiv:2512.12629},
  year   = {2026}
}

Comments

12 pages, 9 figures, 2 tables. Matches the accepted version in SCIENCE CHINA Physics, Mechanics & Astronomy