Spacecraft Models Package 2.0
Spacecraft Models for DSim
Public Member Functions | Protected Attributes | List of all members
gravity_earth_harmonics Class Reference

Models the spherical harmonic gravity about a single planet. More...

#include <gravity_earth_harmonics.h>

Inherits dsim_model.

Public Member Functions

void initialize_data ()
 Initialize outlets and output variables.
 
void initialization_complete ()
 Finish initialization.
 
void initialize_timestep ()
 Computation done prior to numerical integration.
 
void rhs (double t, double jd)
 Computation done during numerical integration.
 
void complete_timestep ()
 Computation done after numerical integration.
 

Protected Attributes

dsim_variable nMUse_dsim
 Number of m coefficients to use.
 
dsim_variable nNUse_dsim
 Number of n coefficients to use.
 
dsim_variable gravityFile_dsim
 Gravity file

 
dsim_variable parent_mass
 Parent mass.
 
dsim_variable parent_pos
 Parent position.
 

Outputs

dsim_variable planet_index
 Matrix storing NAIF integer IDs of targets

 
dsim_variable positionBody
 Matrix for storing positions of bodies

 
dsim_variable velocityBody
 Matrix for storing velocities of bodies

 
dsim_variable radiusBody
 Matrix for storing radii of bodies

 
dsim_variable rotationMatrixBody
 Matrix for storing rotation of bodies

 
dsim_variable observer
 NAIF integer ID of observer, defaults to earth 399

 
dsim_variable acceleration
 The gravitational acceleration.
 
dsim_variable forceG
 The gravitational force.
 

Detailed Description

Models the spherical harmonic gravity about a single planet.

This model assumes that the central body does not change. The default file loaded is GEMT1.geo from VisualCommander/Model Libraries.


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