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.
Outputs





Links
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
source: github-release
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
source: github-release
5.2.1 release* Support python on arm based linux systems (no wheels yet).
source: github-release
5.2.0 release* Improved WHFast512 Kepler solver for highly eccentric and hyperbolic orbits. * Added symplectic correctors for WHFast
source: github-release
5.1.0 release* Updated WHFast512. See Dagli and Rein (in prep) for details. WHFast512 is now written in x86 assembly, it uses Jacobi
source: github-release
5.1.1 release* Fixed python source dist. * Added python wheels for 3.13 and 3.14.
source: github-release
5.0.1 release* Optimized Lazy Kernel method in WHFast. * Fixed bug in WHFast512 when GR is enabled, related to backreaction. * Fixed
source: github-release
5.0.0 releasemajorMajor version 5* This release incorporates major updates and breaks backwards compatability. * Particles can now be identified with a n
source: github-release
0.3days releaseregister rename
source: github-release
4.6.0 release* Merged the part1() and part2() functions of all integerators into a single step() function. Integrators are now respon
source: github-release
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
source: github-release
4.5.0 release* Added support for (Frequency) Modified Fourier Transforms. Heavily based on David Nesvorny's code. The new functions a
source: github-release
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
source: github-release
4.4.9 release* Fixes a bug that affected collisions searches with a tree code. * Support for mid-timestep add/remove of particles wit
source: github-release
4.4.10 release* Version bump to rerun github workflows for pypi uploads
source: github-release
4.4.8 release* Added support for symplectic correctors with barycentric coordinates in WHFast.
source: github-release
4.4.7 release* Added option to disable SSL checks for Horizon queries with `rebound.horizons.SSL_CONTEXT = 'unverified'.` * Added uni
source: github-release
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
source: github-release
4.4.4 release* Fixed several memory leaks and other memory issues. It is unlikely that any of those bugs did affect an simulation. *
source: github-release
4.4.5 release* Version updated to test github workflows
source: github-release
4.4.3 release* REBOUND now raises ImportError if it detects a size mismatch between the C and python Simulation structures. * Fixes a
source: github-release
4.4.2 release* Fixed bug in TRACE when adding particles. * Added WHFast fallback for synchronizing WHFast512 simulations with `N_syst
source: github-release
4.4.0 release* Added TRACE integrator. See Lu, Hernandez & Rein (2024) for details on this implementation.
source: github-release
4.4.1 release* Fixed bug in TRACE for FULL PERI modes.
source: github-release
4.3.2 release* No longer clipping particles and orbits in visualization. * Added a scale to visualization. Hide by pressing `t`. * Op
source: github-release
4.3.1 release* Added new `plane` visualization mode for orbits. Press `w` to toggle through available orbit visualization modes. * Ad
source: github-release
4.3.0 release* Take screenshots of WebGL based visualizations using the `reb_simulation_output_screenshot()` function. You need to co
source: github-release
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
source: github-release
4.1.0 release* New visualization feature that allows you to show past particle positions and orbits (keyboard commands p, u, and i).
source: github-release
4.1.1 release* Fixed python wheels for windows.
source: github-release
4.0.3 release* Default IAS15 timestepping criterion is now `adaptive_mode=2`. See Pham, Rein, and Spiegel (2024) for details. To use
source: github-release
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
source: github-release
4.0.1 release* Include missing python packages
source: github-release
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
source: github-release
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
source: github-release
3.28.3 release* Removed distutils requirement in preparation for python 3.12. * Removed rebound.InterruptiblePool as it no longer work
source: github-release
3.28.2 release* Implemented own fmemopen implementation on MacOS. This is mainly to appease conda-forge builds. * Improved sqrt7 algor
source: github-release
3.28.1 release* Improved support for reading old and corrupted SimulationArchives. * Renamed `ri_ias15.epsilon_global` to `ri_ias15.ad
source: github-release
3.28.0 release- Native Windows support. REBOUND can now be built natively on Windows (without WSL) using the Microsoft Visual Studio C
source: github-release
3.27.0 release* In python, Simulation and Particle objects are now picklable. Similar to loading Simulations from a binary file, when
source: github-release
3.26.2 releaseFixes various signed/unsigned int issues throughout the code. This should not affect any calculation but greatly reduce
source: github-release
3.26.3 releaseFixes more signed/unsigned int issues to reduce compiler warnings. Fixes a previous bug when using MPI.
source: github-release
3.26.1 release* Added support for `AVX512` and `FFP_CONTRACT_OFF` environment variables when using pip to install REBOUND.
source: github-release
3.26.0 releaseAdded WHFast512 integrator (Javaheri, Rein, Tamayo 2023)
source: github-release
3.25.0 release* MPI parts updated and unit tests added * Fixed machine independence bug in TES.
source: github-release
3.25.1 releaseBug fixed that prevented the installation via PyPi
source: github-release
3.24.3 release* Updated unit tests so they work on 32bit machines
source: github-release
2021 1 entry
3.17.0 tagFirst release3.17.0
source: github-tag
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.
source: changelog
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
source: changelog
1.0.0 releasemajorMajor version 1Version 1.0.0 published on PyPI.
source: pypi
0.1.8 releaseFirst PyPI releaseEarliest REBOUND release on PyPI, making the Python module installable with pip.
source: pypi