PeTar: a high-performance N-body code for modeling massive collisional stellar systems

Long Wang, Masaki Iwasawa, Keigo Nitadori, Junichiro Makino
6/30/2020
astro-ph.IMastro-ph.GA

Official code: lwang-astro/PeTar (125 stars, C++, MIT, last commit 2026-11-06).

Abstract

The numerical simulations of massive collisional stellar systems, such as globular clusters (GCs), are very time-consuming. Until now, only a few realistic million-body simulations of GCs with a small fraction of binaries (5%) have been performed by using the NBODY6++GPU code.

Show full abstract

Such models took half a year computational time on a GPU based super-computer. In this work, we develop a new N-body code, PeTar, by combining the methods of Barnes-Hut tree, Hermite integrator and slow-down algorithmic regularization (SDAR). The code can accurately handle an arbitrary fraction of multiple systems (e.g. binaries, triples) while keeping a high performance by using the hybrid parallelization methods with MPI, OpenMP, SIMD instructions and GPU. A few benchmarks indicate that PeTar and NBODY6++GPU have a very good agreement on the long-term evolution of the global structure, binary orbits and escapers. On a highly configured GPU desktop computer, the performance of a million-body simulation with all stars in binaries by using PeTar is 11 times faster than that of NBODY6++GPU. Moreover, on the Cray XC50 supercomputer, PeTar well scales when number of cores increase. The ten million-body problem, which covers the region of ultra compact dwarfs and nuclearstar clusters, becomes possible to be solved.

View on arXivView PDF

Code Implementations(1)

lwang-astro/PeTarOfficial100%
MIT

PeTar is a high-performance N-body code for modelling the evolution of star clusters and tidal streams, including the effect of galactic potential, dynamics of binary and hierarchical system, single and binary stellar evolution.

12535C++, FortranDec 8, 20163 weeks agoMIT
clusterscudafdpsparallelizationparticle-data+3 more

Similar Papers

Cite this paper

@article{wang2020petar,
  title  = {PeTar: a high-performance N-body code for modeling massive collisional stellar systems},
  author = {Long Wang and Masaki Iwasawa and Keigo Nitadori and Junichiro Makino},
  year   = {2020},
  eprint = {2006.16560},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.16560}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.16560.svg)](https://codeofpaper.com/paper/2006.16560)

Discussion