Well, as you can clearly guess the idea behind this simulation come after the reading the first book of "The Three-Body Problem" Series which i completed a while back and started working on this after completing "The Dark Forest".
Anyway,
You can check definition on Wikipedia. Three bodies orbit each other, the resulting dynamical system is chaotic for most initial conditions. Because there are no solvable equations for most three-body systems, the only way to predict the motions of the bodies is to estimate them using numerical methods.
But heres simple explaination - Imagine three kids on a trampoline. When one jumps, it bounces the others in different directions, and they all react to each other's movements. It can get pretty chaotic, and it’s tough to predict where they’ll land next. That’s similar to the three-body problem, where each body’s movement affects the others, making it complicated to figure out their paths!
I also created 2-body problem where I used Langragian Equation
1.Conservation of Momentum
2.Lagrange’s Mechanics
3.Kinematics
-
Ensure you have Python installed with the
vpython
library. You can install it using pip:pip install vpython
-
Clone this repo
-
Run python code
Same measurements in Universe Sandbox
Star 1 (which camera follows) has mass and radius close to Sun.
Star 2 (same size as Star 1) has mass and radius close to Alpha Centauri B.
Star 3 (smaller than both) has mass and radius close to Procyon B.
Speed = 4.81 day/sec
...Great Youtube Channel to Learn Physics
Here one i found great simulation of three body problem having special case Javalab
I just watch the new Netflix Series adapted on this same book series which is Horrible ! Ok ok , i say its okay. If you do wanna watch the series go for the Chinese one which is very great.
I am still shocked how Netflix series completed into 1 hour each 8 episode (yes yes its also comprises Book 2 and 3) While Chinese one which i also watch has 30 episode of just Book 1 , 1 hour each.
Me and my friend just argued about this as he loved Netflix one, while i argued giving the analogy like 'You are watching One Piece but while starting for main character Luffy and how he started his own adventure and start joining by other great characters. Here in Netflix one , all the characters had already joined and then the adventure has just started.