preloader

N-Body Orbit Simulator

bg-shape
N-Body Orbit Simulator

Date

Dec 17, 2024

Categories

Programming, physics

The Project

During the end of my first semester as a grad student, I had to come up with a project to demonstrate my ability to create programs with numerical models for my Earth Systems Modelling course. I thought of the classic Three-Body Problem, but wanted to challenge myself, and decided to do it for an arbitrary number of masses.

I made a few simulations with 3blue1brown’s renderer Manim.

This is a simulation of the solar system. The simulation was done with data from NASA’s planetary fact sheet.

For fun, I took the figure 8 orbit seen in the title, and made a simulation with four of them orbiting a central one.

You can check out the details of how to use this simulator in my GitHub Repo.


Updates I want to Make

Although the simulation is very quick already using Python, I would like to update it for the brunt of the computation to be done with C++. I want to essentially use Python as a wrapper to make viualization easy to work with rather than doing the actual calculations as it is not as fast as I want it to be.