I Restricted three body problem (numerical simulation of gravitational attraction)

AI Thread Summary
The discussion revolves around implementing a numerical simulation of the restricted three-body problem, where two massive bodies influence a third negligible mass. The user successfully simulates the expected orbital behavior but struggles to maintain the third body's motion for a longer duration without it being ejected to infinity. Suggestions include experimenting with various initial conditions and parameters, as there is no universal method for achieving desired outcomes. Additionally, the importance of using high precision in calculations to minimize rounding errors is highlighted. The user seeks further assistance in creating a simulation that effectively demonstrates the system's randomness for a presentation.
Silviu
Messages
612
Reaction score
11
Hello! I am implementing the three body restricted problem numerically (2 of them are massive and the 3rd one is not affecting them, so it is just moving in the potential created by them). I implemented it and if I put the 3rd one close to one of the big ones it moves in circles around it, while the big one moves around the center of mass of the 2 big ones, as expected. However I want to show the randomness of the system, but for all the initial conditions of the 3rd one (position, momentum and mass), it gets thrown out to infinity too fast (the ones I saw on the internet evolve for quite a while). I understand that this is random, but how can I choose the initial conditions so that it lasts longer (I actually need it for a presentation and I want to show it for half a minute or so). Thank you!
 
Physics news on Phys.org
I'm afraid there is no general method to find the initial conditions. You need to play with the parameters. How about this?
 
I think these types of simulations can be very sensitive to rounding/truncation errors in the math. You might try using the highest precision available, if you're not doing that already.
 
Hello. Can you help me with creating such a simulation? I'm trying to create one myself.
 
So I know that electrons are fundamental, there's no 'material' that makes them up, it's like talking about a colour itself rather than a car or a flower. Now protons and neutrons and quarks and whatever other stuff is there fundamentally, I want someone to kind of teach me these, I have a lot of questions that books might not give the answer in the way I understand. Thanks

Similar threads

Back
Top