Ginan
Loading...
Searching...
No Matches
acceleration.cpp File Reference

Functions

Vector3d accelCentralForce (const Vector3d observer, const double GM, Matrix3d *dAdPos_ptr)
 Central force acceleration.
 
Vector3d accelSourcePoint (const Vector3d sat, const Vector3d planet, const double GM, Matrix3d *dAdPos_ptr)
 Source point acceleration from a planet acting on a satellite.
 
Vector3d accelJ2 (const double C20, const Matrix3d eci2ecf, Vector3d bodyPos, double GM)
 "The indirect J2 effect".
 
Vector3d accelSPH (const Vector3d r, const MatrixXd C, const MatrixXd S, const int maxDeg, const double GM)
 Compute the acceleration of due to a spherical harmonic field acting on the satellite.
 

Function Documentation

◆ accelCentralForce()

Vector3d accelCentralForce ( const Vector3d observer,
const double GM,
Matrix3d * dAdPos_ptr )

Central force acceleration.

Parameters
observerposition of the oberserver
GMvalue of GM of the acting force
dAdPos_ptrOptional pointer to differential matrix
Here is the caller graph for this function:

◆ accelJ2()

Vector3d accelJ2 ( const double C20,
const Matrix3d eci2ecf,
Vector3d bodyPos,
double GM )

"The indirect J2 effect".

ref: GOCE standards GO-TN-HPF-GS-0111

Parameters
C20Value of the C20
eci2ecfRotation inertial to terestrila
bodyPosPosition of the planets
GMValue of GM constant of the body in question
Here is the caller graph for this function:

◆ accelSourcePoint()

Vector3d accelSourcePoint ( const Vector3d sat,
const Vector3d planet,
const double GM,
Matrix3d * dAdPos_ptr )

Source point acceleration from a planet acting on a satellite.

Parameters
satVector posiiong of the satellite w.r.t to the orbiting body
planetVector position of the planet w.r.t to the orbiting body
GMConstant GM of the acting body
dAdPos_ptrOptional pointer to differential matrix
Here is the call graph for this function:
Here is the caller graph for this function:

◆ accelSPH()

Vector3d accelSPH ( const Vector3d r,
const MatrixXd C,
const MatrixXd S,
const int maxDeg,
const double GM )

Compute the acceleration of due to a spherical harmonic field acting on the satellite.

Note
This function does not contain the degree 0 acceleration need to be done via "accelCentralForce"

(Re/R)**n : we start from deg 2 this formulation works.

Parameters
rVector of the position of the satelite (ECEF)
CMatrix of the "C" spherical harmonic coefficient
SMatrix of the "S" spherical harmonic coefficient
maxDegMaximum degree use for the summation of the harmonics //todo aaron, limit this to max found in file/struct
GMValue of GM constant of the body in question.
Here is the call graph for this function:
Here is the caller graph for this function: