Runge-Kutta method - Orbital mechanics

Click For Summary
SUMMARY

The discussion focuses on implementing the Runge-Kutta method for simulating the orbital mechanics of a satellite using MATLAB. The initial orbital elements provided include semi-major axis (a=6652.555663 km), eccentricity (e=0.075), inclination (i=28.5 degrees), right ascension of ascending node (Ω=40 degrees), argument of periapsis (w=30 degrees), and mean anomaly (n=0 degrees). The tasks involve converting these elements into position and velocity vectors, setting up the Runge-Kutta integration for the equations of motion, and plotting the results over a 5400-second interval. The equations of motion are expressed in a state-space form suitable for MATLAB's "ode45" function.

PREREQUISITES
  • Understanding of orbital mechanics and initial orbital elements
  • Proficiency in MATLAB programming, specifically with "ode45" and vector-matrix operations
  • Knowledge of converting second-order ODEs to first-order systems
  • Familiarity with numerical integration techniques, particularly the Runge-Kutta method
NEXT STEPS
  • Research the "ode45" function in MATLAB for solving ordinary differential equations
  • Study the process of converting second-order ODEs to first-order systems
  • Explore tutorials on state-space representation in dynamic systems
  • Learn about plotting techniques in MATLAB to visualize simulation results
USEFUL FOR

This discussion is beneficial for aerospace engineers, MATLAB users, and students studying orbital mechanics or numerical methods in engineering. It provides insights into simulating satellite motion and applying numerical integration techniques effectively.

Triathlete
Messages
31
Reaction score
0

Homework Statement


Given: Initial orbital elements of a satellite

a=6652.555663km;

e=0.075;

i=28.5 degrees;

Ω=40 degrees;

w=30 degrees;

n=0 degrees;Tasks(using MATLAB):

1. Convert orbital elements to position and velocity vectors

2. Use these vectors to initialize the Runge-Kutta method

3. Set up the Runge Kutta method to integrate equations in vector-matrix form

4. Numerically integrate the equations of motion for 5400 seconds, in increments of 10 seconds.

5. Plot position and velocity of the satellite over the 5400 seconds.

Homework Equations



r = √(x2+y2+z2)
¨r = −(µ/r3)r

The Attempt at a Solution



I have calculated the starting position and velocity vectors in MATLAB which results in:

v =

-7.2785
2.1832
3.4483

r =

1.0e+03 *
2.3443
5.4969
1.4681

but I am not sure what I am supposed to use as my vector-matrix equations for the Runge-Kutta integration. I know the two body equation of motion(shown above) will be used in it's component forms, but I'm supposed to use state space or something? I have yet to take system dynamics and controls so this concept is completely foreign to me. Any help would be very much appreciated.
 
Physics news on Phys.org
Triathlete said:
I know the two body equation of motion(shown above) will be used in it's component forms, but I'm supposed to use state space or something?
Yes, for each component of ##\mathbf{r} = (x,y,z)## you have a second order ODE. You need to convert each of these second order ODEs into a two-dimensional system of first order ODEs. So if you start with
$$
\begin{align*}
\ddot{x} &= f(x,y,z)\\
\ddot{y} &= g(x,y,z)\\
\ddot{z} &= h(x,y,z)
\end{align*}
$$
then one way to proceed is to write
$$
\dot{x} = v_x, \qquad \dot{v}_x = f(x,y,z)
$$
and similarly for the other components. This way, you end up with a system of the form
$$
(\dot{x},\dot{v}_x,\dot{y},\dot{v}_y,\dot{z},\dot{v_z}) = F(x,y,z)
$$
with ##F : \mathbb{R}^6 \to \mathbb{R}^6## defined by
$$
F(x,v_x,y,v_y,z,v_z) := (v_x,f(x,y,z),v_y,g(x,y,z),v_z,h(x,y,z))
$$
This is the form in which "ode45" expects the system. The state space in this case may be taken as ##\mathbb{R}^6##. Please consult the tutorial on "ode45" in case you are not familiar with the syntax. There is also the function "odeToVectorField" but I have never used it.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 65 ·
3
Replies
65
Views
8K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
7K
Replies
1
Views
3K