PtchCnc:

Path: Orbit/OrbitCoord

% Computes planet centered orbital elements.

   vC and rC must be inside the patch condition, i.e. when the spacecraft
   orbit intersects the sphere of influence. At that point the target
   planet or moon is the central body and orbital elements with respect
   to that body are computed. If you do the conversion too far inside
   the sphere of influence your results will not be correct.

   vC, vPC, rC and rPC can be 3x1 or 3xn. In the latter case it finds
   the crossing point for the sphere of influence.

   If no outputs are specified, it will plot the planet centered orbit.

   Velocity, mu and position must be in consistent units. This function
   shows the effect of flying by another body but does not directly
   help in designing a trajectory.

   Type PtchCnc for a demo of a spaceraft approaching the moon in an 
   Earth-centered elliptical orbit.

   Since version 2.
--------------------------------------------------------------------------
   Form:
   el = PtchCnc( vC, vPC, rC, rPC, muC, muP )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   vC	(3,1)   Velocity of the spacecraft in the central frame
   vPC	(3,1)   Velocity of the planet in the central frame
   rC	(3,1)   Position of the spacecraft in the central frame
   rPC	(3,1)   Position of the planet in the central frame
   muC	(1,1)   Gravitational parameter of the central body
   muP	(1,1)   Gravitational parameter of the planet

   -------
   Outputs
   -------
   el	(:)     Elements in the planet frame
               el.a, el.e, el.i, el.w, el.L, el.M
             
--------------------------------------------------------------------------

Children:

AC: ACData/ACTConstants
Orbit: OrbitCoord/RPRA2AE
Orbit: OrbitCoord/SLR
Orbit: OrbitMechanics/RVOrbGen
Orbit: OrbitMechanics/SphOI
SC: BasicOrbit/CP2I
SC: BasicOrbit/E2M
SC: BasicOrbit/E2Nu
SC: BasicOrbit/M2E
SC: BasicOrbit/M2EApp
SC: BasicOrbit/M2EEl
SC: BasicOrbit/M2EHy
SC: BasicOrbit/Nu2E
SC: BasicOrbit/Nu2M
SC: BasicOrbit/Period
SC: BasicOrbit/RV2El
SC: SCData/sCTConstants
Common: CommonData/Constants
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Database/Constant
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/DeleteCell
Common: General/DispWithTitle
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/Axis3D
Common: Graphics/Mesh2
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/TimeLabl
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Math: Linear/Cross
Math: Linear/DupVect
Math: Linear/Mag

Back to the Orbit Module page