PorkChopTOF:

Path: Orbit/OrbitMechanics

% Generate time of flight pork chop plot with TOF vs departure data
 dV row is a particular time of flight and column is a  particular date.
 This function handles single arcs, multiple revolutions are not
 allowed. This function only handles the major planets (including Pluto.)
 The planets are entered as strings so the names can be displayed on the
 plot.

 The velocity may be departure only, type 1, or the total for both
 departure and arrival, type 2. Type 2 is the default.
  
 Type PorkChopTOF for a demo of Earth to Mars trajectoriesin 2005.

--------------------------------------------------------------------------
   Form:
   [dV,tOF,jDDep,jDArr,tM] = PorkChopTOF(dateRange,tOFRange,planetDep,planetArr,nDate,nTOF,type)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   dateRange   (1,2)         [jDStart jDEnd]   (Julian day number)
   tOFRange    (1,2)         [tOFStart tOFEnd] (days)
   planetDep   (1,:)         Departure planet  (Only major planets)
   planetArr   (1,:)         Arrival planet    (Only major planets)
   nDate       (1,1)         Number of dates
   nTOF        (1,1)         Number of TOF
   type        (1,1)         1: departure DV. 2: total DV (default)

   -------
   Outputs
   -------
   dV          (nDate,nTOF)  Delta V required (km/s)  
   tOF         (nDate,nTOF)  Time of flight
   jDDep       (nDate,nTOF)  Departure dates 
   jDArr       (nDate,nTOF)  Arrival dates 
   tM          (nDate,nTOF)  Transfer type. 1: <180 degrees, -1: >180 degrees

 See also: PlanetPosJPL, LambertTOF, DVTarget
--------------------------------------------------------------------------

Children:

Orbit: OrbitMechanics/LambertTOF
Orbit: Visualization/PorkChopPlot
SC: Ephem/PlanetPosJPL
Common: Database/Constant
Common: General/StringMatch
Common: Time/Date2JD
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/Mag

Back to the Orbit Module page