ModelSpace
All Classes Namespaces Functions Variables Enumerations Pages
clockwerk::CalcXdotGravityJ2J3< T > Class Template Reference
Inheritance diagram for clockwerk::CalcXdotGravityJ2J3< T >:
Collaboration diagram for clockwerk::CalcXdotGravityJ2J3< T >:

Public Member Functions

int calculateRates (T time, const std::array< T, 6 > &state, std::array< T, 6 > &out_rates)
 Function to calculate rate of change in 6-element orbit position with J2, J3.
 
virtual int calculateRates (T time, const std::array< T, N > &state, std::array< T, N > &out_rates)
 Function to calculate rates from current state of system.
 

Public Attributes

mu
 The gravitational parameter for the planet. Must be set prior to calculation.
 
J2
 The J2 parameter for the planet. Must be set prior to calculation.
 
J3
 The J3 parameter for the planet. Must be set prior to calculation.
 
R
 The reference radius for the planet. Must be set prior to calculation.
 

Member Function Documentation

◆ calculateRates() [1/2]

template<typename T >
int clockwerk::CalcXdotGravityJ2J3< T >::calculateRates ( time,
const std::array< T, 6 > &  state,
std::array< T, 6 > &  out_rates 
)

Function to calculate rate of change in 6-element orbit position with J2, J3.

Parameters
timeThe reference time
stateThe state vector for the system as [x, y, z, xDot, yDot, zDot]
out_ratesImplicit return of rates based on time, state as [xDot, yDot, zDot, xDDot, yDDot, zDDot]

◆ calculateRates() [2/2]

virtual int clockwerk::Rates< T, N >::calculateRates ( time,
const std::array< T, N > &  state,
std::array< T, N > &  out_rates 
)
inlinevirtualinherited

Function to calculate rates from current state of system.

Parameters
timeThe reference time
stateThe reference state
out_ratesImplicit return of rates based on time, state

The documentation for this class was generated from the following file: