Skip to content

Latest commit

 

History

History
99 lines (76 loc) · 4.81 KB

README.rst

File metadata and controls

99 lines (76 loc) · 4.81 KB

REBOUND - An open-source multi-purpose N-body code

http://img.shields.io/badge/rebound-v3.12.1-green.svg?style=flat http://img.shields.io/badge/license-GPL-green.svg?style=flat http://img.shields.io/travis/hannorein/rebound/master.svg?style=flat http://img.shields.io/badge/arXiv-1110.4876-green.svg?style=flat http://img.shields.io/badge/arXiv-1409.4779-green.svg?style=flat http://img.shields.io/badge/arXiv-1506.01084-green.svg?style=flat http://img.shields.io/badge/arXiv-1603.03424-green.svg?style=flat http://img.shields.io/badge/arXiv-1701.07423-green.svg?style=flat http://img.shields.io/badge/arXiv-1704.07715-green.svg?style=flat http://img.shields.io/badge/arXiv-1903.04972-green.svg?style=flat http://img.shields.io/badge/arXiv-1907.11335-green.svg?style=flat https://readthedocs.org/projects/rebound/badge/?version=latest

FEATURES

REBOUND is an N-body integrator, i.e. a software package that can integrate the motion of particles under the influence of gravity. The particles can represent stars, planets, moons, ring or dust particles. REBOUND is very flexible and can be customized to accurately and efficiently solve many problems in astrophysics. An incomplete feature list of REBOUND:

  • Symplectic integrators (WHFast, WHFastHelio, SEI, LEAPFROG)
  • High accuracy non-symplectic integrator with adaptive timestepping (IAS15)
  • Support for collisional/granular dynamics, various collision detection routines
  • The code is written entirely in C, conforms to the ISO standard C99 and can be used as a thread-safe shared library
  • Easy-to-use Python module, installation in 3 words: pip install rebound
  • Extensive set of example problems in both C and Python
  • Real-time, 3D OpenGL visualization (C version)
  • Parallelized with OpenMP (for shared memory systems)
  • Parallelized with MPI using an essential tree for gravity and collisions (for distributed memory systems)
  • No libraries are needed, use of OpenGL/glfw3 for visualization is optional
  • The code is fully open-source and can be downloaded freely from http://github.com/hannorein/rebound
  • No configuration is needed to run any of the example problems. Just type make && ./rebound in the problem directory to run them
  • Comes with standard ASCII or binary output routines
  • Different modules are easily interchangeable at runtime

One minute installation

You can install REBOUND with pip if you want to only use the python version of REBOUND:

pip install rebound

Then, you can run a simple REBOUND simulation such as

import rebound
sim = rebound.Simulation()
sim.add(m=1.0)
sim.add(m=1.0e-3, a=1.0)
sim.integrate(1000.)
sim.status()

If you want to use the C version of REBOUND simply copy and paste this line into your terminal (it won't do anything bad, we promise):

git clone http://github.com/hannorein/rebound && cd rebound/examples/shearing_sheet && make && ./rebound

Documentation

The full documentation with many examples, changelogs and tutorials can be found at

http://rebound.readthedocs.org

We're alway trying to improve REBOUND and extending the documention is high on our to-do list. If you have trouble installing or using REBOUND, please open an issue on github and we'll try to help as much as we can.

There are also short YouTube videos describing various aspects of REBOUND available at https://www.youtube.com/channel/UC2wonKI0wWwGi5-JqJtMsYQ/videos.

Additional Physics

To easily incorporate additional physics into your REBOUND simulations, see REBOUNDx at https://github.com/dtamayo/reboundx

Changelog

For a changelog of the most important changes in recent updates, see https://github.com/hannorein/rebound/blob/master/changelog.rst