Package: nbody 1.41

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.41.tar.gz
nbody_1.41.zip(r-4.5)nbody_1.41.zip(r-4.4)nbody_1.41.zip(r-4.3)
nbody_1.41.tgz(r-4.4-x86_64)nbody_1.41.tgz(r-4.4-arm64)nbody_1.41.tgz(r-4.3-x86_64)nbody_1.41.tgz(r-4.3-arm64)
nbody_1.41.tar.gz(r-4.5-noble)nbody_1.41.tar.gz(r-4.4-noble)
nbody_1.41.tgz(r-4.4-emscripten)nbody_1.41.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:

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

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

11 exports 0.09 score 11 dependencies 1 scripts 29 downloads

Last updated 28 days agofrom:461f102350. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 21 2024
R-4.5-win-x86_64OKAug 21 2024
R-4.5-linux-x86_64OKAug 21 2024
R-4.4-win-x86_64OKAug 21 2024
R-4.4-mac-x86_64OKAug 21 2024
R-4.4-mac-aarch64OKAug 21 2024
R-4.3-win-x86_64OKAug 21 2024
R-4.3-mac-x86_64OKAug 21 2024
R-4.3-mac-aarch64OKAug 21 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