Project of Computational Physics at TU Darmstadt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.0 KiB

Comphys Project 2020 - Bennet and Nico

This is Bennet Weiss' and Nico Alt's project for Computational Physics created in 2020. More information can be found in Nico's blog post and in the report.


Development happens with Pycharm, so it's best to just clone the repository and import it there.

To run this program without 3D animations, you need to install the Python dependencies:

pip3 install -r requirements.txt

On Debian/elementary/Ubuntu/etc. you can use apt instead of pip:

sudo apt install python3-numpy python3-matplotlib python3-scipy

You can then start the program by calling ./

3D animations

To render the 3D animation of the earth-moon system, you need to install two more dependencies:

# With pip
pip3 install -r requirements-animations.txt

# On Debian/elementary/Ubuntu/etc.
sudo apt install python3-opengl python3-pygame

You can then start the animations by calling ./ You can navigate in space using your keyboard.

The source code of the animations is based on the project SolarSystem by elbanic. Kudos to them!

Keyboard navigation

You can always go back to the default view by pressing space. Other navigation options include:

  • arrow keys to turn left, right, up, down
  • a and s to zoom in and out
  • e and r to rotate into positive and negative direction of x
  • q and w to rotate into positive and negative direction of y


The documentation of the project's code can be found in the docs directory. To update it, call tools/ To generate a PDF of the docs, call tools/ Note that you need the Python package pdoc3 and the system packages pandoc and texlive-xetex to make the updates work.


Everything is licensed under AGPL-3.0. See for more information.