I built Gravitas, an orbital mechanics simulator. it includes two simulations, n-body gravity and hohmann transfer.
⠀
N-BODY SIM.:
the n-body problem is: given N objects that all gravitationally attract each other at the same time, how do they move?
there is no closed form solution for N>=3 bodies, so you have to simulate it step by step. This simulation aims to do this.
⠀
There are two presets, a solar system and a binary stars preset, and using the simulation you can add bodies to these presets and watch them intereact with each other (merge, collide, eject out of threshold)
⠀
HOHMANN TRANSFER CALC. and VISUALISATION:
this is the 2nd sim, a hohmann trasfer is the most efficient way to move a spacecraft b/w two orbits. i tried to simulate this for two modes: planet to planet transfer and satellite transfer. you can read more about this in the devlogs.
NOTES: this took a lot of time and effort, please vote fairly!!
What did i learn?
- i learnt rk4 order integration , newton-raphson method, vis-viva equation, in short a lot of physics and EVEN MORE MATH. but i truly did enjoy making it and all’s well that ends well, right?
IMP NOTE!!: if you toggle on track COM for the n-body sim. you will not be able to pan cuz you are tracking the centre of mass.
NOTES: this took a lot of time and effort, please vote fairly!!