poliastro.plotting.porkchop

This is the implementation of porkchop plot

Module Contents

Classes

PorkchopPlotter

Class Implementation for Porkchop Plot

Attributes

targetting_vec

poliastro.plotting.porkchop.targetting_vec
class poliastro.plotting.porkchop.PorkchopPlotter(departure_body, target_body, launch_span, arrival_span, ax=None, tfl=True, vhp=True, max_c3=45.0 * u.km ** 2 / u.s ** 2, max_vhp=5 * u.km / u.s)

Class Implementation for Porkchop Plot

Parameters
porkchop(self)

Plots porkchop between two bodies.

Returns

  • dv_launch (numpy.ndarray) – Launch delta v

  • dv_arrival (numpy.ndarray) – Arrival delta v

  • c3_launch (numpy.ndarray) – Characteristic launch energy

  • c3_arrrival (numpy.ndarray) – Characteristic arrival energy

  • tof (numpy.ndarray) – Time of flight for each transfer

Examples

>>> from poliastro.plotting.porkchop import PorkchopPlotter
>>> from poliastro.bodies import Earth, Mars
>>> from poliastro.util import time_range
>>> launch_span = time_range("2005-04-30", end="2005-10-07")
>>> arrival_span = time_range("2005-11-16", end="2006-12-21")
>>> porkchop_plot = PorkchopPlotter(Earth, Mars, launch_span, arrival_span)
>>> dv_launch, dev_dpt, c3dpt, c3arr, tof = porkchop_plot.porkchop()