Is there a mistake in the satellite's trajectory calculation?

In summary: That caused the satellite not to move.Oh that problem. Negative sign when should have been a plus. That caused the satellite not to move.
  • #1
Dustinsfl
2,281
5
The L4 position is stable in the Earth Moon and I perturbing a satellite by km in the x direction to see the trajectory over the course of the year. However, the satellite isn't moving. Can anyone see if there is something wrong? I gave the satellite no initial velocity.
Code:
In[2587]:= ClearAll["Global`*"]
me = 5.974*10^(24);
mm = 7.348*10^(22);
G = 6.67259*10^(-20);
re = 6378;
rm = 1737;
r12 = 384400;

In[2594]:= \[Mu] = G*(me + mm);
\[Pi]1 = me/(me + mm);
\[Pi]2 = mm/(me + mm);
M = me + mm;
\[CapitalOmega] = Sqrt[\[Mu]/r12^3];
\[Mu]1 = G*me;
\[Mu]2 = G*mm;

In[2601]:= xl4 = 384400/2 - 4671
yl4 = Sqrt[3]/2*384400 // N

Out[2601]= 187529

Out[2602]= 332900.

In[2612]:= r0 = {xl4+1, yl4, 0}
v0 = {0, 0, 0};

Out[2612]= {187529, 332900., 0}

{187529, 332900.16521473817`, 0}

In[2614]:= 
s = NDSolve[{x1''[t] - 
      2*\[CapitalOmega]*x2'[t] - \[CapitalOmega]^2*
       x1[t] == -\[Mu]1/(Sqrt[(x1[t] + \[Pi]2*r12)^2 + 
            x2[t]^2])^3*(x1[t] + \[Pi]2*
          r12) - \[Mu]2/(Sqrt[(x1[t] - \[Pi]1*r12)^2 + 
            x2[t]^2])^3*(x1[t] - \[Pi]1*r12), 
    x2''[t] - 
      2*\[CapitalOmega]*x1'[t] - \[CapitalOmega]^2*
       x2[t] == -\[Mu]1/(Sqrt[(x1[t] + \[Pi]2*r12)^2 + x2[t]^2])^3*
       x2[t] - \[Mu]2/(Sqrt[(x1[t] - \[Pi]1*r12)^2 + x2[t]^2])^3*
       x2[t], 
    x3''[t] == -\[Mu]1/(Sqrt[(x1[t] + \[Pi]2*r12)^2 + x2[t]^2])^3*
       x3[t] - \[Mu]2/(Sqrt[(x1[t] - \[Pi]1*r12)^2 + x2[t]^2])^3*
       x3[t], x1[0] == r0[[1]], x1'[0] == v0[[1]], x2[0] == r0[[2]], 
    x2'[0] == v0[[2]], x3[0] == r0[[3]], x3'[0] == v0[[3]]}, {x1, x2, 
    x3}, {t, 0, 24*3600*365}];

In[2617]:= ParametricPlot3D[
 Evaluate[{x1[t], x2[t], x3[t]} /. s], {t, 0, 200000}, 
 PlotStyle -> {Red, Thick}]
 
Last edited:
Physics news on Phys.org
  • #2
I believe the gravity of the moon isn't playing a role in the simulation. Does anyone see a fix for this?
 
  • #4
Just curious: what was the problem?
 
  • #5
Ackbach said:
Just curious: what was the problem?

Plot the movement of a satellite at a 1km offset from L4 over the period of 1year. I will put some of these problems in the notes I type about Orbital and link to
 
  • #6
dwsmith said:
Plot the movement of a satellite at a 1km offset from L4 over the period of 1year. I will put some of these problems in the notes I type about Orbital and link to

So you just hadn't plotted the motion for a long enough time?
 
  • #7
Ackbach said:
So you just hadn't plotted the motion for a long enough time?

Oh that problem. Negative sign when should have been a plus.
 

Related to Is there a mistake in the satellite's trajectory calculation?

1. What is Moon Earth L4 perturbation?

Moon Earth L4 perturbation is a phenomenon in which the gravitational pull of the Moon causes small variations in the Earth's orbit around the Sun.

2. How does Moon Earth L4 perturbation affect Earth?

Moon Earth L4 perturbation can cause slight changes in the distance between the Earth and the Sun, which can impact the Earth's climate and weather patterns. It can also affect the Earth's rotation and tilt, which can have consequences for the length of a day and the seasons.

3. How long has Moon Earth L4 perturbation been occurring?

Moon Earth L4 perturbation has been occurring since the formation of the Moon, approximately 4.5 billion years ago. However, its effects have become more noticeable in the past few million years.

4. Can Moon Earth L4 perturbation have any major impacts on Earth?

While Moon Earth L4 perturbation can cause small changes in the Earth's orbit and rotation, it is not significant enough to cause any major impacts on Earth. The Earth's tilt and rotation are stabilized by other factors such as the Sun's gravity and the Earth's own rotation.

5. Are there any potential benefits of Moon Earth L4 perturbation?

Some scientists believe that Moon Earth L4 perturbation may have played a role in stabilizing Earth's climate over long periods of time. It may also have had an impact on the evolution of life on Earth, as slight changes in the Earth's orbit can affect the amount of sunlight and heat that reaches the planet.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
5K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
19
Views
163
  • Engineering and Comp Sci Homework Help
Replies
6
Views
3K
Back
Top