latom.plots.solutions

@authors: Alberto FOSSA’ Giuliana Elena MICELI

Functions

deepcopy(x[, memo, _nil])

Deep copy operation on arbitrary Python objects.

Classes

TwoDimAltProfile(r, states[, states_exp, …])

Plot the two-dimensional simulation’s altitude profile over spawn angle.

TwoDimControlsTimeSeries(time, controls[, …])

Plot the two-dimensional simulation’s controls in time.

TwoDimDescTwoPhasesSolPlot(r, time, states, …)

Plot the two-dimensional two-phases descent simulation’s states and controls in time and in the xy plane.

TwoDimLLO2NRHO(r_moon, a_nrho, e_nrho, states)

Plots the two-dimensional trajectories from a Low Lunar Orbit to a Near rectilinear Halo Orbit.

TwoDimMultiPhaseSolPlot(r, time, states, …)

Plots the two-dimensional multi phase simulation’s states and controls in time and in the xy plane.

TwoDimSolPlot(r, time, states, controls[, …])

Plot the two-dimensional simulation’s states and controls in time and in the xy plane.

TwoDimStatesTimeSeries(r, time, states[, …])

Plot the two-dimensional simulation’s states in time.

TwoDimSurface2LLO(r_moon, states[, kind, nb])

Plots the two-dimensional trajectories from the Moon surface to a Low Lunar Orbit and vice versa.

class latom.plots.solutions.TwoDimSolPlot(r, time, states, controls, time_exp=None, states_exp=None, r_safe=None, threshold=1e-06, kind='ascent', a=None, e=None)[source]

Bases: object

Plot the two-dimensional simulation’s states and controls in time and in the xy plane.

Parameters
  • r (float) – Equatorial radius of central attracting body [m] or [-]

  • time (ndarray) – Time vector for implicit NLP solution [s] or [-]

  • states (ndarray) – States time series for implicit NLP solution as [r, theta, u, v, m]

  • controls (ndarray) – Controls time series for implicit NLP solution as [thrust, alpha]

  • time_exp (ndarray or None, optional) – Time vector for explicit simulation [s] o [-] or None. Default is None

  • states_exp (ndarray or None, optional) – States time series for explicit simulation as [r, theta, u, v, m] or None. Default is None

  • r_safe (ndarray or None, optional) – Time series for minimum safe altitude [m] or [-] or None. Default is None

  • threshold (float or None, optional) – Threshold value to determine the on/off control structure or None. Default is 1e-6

  • kind (str, optional) – Defines the kind of trajectory. The possible values are ascent or descent. Default is ascent

  • a (float or None, optional) – HEO orbit’s semi-major axis [m] or [-] or None for surface to LLO transfers. Default is None

  • e (float or None, optional) – HEO orbit’s eccentricity [-] or None for surface to LLO transfers. Default is None

Variables
  • R (float) – Equatorial radius of central attracting body [m] or [-]

  • time (ndarray) – Time vector for implicit NLP solution [s] or [-]

  • states (ndarray) – States time series for implicit NLP solution as [r, theta, u, v, m]

  • controls (ndarray) – Controls time series for implicit NLP solution as [thrust, alpha]

  • time_exp (ndarray or None) – Time vector for explicit simulation [s] o [-] or None

  • states_exp (ndarray or None) – States time series for explicit simulation as [r, theta, u, v, m] or None

  • r_safe (ndarray or None) – Time series for minimum safe altitude [m] or [-] or None

  • threshold (float or None) – Threshold value to determine the on/off control structure or None

  • kind (str) – Defines the kind of trajectory. The possible values are ascent or descent

  • states_plot (TwoDimStatesTimeSeries) – Instance of TwoDimStatesTimeSeries class to display the states variables as function of time

  • alt_plot (TwoDimAltProfile) – Instance of TwoDimAltProfile class to display the altitude over spawn angle

  • controls_plot (TwoDimControlsTimeSeries) – Instance of TwoDimControlsTimeSeries class to display the controls variables as function of time

  • trajectory_plot (TwoDimLLO2NRHO or TwoDimSurface2LLO) – Instance of TwoDimLLO2NRHO or TwoDimSurface2LLO class to create a LLO to NRHO trajectory plot or a Surface to Moon trajectory plot

plot()[source]

Plots the two-dimensional simulation’s states and controls in time and in the xy plane.

class latom.plots.solutions.TwoDimMultiPhaseSolPlot(r, time, states, controls, time_exp=None, states_exp=None, r_safe=None, threshold=1e-06, kind='ascent', a=None, e=None, dtheta=None)[source]

Bases: latom.plots.solutions.TwoDimSolPlot

Plots the two-dimensional multi phase simulation’s states and controls in time and in the xy plane.

Parameters
  • r (float) – Equatorial radius of central attracting body [m] or [-]

  • time (ndarray) – Time vector for implicit NLP solution [s] or [-]

  • states (ndarray) – States time series for implicit NLP solution as [r, theta, u, v, m]

  • controls (ndarray) – Controls time series for implicit NLP solution as [thrust, alpha]

  • time_exp (ndarray or None, optional) – Time vector for explicit simulation [s] o [-] or None. Default is None

  • states_exp (ndarray or None, optional) – States time series for explicit simulation as [r, theta, u, v, m] or None. Default is None

  • r_safe (ndarray or None, optional) – Time series for minimum safe altitude [m] or [-] or None. Default is None

  • threshold (float or None, optional) – Threshold value to determine the on/off control structure or None. Default is 1e-6

  • kind (str, optional) – Defines the kind of trajectory. The possible values are ascent or descent. Default is ascent

  • a (float or None, optional) – HEO orbit’s semi-major axis [m] or [-] or None for surface to LLO transfers. Default is None

  • e (float or None, optional) – HEO orbit’s eccentricity [-] or None for surface to LLO transfers. Default is None

  • dtheta (float or None, optional) – Angle to translate the position angle time series [rad]

plot()

Plots the two-dimensional simulation’s states and controls in time and in the xy plane.

class latom.plots.solutions.TwoDimDescTwoPhasesSolPlot(r, time, states, controls, time_exp=None, states_exp=None)[source]

Bases: object

Plot the two-dimensional two-phases descent simulation’s states and controls in time and in the xy plane.

Parameters
  • r (float) – Equatorial radius of central attracting body [m] or [-]

  • time (ndarray) – Time vector for implicit NLP solution [s] or [-]

  • states (ndarray) – States time series for implicit NLP solution as [r, theta, u, v, m]

  • controls (ndarray) – Controls time series for implicit NLP solution as [thrust, alpha]

  • time_exp (ndarray or None, optional) – Time vector for explicit simulation [s] o [-] or None. Default is None

  • states_exp (ndarray or None, optional) – States time series for explicit simulation as [r, theta, u, v, m] or None. Default is None

Variables
  • R (float) – Equatorial radius of central attracting body [m] or [-]

  • time (ndarray) – Time vector for implicit NLP solution [s] or [-]

  • states (ndarray) – States time series for implicit NLP solution as [r, theta, u, v, m]

  • controls (ndarray) – Controls time series for implicit NLP solution as [thrust, alpha]

  • time_exp (ndarray or None) – Time vector for explicit simulation [s] o [-] or None

  • states_exp (ndarray or None) – States time series for explicit simulation as [r, theta, u, v, m] or None

  • states_plot (TwoDimStatesTimeSeries) – Instance of TwoDimStatesTimeSeries class to display the states variables as function of time

  • alt_plot (TwoDimAltProfile) – Instance of TwoDimAltProfile class to display the altitude over spawn angle

  • controls_plot (TwoDimControlsTimeSeries) – Instance of TwoDimControlsTimeSeries class to display the controls variables as function of time

  • trajectory_plot (TwoDimSurface2LLO) – Instance of TwoDimSurface2LLO class to create a Surface to Moon trajectory plot

plot()[source]

Plot the two-dimensional two-phases descent simulation’s states and controls in time and in the xy plane.