TrajectoryBetweenTwoPlanets:

Path: Orbit/StraightLine

% fmincon solution for a trajectory between two planets
 Generates a trajectory plot. Uses the JPL ephemerides. planet2 can be
 a number from 1-9 or a data structure

 This stops at the target.

 Type TrajectoryBetweenTwoPlanets for a demo using both JPL 
 ephemerides and a data structure for planet2.
--------------------------------------------------------------------------
   Form:
   s = TrajectoryBetweenTwoPlanets( jD0, planet1, planet2, years, n, opts, nRSim )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   jD0       (1,1)  Start Julian Date
   planet1   (1,1)  Id of departure planet (1-9)
   planet2  	(1,1)  Id of arrival planet (1-9) or data structure
                    .name (1,:) Name
                    .el   (1,6) Orbital elements - epoch must be jD0
   years   	(1,1)  Mission duration (years)
   n         (1,1)  Number of steps in solution
   opts     	(.)    Data structure for fmincon
   nRSim     (1,1)  Ratio of sim points to optimization points

   -------
   Outputs
   -------
   s         (.)   Output structure      
                   .x    (6,:)  States
                   .a    (3,:)  Acceleration vector
                   .jD0  (1,:)  Julian date
                   .t    (1,:)  Elapsed time

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

Children:

AC: ACData/ACTConstants
Orbit: OrbitCoord/SLR
Orbit: OrbitMechanics/RVOrbGen
Orbit: Visualization/PlanetTrajectoryPlot
SC: BasicOrbit/CP2I
SC: BasicOrbit/E2M
SC: BasicOrbit/E2Nu
SC: BasicOrbit/M2E
SC: BasicOrbit/M2EApp
SC: BasicOrbit/M2EEl
SC: BasicOrbit/M2EHy
SC: BasicOrbit/M2Nu
SC: BasicOrbit/M2NuPb
SC: BasicOrbit/Nu2E
SC: BasicOrbit/Nu2M
SC: BasicOrbit/Period
SC: BasicOrbit/RV2El
SC: Ephem/CEcl2Eq
SC: Ephem/InterpolateState
SC: Ephem/PlanetPosJPL
SC: Ephem/PlanetYear
SC: Ephem/Planets
SC: Ephem/SolarSys
SC: SCData/bin2000
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/TextS
Common: Graphics/TimeLabl
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Time/DTSToDTA
Common: Time/Date2JD
Common: Time/JD2000
Math: Integration/RK4
Math: Linear/Cross
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Unit

Back to the Orbit Module page