Planet path using netwon's law with forward method

조회 수: 2 (최근 30일)
BabyMilo
BabyMilo 2012년 2월 18일
편집: Michael 2013년 10월 16일
Given the initial position (ie x1,y1) and the velocity (ie vx,vy) of the planet.
How to plot a graph of the path of the planet around the center point (0,0) assuming the center is Earth, using time step of 10s for 500000s?
formula for forward method:
x(t+dt)=x(t)+v(t)*dt
v(t+dt)=v(t)+a(t)*dt
a=GM/r^2
G = 6.67e-11, M = 5.97e24
Many thanks.
  댓글 수: 3
Walter Roberson
Walter Roberson 2012년 2월 18일
Where is "r" defined?
If I recall correctly, this kind of forward prediction is unable to handle the orbit of Mercury, which has notable influence from drag of the rotational gravitational frame.
James Tursa
James Tursa 2012년 2월 19일
@Walter: Well, OP has Euler's method listed which isn't going to do all that great with *any* orbit.

댓글을 달려면 로그인하십시오.

답변 (1개)

Gregory Vernon
Gregory Vernon 2012년 2월 19일
You should look into velocity verlet methods.

카테고리

Help CenterFile Exchange에서 Earth and Planetary Science에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by