RHSGeoHarm:

Path: Orbit/RHSOrbit

% Computes the right hand side for a gravity model.
   Allows for any spherical harmonic model

   Since version 10.
--------------------------------------------------------------------------
   Form:
   xDot = RHSGeoHarm( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x           (6,1)    Position vector [rECI (km); vECI (km)];
   t           (1,1)    Time since start Julian Date (s) 
   d           (1,1)    Highest sectorial and tesseral harmonic 
                        .nN	(1,1)	Highest zonal harmonic (m = 0) 
                        .nM    (1,1)	Highest sectorial and tesseral harmonic 
                        .s     (:,:)	S terms
                        .c     (:,:)	C terms
                        .j     (1,:)	m = 0 terms
                        .mu    (1,1)	Spherical gravitational potential
                        .a     (1,1)	Planet radius
                        .jD0	(1,1)	Start Julian Date                    

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

--------------------------------------------------------------------------

Children:

Common: Time/JD2T
Orbit: OrbitMechanics/AGravityC
SC: Ephem/TruEarth

Back to the Orbit Module page