poliastro.plotting.tisserand

Generates Tisserand plots

Module Contents

Classes

TisserandKind

All possible Tisserand kinds

TisserandPlotter

Generates Tisserand figures

class poliastro.plotting.tisserand.TisserandKind

Bases: enum.Enum

All possible Tisserand kinds

APSIS = apsis
ENERGY = energy
PERIOD = period
class poliastro.plotting.tisserand.TisserandPlotter(kind=TisserandKind.APSIS, axes=None)

Generates Tisserand figures

_solve_tisserand(self, body, vinf_span, num_contours, alpha_lim=(0, np.pi), N=100)

Solves all possible Tisserand lines with a meshgrid workflow

Parameters
  • body (Body) – Body to be plotted Tisserand

  • vinf_array (Quantity) – Desired Vinf for the flyby

  • num_contours (int) – Number of contour lines for flyby speed

  • N (int) – Number of points for flyby angle

Note

The algorithm for generating Tisserand plots is the one depicted in “Preliminary Trajectory Design of a Mission to Enceladus” by David Falcato Fialho Palma, section 3.6

_build_lines(self, RR_P, RR_A, EE, TT, color)

Collect lines and append them to internal data

Parameters

data (list) – Array containing [RR_P, RR_A, EE, TT, color]

Returns

lines – Plotting lines for the Tisserand

Return type

list

plot_line(self, body, vinf, alpha_lim=(0, np.pi), color=None)

Plots body Tisserand line within flyby angle

Parameters
  • body (Body) – Body to be plotted Tisserand

  • vinf (Quantity) – Vinf velocity line

  • alpha_lim (tuple) – Minimum and maximum flyby angles

  • color (str) – String representing for the color lines

Returns

self.ax – Apsis tisserand is the default plotting option

Return type

Axes

plot(self, body, vinf_span, num_contours=10, color=None)

Plots body Tisserand for given amount of solutions within Vinf span

Parameters
  • body (Body) – Body to be plotted Tisserand

  • vinf_span (tuple) – Minimum and maximum Vinf velocities

  • num_contours (int) – Number of points to iterate over previously defined velocities

  • color (str) – String representing for the color lines

Returns

self.ax – Apsis tisserand is the default plotting option

Return type

Axes