Modeling Planetary Motion with Newton's Law of Universal Gravitation

Click For Summary
SUMMARY

This discussion focuses on modeling planetary motion using Newton's Law of Universal Gravitation, specifically in simulating the Earth-Sun and Earth-Moon systems. The initial approach utilized the formula v = √(Gm/r) to determine satellite velocities, but it was identified that this formula must be adjusted to account for the center of mass of the Earth-Moon system when orbiting the Sun. The solution involves calculating the velocities relative to the Sun and incorporating the center of mass velocities for accurate simulation results. The user successfully modified their formulas based on this guidance, leading to improved simulation performance.

PREREQUISITES
  • Newton's Law of Universal Gravitation
  • Understanding of orbital mechanics
  • Basic programming skills for simulation
  • Knowledge of center of mass calculations
NEXT STEPS
  • Research how to calculate the center of mass for multi-body systems
  • Learn about numerical integration techniques for simulating orbital dynamics
  • Explore the effects of gravitational perturbations in multi-body simulations
  • Investigate advanced orbital mechanics concepts such as Lagrange points
USEFUL FOR

Astronomy enthusiasts, physics students, software developers working on simulations, and anyone interested in understanding complex gravitational interactions in multi-body systems.

Caspian
Messages
15
Reaction score
0
I'm trying to make a program which makes use of Newton's law of universal gravitation to model planetary motion.

I've set up a system very similar to the earth-sun system (i.e., masses and distances are similar to the actual earth-sun system). When I run the simulation, the "earth" orbits the "sun" just as it should.

Likewise, I made a earth-moon system, and the moon orbits the Earth just as it should.

However, when I put the two systems together and make the Earth orbit the sun while the moon is orbiting the earth, the moon slingshots around the Earth and doesn't return.

To determine the initial velocity of the satellite (in both systems), I use the equation for acceleration from uniform circular motion:
a = \frac{v^2}{r}

Substituting this into Newton's law of universal gravitation (using "m a" for "F"), and solving for v yields:
v = \sqrt{\frac{G \cdot m}{r}}

I suspect that the moon needs a different initial velocity since its motion must be a spiral around the sun... but I can't figure it out.

I'd greatly appreciate any help anyone can give... or if someone can point me in the right direction.

Thanks!
 
Last edited:
Physics news on Phys.org
There are several problems here.

First, v=\sqrt{Gm/r} is the velocity of an object of inconsequential mass relative to center of the Earth. You need to make that a velocity relative to the Sun to get even close to the proper motion.

Second, the Moon does not have an inconsequential mass compared to that of the Earth. A better solution is to make the Earth-Moon system (i.e., the Earth-Moon center of mass) orbit the Sun, and then make the Earth and Moon orbit about each other their common center of mass. You will have to add the center of mass velocity to the velocities resulting from this computation to get the velocities of relative to the Sun.

For even better results, do the same thing with the Earth+Moon and Sun orbiting about their center of mass.
 
Thanks, D H! I've modified the formulas I'm using and my system works great now.

Thank you for your help!
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
4K