Hands-on Numerical Astrophysics School for Exoplanetary Sciences, SPP1992 Summer School, Hanau, Germany, July 4-8, 2022

Monday 14:00-17:00 N-body modelling
by Anna Penzlin and Christoph Schäfer

(animated gifs by Cristopher Moore)

In the first session of the summer school, we will focus on the (gravitational) N-body problem: The numerical solution of the equations of motion for N gravitationally interacting particles/bodies.

The astrophysical domains that require N-body simulations are celestial mechanics (planetary systems), star clusters, galaxy dynamics and cosmology.

In our programming session, we will use the REBOUND code by Hanno Rein and focus on collisional N-body simulations, that is planetary systems.

There are two different versions of the code available: C and python. All problems in the exercises can be addressed with the python version.


Please see the instructions on how to install rebound and reboundx on Linux, macOS and with a bit of luck on windows. Alternatively, you may also download the docker image.

The slides from the lecture can be found here, but will probably undergo some modifications.

The exercise sheet from the hands-on session.

Please contact me if you face any problems in these steps.

last update: 2022-07-05