Modeling Planetary Motion with Newton's Law of Universal Gravitation

AI Thread Summary
The discussion focuses on modeling planetary motion using Newton's law of universal gravitation, specifically creating a simulation of the Earth-Moon system orbiting the Sun. Initially, the simulation worked for each system separately, but when combined, the Moon's trajectory became erratic. Key insights revealed that the velocity calculations needed adjustment to account for the center of mass of the Earth-Moon system relative to the Sun. By modifying the formulas to include the center of mass and adjusting initial velocities accordingly, the simulation achieved accurate results. The conversation highlights the importance of considering mass interactions in orbital mechanics for realistic simulations.
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!
 
Consider an extremely long and perfectly calibrated scale. A car with a mass of 1000 kg is placed on it, and the scale registers this weight accurately. Now, suppose the car begins to move, reaching very high speeds. Neglecting air resistance and rolling friction, if the car attains, for example, a velocity of 500 km/h, will the scale still indicate a weight corresponding to 1000 kg, or will the measured value decrease as a result of the motion? In a second scenario, imagine a person with a...
Scalar and vector potentials in Coulomb gauge Assume Coulomb gauge so that $$\nabla \cdot \mathbf{A}=0.\tag{1}$$ The scalar potential ##\phi## is described by Poisson's equation $$\nabla^2 \phi = -\frac{\rho}{\varepsilon_0}\tag{2}$$ which has the instantaneous general solution given by $$\phi(\mathbf{r},t)=\frac{1}{4\pi\varepsilon_0}\int \frac{\rho(\mathbf{r}',t)}{|\mathbf{r}-\mathbf{r}'|}d^3r'.\tag{3}$$ In Coulomb gauge the vector potential ##\mathbf{A}## is given by...
Thread 'Griffith, Electrodynamics, 4th Edition, Example 4.8. (First part)'
I am reading the Griffith, Electrodynamics book, 4th edition, Example 4.8 and stuck at some statements. It's little bit confused. > Example 4.8. Suppose the entire region below the plane ##z=0## in Fig. 4.28 is filled with uniform linear dielectric material of susceptibility ##\chi_e##. Calculate the force on a point charge ##q## situated a distance ##d## above the origin. Solution : The surface bound charge on the ##xy## plane is of opposite sign to ##q##, so the force will be...
Back
Top