Path: Orbit/OrbitMechanics
% Generate time of flight pork chop plot with delta-V per departure data The delta velocity computed is the total for both departure and arrival. Each row of dV is a particular time of flight and column is a particular date. This function only handles single arcs. Multiple revolutions are not allowed. If there are no outputs the function creates a plot figure. The departure planet can be any major planet (including Pluto) and is defined by name and ephemeris computed with PlanetPosJPL. The arrival planet is defined by Keplerian elements. For example, as done in the demo: dateRange = [Date2JD([2005 6 20]) Date2JD([2005 11 7])]; tOFRange = [125 450]; % days [elA, ~,~, jD] = ApophisOrbit; PorkChopTOFKepler(dateRange,tOFRange,'Earth',[elA jD]); Type PorkChopTOF for a demo of Earth to Apophis trajectories. -------------------------------------------------------------------------- Usage: PorkChopTOFKepler; % demo dV = PorkChopTOFKepler(dateRange,tOFRange,planetDep,planetArr,nDate,nTOF) -------------------------------------------------------------------------- ------ Inputs ------ dateRange (1,2) [jDStart jDEnd] (Julian day number) tOFRange (1,2) [tOFStart tOFEnd] (days) planetDep (1,:) Departure planet (Only major planets) planetArr (1,7) [Arrival planet elements (6) jDEpoch (1)] nDate (1,1) Number of dates nTOF (1,1) Number of TOF ------- Outputs ------- dV (nDate,nTOF) Delta V required (km/s) --------------------------------------------------------------------------
Orbit: Interplanetary/ApophisOrbit Orbit: OrbitMechanics/LambertTOF SC: BasicOrbit/El2RV SC: BasicOrbit/Period SC: Ephem/PlanetPosJPL Common: Database/Constant Common: General/StringMatch Common: Graphics/NewFig Common: Graphics/TitleS Common: Graphics/XLabelS Common: Graphics/YLabelS Common: Time/Date2JD Common: Time/JD2Date Math: Linear/Cross Math: Linear/Dot Math: Linear/Mag
Back to the Orbit Module page