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

Click For 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.
 
I do not have a good working knowledge of physics yet. I tried to piece this together but after researching this, I couldn’t figure out the correct laws of physics to combine to develop a formula to answer this question. Ex. 1 - A moving object impacts a static object at a constant velocity. Ex. 2 - A moving object impacts a static object at the same velocity but is accelerating at the moment of impact. Assuming the mass of the objects is the same and the velocity at the moment of impact...

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
8
Views
3K