Gravity Engine 2 3.0
Loading...
Searching...
No Matches
GravityEngine2.GravityJ2 Class Reference
Inheritance diagram for GravityEngine2.GravityJ2:
GravityEngine2.GSExternalAcceleration

Public Member Functions

int AddToGE (int id, GECore ge, GBUnits.Units units)
 

Static Public Member Functions

static int double3 a_out J2Accel (ref ExternalAccel.EAStateData eaState, ref ExternalAccel.EADesc eaDesc, double t, double dt, double3 a_in, NativeArray< double3 > data)
 

Public Attributes

double3 axis
 
double j2 = 1.0
 
double radius = 10.0
 

Static Public Attributes

static int status
 Apply the addition force change due to oblate gravity modeled by a J2 dipole term.
 

Member Function Documentation

◆ AddToGE()

int GravityEngine2.GravityJ2.AddToGE ( int id,
GECore ge,
GBUnits::Units units )

Member Data Documentation

◆ status

int GravityEngine2.GravityJ2.status
static

Apply the addition force change due to oblate gravity modeled by a J2 dipole term.

The equation for the perturbing force is taken from Gravity (Poisson) (3.90) p166

This routine is called for each massive (i,j) pair. Those that have a "from body" with a non-zero J2 will apply the non-spherical perturbing force to the other.

There really should be an equal and opposite force on the source of the J2 force but since this is most often used for a planet force on a satellite, this is neglected since it's so small.

Parameters
fromIndex
toIndex
rsq
rvmu_from
rvmu_to
parmFrom
t
afrom_out
a

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