Gravitational N-Body Simulation
Overview
Run simple direct gravitational N-body simulations. The package can access different external N-body simulators (e.g. GADGET-4 by Springel et al. (2021) doi:10.48550/arXiv.2010.03567), but also has a simple built-in simulator. This default simulator uses a variable block time step and lets the user choose between a range of integrators, including 4th and 6th order integrators for high-accuracy simulations. Basic top-hat smoothing is available as an option. The code also allows the definition of background particles that are fixed or in uniform motion, not subject to acceleration by other particles.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 8includes a package overview page
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 33%
- Documented parameters
- 100%
- Return-value docs
- 83%
- Help pages citing references
- 0%
Downloads
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2024-08-20
- 1.41Latest
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2023-11-28requires archived package 'magicaxis'
- RR 4.3.0 released · 2023-04-21
- 1.332022-08-16 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.312022-03-04 · diff ↗
- 1.302022-02-03
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-03
- Total releases
- 4 / 4 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 21 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("nbody")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.