Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.29 KB

File metadata and controls

24 lines (18 loc) · 1.29 KB

Simulation of the Solar System


This is a student project in numerical analysis. The aim is to simulate the Solar System. We simulate the 5 main bodies (Sun, Jupiter, Saturn and Uranus) of the solar system and Pluto. So this is a 6-body problem. The only forces taken into account are gravitational interactions.

Through this project we manage to have a first experience with Python and write the implementation of numerical schemas. We used two schemas :

  • Forward Euler method
  • Stormer-Verlet method.

Image of solar system The above screenshot is generate using python3 src/solar-system.py stormer-verlet 1 45000.

This project is implemented in Python, using mainly numpy and matplotlib. The subject of this project is available, as well as the report (written in French).

The report is also available at Overleaf.

Quick execution (assuming all necessary module installed):
python3 src/solar-system.py stormer-verlet 100 200000
python3 src/solar-system.py anim 1 100000 200