Gravitation between the Moon and the Earth: physics project

Click For Summary
The discussion focuses on a physics project analyzing the gravitational interaction between the Moon and Earth, emphasizing the need to calculate the Moon's acceleration and motion using Newton's laws and gravitational equations. The participant plans to use Excel for integration and graphing but struggles with the changing radius between the two bodies and the implications of fixing one body in place. Concerns arise regarding the assumption that only the Moon is moving, as this could violate conservation of momentum. Suggestions include using angular momentum and considering the Earth as a fixed point to simplify calculations. The final approach involves using Riemann sums for integration and ensuring accurate initial conditions for the Moon's velocity and position.
  • #31
1018 m/s is what I get too.
On earth, g = 9.81 m/s2 So out there it should be a lot less.
Can't read you formula, but it looks as if it calculates a force ?
Keep track of R too. If you see it change very rapidly, it's a bug.
Keep track of theta too. It should evolve approximately linearly

yes you should integrate ax to get vx and ay to get vy. So you need to keep track of those.
And integrate vx to get x and vy to get y according to the
BvU said:
and at t = 600:
the new x is the x just above + vx * dt
the new y is the y just above + vy * dt
the new vx is the vx just above + ax * dt
the new vy is the vy just above + ay * dt
and the other ones you calculate
 
  • Like
Likes isukatphysics69
Physics news on Phys.org
  • #32
BvU said:
1018 m/s is what I get too.
On earth, g = 9.81 m/s2 So out there it should be a lot less.
Can't read you formula, but it looks as if it calculates a force ?
Keep track of R too. If you see it change very rapidly, it's a bug.
Keep track of theta too. It should evolve approximately linearly

yes you should integrate ax to get vx and ay to get vy. So you need to keep track of those.
And integrate vx to get x and vy to get y according to the
hey we just made some serious progress 1 sec
 
  • #33
BvU said:
1018 m/s is what I get too.
On earth, g = 9.81 m/s2 So out there it should be a lot less.
Can't read you formula, but it looks as if it calculates a force ?
Keep track of R too. If you see it change very rapidly, it's a bug.
Keep track of theta too. It should evolve approximately linearly

yes you should integrate ax to get vx and ay to get vy. So you need to keep track of those.
And integrate vx to get x and vy to get y according to the
progressonphysics.PNG
 

Attachments

  • progressonphysics.PNG
    progressonphysics.PNG
    53.1 KB · Views: 368
  • #34
BvU said:
1018 m/s is what I get too.
On earth, g = 9.81 m/s2 So out there it should be a lot less.
Can't read you formula, but it looks as if it calculates a force ?
Keep track of R too. If you see it change very rapidly, it's a bug.
Keep track of theta too. It should evolve approximately linearly

yes you should integrate ax to get vx and ay to get vy. So you need to keep track of those.
And integrate vx to get x and vy to get y according to the
Now one thing we notice tho is that our x and y positions are increasing and not oscillating
any idea why?
 
Last edited:
  • #35
Is the force attracting the moon or pushing it away ?
 
  • Like
Likes isukatphysics69
  • #36
BvU said:
Is the force attracting the moon or pushing it away ?
The gravitational force is attracting the moon.. our position values are getting larger tho. we used eular integration, i was expecting the values to oscillate,
velocities here look really good tho imo. i still haven't quite made out what the position values are saying.
position.PNG
 

Attachments

  • position.PNG
    position.PNG
    51.2 KB · Views: 296
  • #37
isukatphysics69 said:
The gravitational force is attracting the moon..
So what about the sign of a ? If the moon leaves (R,0) with speed (0,vy) should ax and ay be > 0 ?

I'm surprised you introduce px and py if you already have a column x and y ?

(have to run: work!)
 
  • Like
Likes isukatphysics69
  • #38
BvU said:
So what about the sign of a ? If the moon leaves (R,0) with speed (0,vy) should ax and ay be > 0 ?

I'm surprised you introduce px and py if you already have a column x and y ?

(have to run: work!)
ahh i see ok, have to fix that tommorow.
 
  • #39
We screwed up our data, trying to fix. We changed the net force to a negative, not sure if everything updated

we have motion as px^2+py^2

i will close my eyes for a few minutes and then start from scratch i think starting from scratch will be a good idea but so tired

wait so the R is the sqrt(x^2 + y^2) since i have Earth centered at 0,0. so i needed the positions to calculate the acceleration with respect to time, but to get the positions i need the velocities, but in order to get the velocities i have to integrate the acceleration. this doesn't make sense. its like what came first, the egg or the chicked, well what do i need first, the position, but to get the position i need the velocity, but to get the velocity i have to integrate the acceleration. now i am confused after i thought i had it

oh wait i think it is because the velocity doesn't change it is always 1018 m/s lol.. i see nvm . i will close eyes for a few mins now then start from scratch.

when i went to graph my results the graph was not looking good. just two straight lines for the position. not sure how my professor got the circle. i used x^2+y^2 but the value was huge and didn't make sense.

dataphysics1.PNG
 

Attachments

  • dataphysics1.PNG
    dataphysics1.PNG
    64.2 KB · Views: 348
Last edited:
  • #40
isukatphysics69 said:
i will close eyes for a few mins now then start from scratch.
Looks like you need some R&R ! (same as me, actually: 1:14 AM here and an early dentist appointment :oldmad: )
How did the exam go today ?

Never mind: the integration.
upload_2018-5-8_1-6-0.png


(added rows and columns so I can refer to them)

On line 1 there are the initial conditions 384000, 0, 0, 1018 for x, y, vx, vy.
From that you calculate (with formulas) r, theta, and a, ax, ay. (still on line 1).
On line 2 we are going to do our first integration step: from 0 to dt (I tried dt = 4000 sec here).
BvU said:
the new x is the x just above + vx * dt
the new y is the y just above + vy * dt
the new vx is the vx just above + ax * dt
the new vy is the vy just above + ay * dt
and the other ones you calculate
Or, in excel formulas:

upload_2018-5-8_1-12-13.png


Does that make sense to you ? If yes, then you can copy line 2 many times over
to see things go terribly wrong. We'll discuss that once you get the intgration going in a credible manner...
 

Attachments

  • upload_2018-5-8_1-6-0.png
    upload_2018-5-8_1-6-0.png
    6.9 KB · Views: 776
  • upload_2018-5-8_1-12-13.png
    upload_2018-5-8_1-12-13.png
    3.1 KB · Views: 772
  • Like
Likes isukatphysics69
  • #41
BvU said:
Looks like you need some R&R ! (same as me, actually: 1:14 AM here and an early dentist appointment :oldmad: )
How did the exam go today ?

Never mind: the integration.
View attachment 225349

(added rows and columns so I can refer to them)

On line 1 there are the initial conditions 384000, 0, 0, 1018 for x, y, vx, vy.
From that you calculate (with formulas) r, theta, and a, ax, ay. (still on line 1).
On line 2 we are going to do our first integration step: from 0 to dt (I tried dt = 4000 sec here).
Or, in excel formulas:

View attachment 225350

Does that make sense to you ? If yes, then you can copy line 2 many times over
to see things go terribly wrong. We'll discuss that once you get the intgration going in a credible manner...
Hi, the exam is tommorow and this is also due tommorow lol, ok i will be right back going to try to figure this out
 
  • #42
Ok our dt is different but this is my redo of the data
here dt is 18000 seconds
i think this is looking pretty good here. i will check your post now 1 sec
my prof told me not to use trig functions so that is why i am using x/r and y/r

i can go back and change everything to 4000 seconds

PHYSPROJECT.PNG
 

Attachments

  • PHYSPROJECT.PNG
    PHYSPROJECT.PNG
    79.9 KB · Views: 289
  • #43
phySICS.PNG
 

Attachments

  • phySICS.PNG
    phySICS.PNG
    21.1 KB · Views: 244
  • #44
BVUPHYSICS.png
 

Attachments

  • BVUPHYSICS.png
    BVUPHYSICS.png
    6.9 KB · Views: 229
  • #45
Our acceleration components are looking a little different. i am refraining from trig functions because my prof advised against it.. i am trying to see if that is the only reason why
velocities differ slightly as well because of the acceleration difference, I'm pretty happy with what i am seeing right now
 
  • #46
BvU said:
Looks like you need some R&R ! (same as me, actually: 1:14 AM here and an early dentist appointment :oldmad: )
How did the exam go today ?

Never mind: the integration.
View attachment 225349

(added rows and columns so I can refer to them)

On line 1 there are the initial conditions 384000, 0, 0, 1018 for x, y, vx, vy.
From that you calculate (with formulas) r, theta, and a, ax, ay. (still on line 1).
On line 2 we are going to do our first integration step: from 0 to dt (I tried dt = 4000 sec here).
Or, in excel formulas:

View attachment 225350

Does that make sense to you ? If yes, then you can copy line 2 many times over
to see things go terribly wrong
. We'll discuss that once you get the intgration going in a credible manner...
Wait what do you mean?
 
  • #47
Time step seems a bit big. Try 1000 --- however, I may have a bug in my stuff. ...

If the integration works and you make a scatter plot of y vs x, you should get something like a neat circle, at least initially.

isukatphysics69 said:
prof advised against it
Prof is probably right (I can't get past x=0 without weird behaviour... (bug?)


I don't understand how you can go from x on first line to a bigger value if vx=0 ? And then on the next line to an even biger value when on line 2 vx < 0 ?
 

Attachments

  • upload_2018-5-8_1-40-11.png
    upload_2018-5-8_1-40-11.png
    2.4 KB · Views: 440
  • Like
Likes isukatphysics69
  • #48
BvU said:
Time step seems a bit big. Try 1000 --- however, I may have a bug in my stuff. ...

If the integration works and you make a scatter plot of y vs x, you should get something like a neat circle, at least initially.

Prof is probably right (I can't get past x=0 without weird behaviour... (bug?)


I don't understand how you can go from x on first line to a bigger value if vx=0 ? And then on the next line to an even biger value when on line 2 vx < 0 ?
ohh yea i see that now.. this is where my initial confusion came in. i needed those position values to get the acceleration formulas R^2 values with respect to time.
BvU said:
Time step seems a bit big. Try 1000 --- however, I may have a bug in my stuff. ...

If the integration works and you make a scatter plot of y vs x, you should get something like a neat circle, at least initially.

Prof is probably right (I can't get past x=0 without weird behaviour... (bug?)


I don't understand how you can go from x on first line to a bigger value if vx=0 ? And then on the next line to an even biger value when on line 2 vx < 0 ?
I think i see the issue
 
  • #49
So i had thought that i needed the positions with respect to time for the net force since the net force was (GMm)/(R2) and R= sqrt(px^2+py^2) since the Earth was fixed.
Edited
i will try to fix
think i see how to fix it

formula.PNG
 

Attachments

  • formula.PNG
    formula.PNG
    32.1 KB · Views: 241
  • #50
omg i am AN IDIOT
 
  • #51
Omg i think its finally working i am so dumb i was changing the acceleration value now i am keeping "a" constant and only changing the ax and ay based on position currently dragging down 1 cell at a time since they all depend on each other
 
  • #52
ok think i got it
now i have no idea how to graph this data, that's the next challenge

projdata.PNG
 

Attachments

  • projdata.PNG
    projdata.PNG
    69.9 KB · Views: 571
  • #53
moon.PNG


moon has escaped orbit
 

Attachments

  • moon.PNG
    moon.PNG
    32.1 KB · Views: 536
  • #54
moon1.PNG
 

Attachments

  • moon1.PNG
    moon1.PNG
    40.3 KB · Views: 503
  • #55
this is looking good to me, bvu thank you for all the help! i finally got it somewhat working
(the name "position y" is misleading) this is the x and y coordinates plotted
 
  • #56
beautiful :')

moonorbit.PNG
 

Attachments

  • moonorbit.PNG
    moonorbit.PNG
    48.2 KB · Views: 518
  • Like
Likes BvU
  • #57
In fact it shouldn't come out as a circle with the set of equations and initials we had. Has to do with reduced mass.

A physics complication. There's also a math complication: an issue with simple forward Euler for this kind of problem. But you learned a great deal which is far more important than getting the 'right' result.

Good luck with the test. I hope you did get some kip :rolleyes:
 
  • Like
Likes isukatphysics69
  • #58
BvU said:
In fact it shouldn't come out as a circle with the set of equations and initials we had. Has to do with reduced mass.

A physics complication. There's also a math complication: an issue with simple forward Euler for this kind of problem. But you learned a great deal which is far more important than getting the 'right' result.

Good luck with the test. I hope you did get some kip :rolleyes:
Thank you, i will sleep after this report and study tommorow before the test, already went over the whole practice exam once
 
  • #59
isukatphysics69 said:
now i am keeping "a" constant and only changing the ax and ay based on position
Sorry for the bummer, but that isn't the idea of the exercise.
currently dragging down 1 cell at a time since they all depend on each other
in principle row n only depends on row n-1. That's forward Euler for you, the often self-quoted recipe$$x_n = x_{n-1} + v_{x, n-1} * dt \\y_n = y_{n-1} + v_{y, n-1} * dt \\v_{x, n} = v_{x, n} + a_{x, n-1} * dt \\v_{y, n} = v_{y, n-1} + a_{y, n-1} * dt$$

gotta face the drill now
 
  • #60
BvU said:
Sorry for the bummer, but that isn't the idea of the exercise.
in principle row n only depends on row n-1. That's forward Euler for you, the often self-quoted recipe$$x_n = x_{n-1} + v_{x, n-1} * dt \\y_n = y_{n-1} + v_{y, n-1} * dt \\v_{x, n} = v_{x, n} + a_{x, n-1} * dt \\v_{y, n} = v_{y, n-1} + a_{y, n-1} * dt$$

gotta face the drill now
aw crap what
its not possible at this point, its 4 am and due tommorow
 

Similar threads

Replies
18
Views
2K
Replies
5
Views
2K
Replies
21
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 8 ·
Replies
8
Views
11K
  • · Replies 1 ·
Replies
1
Views
1K