PorkChopTOF:

Path: Interplanetary/Mechanics

% Generate time of flight porkchop 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.
 If there are no outputs the function creates two plots, one of the
 porkchop and a second of the miniumum delta-V Lambert transfer.

 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 trajectories in 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   (default: 90)
   nTOF        (1,1)         Number of TOF     (default: 200)
   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:

Interplanetary: Ephemeris/PlanetPosJPL
Orbit: OrbitControl/DVTarget
Orbit: OrbitMechanics/LambertTOF
Orbit: Visualization/PlotLambertTransfer
Orbit: Visualization/PorkChopPlot
Common: Database/Constant
Common: General/StringMatch
Common: Time/Date2JD
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/Mag

Back to the Interplanetary Module page