Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

Orbit Equations of Motion
[Orbit Toolkit]


Functions

Vector TwoBodyDynamics (const ssfTime &_time, const Vector &_integratingState, Orbit *_pOrbit, Attitude *_pAttitude, const Matrix &_parameters, const Functor &_forceFunctorPtr)
 Orbit equation of motion using position and velocity.


Function Documentation

Vector TwoBodyDynamics const ssfTime _time,
const Vector _integratingState,
Orbit _pOrbit,
Attitude _pAttitude,
const Matrix _parameters,
const Functor _forceFunctorPtr
[static]
 

Orbit equation of motion using position and velocity.

Calculate the new time rate of change of state (position & velocity) using two-body dynamics with disturbance forces

\[ \ddot{\vec{r}} = -\frac{\mu}{r^{2}}\frac{\vec{r}}{r}\]

The returned state vector is:

\[ \begin{bmatrix} \dot{\vec{r}}\\ \dot{\vec{v}} \end{bmatrix} = \begin{bmatrix} \vec{v}\\ -\frac{\mu}{\left|\vec{r}\right|^{3}}\vec{r} \end{bmatrix} \]

Parameters:
_time current time (in seconds)
_state vector of states, $\left[\vec{r},\vec{v}\right]^{T}$ (kilometers, kilometers/second)
_pOrbit pointer to the current Orbit instance
_pAttitude pointer to the current Attitude instance
_parameters additional parameters for integration $\left[\mu\right]$
_forceFuncPtr pointer to the force calculating function
Returns:
6x1 vector of time derivatives of state $\left[\dot{\vec{r}},\dot{\vec{v}}\right]^{T}$

Definition at line 71 of file TwoBodyDynamics.h.

References _, O_SESSAME::Functor::Call(), O_SESSAME::Attitude::GetStateObject(), O_SESSAME::OrbitState::GetStateRepresentation(), O_SESSAME::Matrix, O_SESSAME::OrbitStateRepresentation::SetPositionVelocity(), O_SESSAME::Vector, and O_SESSAME::VectorIndexBase.


Generated on Wed Sep 5 12:54:46 2007 for DSACSS Operational Code by  doxygen 1.3.9.1