Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

However, if you wish to look at the code provide, please download it from this l

ID: 3279426 • Letter: H

Question

However, if you wish to look at the code provide, please download it from this link. https://www.dropbox.com/s/jc2k0u96khz7llz/25V%20EarthMoon.py?dl=0
Thank you in advance.
Theory If you remember, the Force of Gravity is GMm We'l use this relation throughout the lab. While the true movement of the stars is slightly elliptical, we'll start out by assuming all motion is purely circular. You will need to make sure you have the right input distances and velocities for your planets if you want them to maintain a circular orbit In LMS you will find the sample code that should already run. Any line that begins with a # (hashtag) is a comment. Those lines of code will tell you what the below lines of code ac- tually do. The code itself should be somewhat readable in combination with the comments This code starts out with the Moon orbiting the Earth, with all values except for the radius of each sphere being roughly scientifically correct. It will occasionally print out the total momentum (Psys) of the system and the total angular momentum (Lsys) of the system Note that both are currently non-zero Step 1: Ensure Newton's 3rd Law Is In Effect Currently, there is only one force on any object, and that's Earth's pull of the Moon. But we know that the Moon pulls the Earth just as well. So w' have to code in that. In the same while loop, add in code that will make the Earth experience the same force but in arn opposite direction that the Moon does and add in the kinematics the Earth feels You'll notice that the code prints out the Angular Momentum L and the Linear Momentum p of the system. Once you program in both forces, you'l notice that the Moon/Eartlh system will move in a line over time. Determine what velocity you must give the Earth to ensure the total momentum of the system is zero (or at least many orders of magnitude smaller than what you had). Once you do this, does your system move over time?

Explanation / Answer

For the two body case
Force of gravitation on Earth = GMm(-r')/r^2
here m is mass of moon, M is mass of earth, r is distance of earth from moon, r' is unit vector along the line joining moon and earth towards the moon
similiarly
Force of gravitation on Moon = GMm(r')/r^2 [ towards earth]

now consider that the center of mass of moon earth system is at a distance d form the moon, r - d from earth
then angular momentum about this point has to be 0, and the system is rotating about this point

so let velocity of moon be v and that of earth be V
mv^2/(d) = GMm/r^2 [ from newtons law, equating centripital force with gravitation]
v^2 = GM*d/r^2

similiarly
V^2 = Gm*(r - d)/r^2

also from definition of center of mass
M*(r - d) = md
Mr = md + Md
d = Mr/(m + M)

so v^2 = GM^2/r(m + M)
V^2 = Gm(r - Mr/(m + M))/r^2 = Gm^2/r*(m + M)


similiarly for three body case

we assume that the three bodies are in line, with central body being the most massive
we find center of mass of the system, assume that everything rotates around it, Add up gravitational attraction on every body due to the other two, equate it with centripital forcde on the body about the center of mass and find its velocity

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote