Package: nbody 1.48

nbody: Gravitational N-Body Simulation

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.

Authors:Danail Obreschkow [aut, cre]

nbody_1.48.tar.gz
nbody_1.48.zip(r-4.5)nbody_1.48.zip(r-4.4)nbody_1.48.zip(r-4.3)
nbody_1.48.tgz(r-4.4-x86_64)nbody_1.48.tgz(r-4.4-arm64)nbody_1.48.tgz(r-4.3-x86_64)nbody_1.48.tgz(r-4.3-arm64)
nbody_1.48.tar.gz(r-4.5-noble)nbody_1.48.tar.gz(r-4.4-noble)
nbody_1.48.tgz(r-4.4-emscripten)nbody_1.48.tgz(r-4.3-emscripten)
nbody.pdf |nbody.html
nbody/json (API)

# Install 'nbody' in R:
install.packages('nbody', repos = c('https://obreschkow.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/obreschkow/nbody/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

2.48 score 1 scripts 172 downloads 11 exports 11 dependencies

Last updated 1 months agofrom:1b22c3bdb2. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-win-x86_64OKNov 10 2024
R-4.5-linux-x86_64OKNov 10 2024
R-4.4-win-x86_64OKNov 10 2024
R-4.4-mac-x86_64OKNov 10 2024
R-4.4-mac-aarch64OKNov 10 2024
R-4.3-win-x86_64OKNov 10 2024
R-4.3-mac-x86_64OKNov 10 2024
R-4.3-mac-aarch64OKNov 10 2024

Exports:.nbody.envdefault.codeenergyreset.cmrun.simulationsetupsetup.ellipsesetup.halleysetup.periodic.3bodysetup.pythagorassetup.sunearth

Dependencies:celestialmagicaxismapprojmapsMASSNISTunitsplotrixpracmaRANNRcppsm

Readme and manuals

Help Manual

Help pageTopics
Gravitational N-Body Simulationnbody-package nbody
Package environment.nbody.env
Set a default external simulation codedefault.code
Mechanical energy of an N-body systemenergy
Visualize an N-body simulationplot.simulation
Move center of mass to the originreset.cm
Run a direct N-body simulationrun.simulation
Initialize N-body simulationsetup setup.3body.periodic setup.earth setup.ellipse setup.halley setup.periodic.3body setup.pythagoras setup.sunearth