Package: nbody 1.52

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.52.tar.gz
nbody_1.52.zip(r-4.7)nbody_1.52.zip(r-4.6)nbody_1.52.zip(r-4.5)
nbody_1.52.tgz(r-4.6-arm64)nbody_1.52.tgz(r-4.6-x86_64)nbody_1.52.tgz(r-4.5-x86_64)nbody_1.52.tgz(r-4.5-arm64)
nbody_1.52.tar.gz(r-4.7-arm64)nbody_1.52.tar.gz(r-4.7-x86_64)nbody_1.52.tar.gz(r-4.6-arm64)nbody_1.52.tar.gz(r-4.6-x86_64)
nbody_1.52.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
nbody/json (API)

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

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

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

On CRAN:

Conda:

cpp

2.00 score 1 scripts 159 downloads 11 exports 11 dependencies

Last updated from:2ec76b59ca. Checks:12 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK127
linux-devel-x86_64OK120
source / vignettesOK207
linux-release-arm64OK191
linux-release-x86_64OK124
macos-release-arm64OK86
macos-release-x86_64FAIL108
macos-oldrel-arm64OK107
macos-oldrel-x86_64OK213
windows-develOK107
windows-releaseOK124
windows-oldrelOK154
wasm-releaseOK84

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