SEMGravAcc:

Path: Orbit/GravityModels

% Computes the acceleration due to the Sun and the Earth/Moon.
   The position is in the Sun-Earth/Moon frame.

   Type SEMGravAcc for a built-in demo creating gravity contour plots.

   Since version 10.
--------------------------------------------------------------------------
   Form:
   [gSun,gEM,gCompare] = SEMGravAcc( rSEM )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   rSEM          (2,:)    Position vector in SEM frame

   -------
   Outputs
   -------
   gSun          (:,:)    Gravitational acceleration due to the Sun
   gEM           (:,:)    Gravitational acceleration due to the Earth/Moon
   gCompare      (:,:)    gEM/gSun

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

Children:

Common: Database/Constant
Common: Graphics/NewFig

Back to the Orbit Module page