poliastro2.plotting.tisserand

Generates Tisserand plots.

Classes

TisserandKind(value)

All possible Tisserand kinds.

TisserandPlotter([kind, axes])

Generates Tisserand figures.

class poliastro2.plotting.tisserand.TisserandKind(value)

All possible Tisserand kinds.

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

Generates Tisserand figures.

_build_lines(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

_solve_tisserand(body, vinf_span, num_contours, alpha_lim=(0, 3.141592653589793), 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

  • alpha_lim (tuple) – Minimum and maximum flyby angles.

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

Notes

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

plot(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

plot_line(body, vinf, alpha_lim=(0, 3.141592653589793), 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