English

IP geolocation by DB-IP (CC BY 4.0)

← All tools

REBOUND

N-body integrator for gravitational dynamics: planets, moons, stars, rings, dust and granular particles. Offers symplectic WHFast, SABA and WHFast512 (AVX512), hybrid MERCURIUS and TRACE for close encounters, and the adaptive high-accuracy IAS15, plus collisions and user-defined ODEs for tides and spin. C99 core with a pip-installable Python module and real-time 3D visualization; by Hanno Rein and contributors, GPL-3.0.

REBOUND is an N-body integrator for gravitational dynamics, written in C99 with a Python module installable through pip. Hanno Rein started it, and it has been developed with contributors since its first public release in 2015. It simulates planets, moons, stars, ring and dust particles and granular material. The integrators include the symplectic WHFast, SABA and WHFast512 (AVX512), the hybrid MERCURIUS and TRACE schemes for close encounters, the adaptive high-accuracy IAS15, and a leapfrog. It also supports collisions, variational equations for chaos indicators such as MEGNO, simulation archives for exact restarts, and additional forces through REBOUNDx. Simulations can be shown in a real-time 3D view. The documentation includes many runnable examples, from orbit plots to Saturn's rings and the orbit of the Tesla Roadster. The code is released under the GPL-3.0.

53 timeline entries · 6 major versions/milestones · 8 years · https://github.com/hannorein/rebound · GitHub repository · RSS

Outputs

REBOUND: Shearing sheet boundary conditions
DiagramShearing sheet boundary conditionsSource: github.com/hannorein/rebound/blob/main/docs/img/shear.png · GPL-3.0 (project repository) · REBOUND repository (hannorein/rebound)
REBOUND: Orbital elements
DiagramOrbital elementsSource: github.com/hannorein/rebound/blob/main/docs/img/orbit.png · GPL-3.0 (project repository) · REBOUND repository (hannorein/rebound)
Orbit plot set of the Tesla Roadster and the inner planets from REBOUND
Output: orbit of the Tesla Roadster (Starman) among the inner planets, computed with REBOUND (source: REBOUND Starman example)Source: github.com/hannorein/rebound/blob/main/ipython_examples/Sta… · GPL-3.0 (repo) · REBOUND authors (Hanno Rein et al.)
Time series of orbital elements from a REBOUND integration
Output: semi-major axis and eccentricity of the Tesla Roadster over 100,000 years, computed with REBOUND (source: REBOUND Starman example)Source: github.com/hannorein/rebound/blob/main/ipython_examples/Sta… · GPL-3.0 (repo) · REBOUND authors (Hanno Rein et al.)
Shearing-sheet simulation of ring particles from REBOUND
Output: particle positions in a patch of Saturn's rings, simulated with REBOUND (source: REBOUND Saturn's rings example)Source: github.com/hannorein/rebound/blob/main/ipython_examples/Sat… · GPL-3.0 (repo) · REBOUND authors (Hanno Rein et al.)

Release timeline (newest first, grouped by year and version)

2026 12 entries●
5.2.3 release- Fixed frequency analysis error handling. - Fixed CI tests and python examples to work with python 3.15. - Support for
5.2.2 release* Fixed a bug that occured when setting a heartbeat function from python. * Fixed a bug that occured when reading a Simu
5.2.1 release* Support python on arm based linux systems (no wheels yet).
5.2.0 release* Improved WHFast512 Kepler solver for highly eccentric and hyperbolic orbits. * Added symplectic correctors for WHFast
5.1.0 release* Updated WHFast512. See Dagli and Rein (in prep) for details. WHFast512 is now written in x86 assembly, it uses Jacobi
5.1.1 release* Fixed python source dist. * Added python wheels for 3.13 and 3.14.
5.0.1 release* Optimized Lazy Kernel method in WHFast. * Fixed bug in WHFast512 when GR is enabled, related to backreaction. * Fixed
5.0.0 releasemajorMajor version 5* This release incorporates major updates and breaks backwards compatability. * Particles can now be identified with a n
0.3days releaseregister rename
4.6.0 release* Merged the part1() and part2() functions of all integerators into a single step() function. Integrators are now respon
4.5.1 release* Added leapfrog integrators of order 4, 6, and 8. Order can be set with `r->ri_leapfrog->order`. * Heartbeat function i
4.5.0 release* Added support for (Frequency) Modified Fourier Transforms. Heavily based on David Nesvorny's code. The new functions a
2025 5 entries
4.4.11 release* The collision resolve function now returns a type `enum REB_COLLISION_RESOLVE_OUTCOME`. The actual integer values rema
4.4.9 release* Fixes a bug that affected collisions searches with a tree code. * Support for mid-timestep add/remove of particles wit
4.4.10 release* Version bump to rerun github workflows for pypi uploads
4.4.8 release* Added support for symplectic correctors with barycentric coordinates in WHFast.
4.4.7 release* Added option to disable SSL checks for Horizon queries with `rebound.horizons.SSL_CONTEXT = 'unverified'.` * Added uni
2024 14 entries
4.4.6 release* When initializing particles with "uniform" in python, REBOUND now uses its own `reb_random_uniform()` function. This a
4.4.4 release* Fixed several memory leaks and other memory issues. It is unlikely that any of those bugs did affect an simulation. *
4.4.5 release* Version updated to test github workflows
4.4.3 release* REBOUND now raises ImportError if it detects a size mismatch between the C and python Simulation structures. * Fixes a
4.4.2 release* Fixed bug in TRACE when adding particles. * Added WHFast fallback for synchronizing WHFast512 simulations with `N_syst
4.4.0 release* Added TRACE integrator. See Lu, Hernandez & Rein (2024) for details on this implementation.
4.4.1 release* Fixed bug in TRACE for FULL PERI modes.
4.3.2 release* No longer clipping particles and orbits in visualization. * Added a scale to visualization. Hide by pressing `t`. * Op
4.3.1 release* Added new `plane` visualization mode for orbits. Press `w` to toggle through available orbit visualization modes. * Ad
4.3.0 release* Take screenshots of WebGL based visualizations using the `reb_simulation_output_screenshot()` function. You need to co
4.2.0 release* It is now possible to programmatically change all aspects of a REBOUND visualization. This can be used to set up defau
4.1.0 release* New visualization feature that allows you to show past particle positions and orbits (keyboard commands p, u, and i).
4.1.1 release* Fixed python wheels for windows.
4.0.3 release* Default IAS15 timestepping criterion is now `adaptive_mode=2`. See Pham, Rein, and Spiegel (2024) for details. To use
2023 16 entries●
4.0.2 release* Fixes an issue where the default Makefiles included white spaces after the SERVER and OPENGL variable definitions. Thi
4.0.1 release* Include missing python packages
4.0.0 releasemajorMajor version 4* Major API changes and new features! If you have used a previous version of REBOUND, then you will need to update your
3.28.4 release* WHFast512 now support the integration of 2 and 4 planet systems in parallel. Providing a speed up of up to 10x. * The
3.28.3 release* Removed distutils requirement in preparation for python 3.12. * Removed rebound.InterruptiblePool as it no longer work
3.28.2 release* Implemented own fmemopen implementation on MacOS. This is mainly to appease conda-forge builds. * Improved sqrt7 algor
3.28.1 release* Improved support for reading old and corrupted SimulationArchives. * Renamed `ri_ias15.epsilon_global` to `ri_ias15.ad
3.28.0 release- Native Windows support. REBOUND can now be built natively on Windows (without WSL) using the Microsoft Visual Studio C
3.27.0 release* In python, Simulation and Particle objects are now picklable. Similar to loading Simulations from a binary file, when
3.26.2 releaseFixes various signed/unsigned int issues throughout the code. This should not affect any calculation but greatly reduce
3.26.3 releaseFixes more signed/unsigned int issues to reduce compiler warnings. Fixes a previous bug when using MPI.
3.26.1 release* Added support for `AVX512` and `FFP_CONTRACT_OFF` environment variables when using pip to install REBOUND.
3.26.0 releaseAdded WHFast512 integrator (Javaheri, Rein, Tamayo 2023)
3.25.0 release* MPI parts updated and unit tests added * Fixed machine independence bug in TES.
3.25.1 releaseBug fixed that prevented the installation via PyPi
3.24.3 release* Updated unit tests so they work on 32bit machines
2021 1 entry
3.17.0 tagFirst release3.17.0
2016 1 entry●
3.0.0 releasemajorMajor version 3Introduces the Simulationarchive for bit-by-bit reproducible N-body simulations (Rein & Tamayo 2017); new binary format.
2015 3 entries●
2.0.0 releasemajorMajor version 2Thread-safe rewrite with no global variables (all state in reb_simulation), modules selectable at runtime, and a reb_ pr
1.0.0 releasemajorMajor version 1Version 1.0.0 published on PyPI.
0.1.8 releaseFirst PyPI releaseEarliest REBOUND release on PyPI, making the Python module installable with pip.
2011 1 entry
milestoneRepository created on GitHub