Download presentation
Presentation is loading. Please wait.
1
Sungrazing Comets by Mohammad Khan
2
I used Runge-Kutta method to plot the trajectories of the comets
I used Runge-Kutta method to plot the trajectories of the comets. f1 = kepler_ode(t , y ); f2 = kepler_ode(t+dt/2, y+f1 .* (dt/2) ); f3 = kepler_ode(t+dt/2, y+f2 .* (dt/2) ); f4 = kepler_ode(t+dt , y+f3 .* dt ); Declare the following as global: mSun = 1e+7; mPlanet = 1e+4; G=1; mComet = 1; Define the vector y that contains 16 elements y=[rs(1); rs(2); vs(1); vs(2); rp(1);rp(2);vp(1);vp(2); rc(1);rc(2);vc(1);vc(2); rc2(1);rc2(2);vc2(1);vc2(2)];
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.