RHSGeoJ2:

Path: Orbit/RHSOrbit

% Computes the right hand side for Earth gravity with J2.
 Uses a local version of AGravityC that explicitly uses only the J2 term.
--------------------------------------------------------------------------
   Form:
      d = RHSGeoJ2; % default data
   xDot = RHSGeoJ2( x, t, d, aExt )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x           (6,1)    Position vector [rECI (km); vECI (km)];
   t           (1,1)    Time since start Julian Date (s) 
   d            (.)     Gravity model struct
                         .j2    (1,2)	J2 term (unnormalized and positive)
                         .mu    (1,1)	Spherical gravitational potential
                         .a     (1,1)	Planet radius
                         .jD0	  (1,1) Start Julian Date    
  aExt          (3,1)   External acceleration vector [x;y;z] ECI

   -------
   Outputs
   -------
   xDot        (6,1)   [rDot;vDot]

--------------------------------------------------------------------------
 See also: ECIToEF, RHSGeoHarm
--------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/ECIToEF
Common: Time/JD2T

Back to the Orbit Module page