Some questions regarding proportions in a two-body problem

  • Thread starter Ostsol
  • Start date
In summary: I'm not sure if there is a more fundamental way to determine the starting conditions, but I was able to find what I needed by trial and error.A proportionality between the masses and velocities is necessary in order to keep the system stable. This equation can be derived from basic laws of celestial mechanics. However, I'm not sure where to find this information.
  • #1
Ostsol
12
0
I am programming an n-body simulation, but to test my program, I decided to start with two bodies. Specifically, I decided to model the Earth-Moon system. The issue I have is that Kepler's laws involve only the motion of one of the two bodies. From my understanding, the other is assumed to be static or of such mass that its motion is insignificant. That leaves me working with Newtonian gravitation and motion.

My problem is the starting conditions. Wikipedia tells me the mass of the Earth and Moon, and the orbital radius and velocity of the Moon. Simply inputting these parameters does not create a stable simulation, though. The entire system slowly moves. I was obvious that I was not accounting for the Earth's motion in my starting conditions. It was not obvious as to how I should determine the Earth's velocity.

Because my maths are effectively pre-calculus (I took single-variable calculus over a decade ago and have forgotten most of it), it is difficult to understand the maths behind celestial mechanics. Eventually, though, after playing with some numbers I found that the velocity of the Earth should be of a proportion to the Moon's that is inverse to the proportion of their masses. Basically:

[itex]v_e{}[/itex]/[itex]v_m{}[/itex]=[itex]m_m{}[/itex]/[itex]m_e{}[/itex]

Where v and m are velocity and mass, respectively; and the subscripts m and e are the Moon and the Earth, respectively. The Earth's velocity obviously points in the opposite direction as the Moon's. This creates a stables simulation regardless of the values input and the distances involved. As long as these proportions remain the same, the bodies trace the same orbital paths each time.

Now I'm sure that this proportion may be derived from the relevant formulae by those who have sufficient competence in the maths involved, but that's not me. I was unable to find this information on Wikipedia or in various Google searches, though perhaps that's not surprising. My questions therefore are: is this proportion documented somewhere and are there any others that I should be aware of?

Thank you.

-Daniel
 
Physics news on Phys.org
  • #2
The math for doing an n-body simulation is pretty simple. All you need are Newton's laws. It's the algorithm that you have to be careful with. I did my first program using the information at this site:

http://www.cs.princeton.edu/courses/archive/spring11/cos126/assignments/nbody.html

Although it's for Java, you can still use the info to write the program in any language you like. Also, the instructions at the link site are for x and y coordinates only. But it's pretty easy to add the Z coordinates once you understand how it works.
 
  • #3
Yes, the simulation was relatively easy to create. I even incorporated RK4 integration based on some information I found elsewhere in these forums. The problem is figuring out the starting parameters for bodies of arbitrary mass and orbital radii.
 
  • #4
I seed my simulation with the ephemerides generated at the Horizons web site. I then calculate the center of mass for the bodies I am simulating and set that coordinate at 0,0,0 adjusting the coordinates and velocities of the other bodies accordingly.
 
  • #5


I appreciate your efforts to understand and accurately model the Earth-Moon system in your simulation. The issue you have encountered is a common one in celestial mechanics and can often be challenging to solve without a strong understanding of the relevant mathematical principles.

Firstly, I would like to clarify that Kepler's laws do apply to the motion of both bodies in a two-body problem. However, as you correctly pointed out, the laws only describe the motion of one body in relation to the other and assume that the other body is either static or has negligible mass. In reality, both bodies are in motion and their motions affect each other.

In terms of determining the Earth's velocity in your simulation, you have correctly identified that it should be proportional to the Moon's velocity and inversely proportional to their masses. This is known as the "principle of equal areas" and is a fundamental concept in celestial mechanics. The idea is that in any given time interval, the line connecting the two bodies will sweep out equal areas, regardless of their masses. This principle is derived from Newton's laws of motion and can be mathematically proven, but it is beyond the scope of pre-calculus mathematics.

I would also like to point out that the Earth's velocity will not be exactly opposite to the Moon's velocity, as there are other factors at play such as the Earth's rotation and the gravitational influence of other celestial bodies. However, for the purposes of your simulation, your approach seems to be working well and providing stable results.

In terms of other proportions and equations that may be helpful in your simulation, I would suggest looking into the equations of motion for a two-body problem, which involve the gravitational constant, the masses of the two bodies, and their initial positions and velocities. Additionally, you may want to consider incorporating the effects of other celestial bodies, such as the Sun, in your simulation to make it more accurate.

Overall, I commend your efforts to understand and accurately model the Earth-Moon system in your simulation. While your approach may not be mathematically rigorous, it is producing stable results and can serve as a useful tool for further exploration and understanding of celestial mechanics. I encourage you to continue your research and learning in this field, as it is a fascinating and important area of study. Best of luck with your simulation!
 

Related to Some questions regarding proportions in a two-body problem

1. What is a two-body problem in physics?

A two-body problem in physics refers to a situation where two massive objects are interacting with each other through gravitational forces. It is a classic problem in physics that helps us understand the motion of objects in the universe.

2. What are the two main laws that govern a two-body problem?

The two main laws that govern a two-body problem are Newton's Law of Universal Gravitation and Newton's Second Law of Motion. These laws describe the relationship between the masses of the two objects, the distance between them, and the forces acting on them.

3. How does the proportion of masses affect the motion in a two-body problem?

The proportion of masses in a two-body problem affects the motion by determining the strength of the gravitational force between the two objects. The larger the mass of an object, the stronger its gravitational force, and the faster it will move towards the other object.

4. Can the proportion of masses in a two-body problem change over time?

Yes, the proportion of masses in a two-body problem can change over time. This is often seen in binary star systems, where the stars orbit each other and their masses can change due to mass transfer or other factors.

5. How does the distance between the two objects affect the proportion in a two-body problem?

The distance between the two objects does not directly affect the proportion in a two-body problem. However, it does affect the strength of the gravitational force between the two objects, which in turn affects their motion and the proportion of their masses. As the distance between the objects increases, the gravitational force decreases, and the proportion of their masses may change accordingly.

Similar threads

Replies
4
Views
781
  • Classical Physics
Replies
2
Views
1K
Replies
10
Views
1K
  • Classical Physics
Replies
7
Views
910
Replies
86
Views
4K
  • Introductory Physics Homework Help
Replies
18
Views
1K
  • Classical Physics
Replies
15
Views
2K
  • Special and General Relativity
Replies
10
Views
2K
  • Astronomy and Astrophysics
Replies
2
Views
1K
  • Classical Physics
3
Replies
84
Views
4K
Back
Top