latom.plots.timeseries

@authors: Alberto FOSSA’ Giuliana Elena MICELI

Classes

TwoDimControlsTimeSeries(time, controls[, …])

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

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

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

class latom.plots.timeseries.TwoDimStatesTimeSeries(r, time, states, time_exp=None, states_exp=None, thrust=None, threshold=1e-06, r_safe=None, labels=('powered', 'coast'))[source]

Bases: object

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

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]

  • 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

  • thrust (ndarray or None) – Thrust time series [N] or [-] or None. Default is None

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

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

  • threshold – The threshold for the thrust values

  • labels (iterable, optional) – Labels for the different phases. Default is (‘powered’, ‘coast’)

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

  • scaler (float) – Value to scale the distances

  • units (list) – List of measurement units for distances, velocities and time

  • 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]

  • 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

  • time_pow (ndarray) – Time vector for implicit NLP solution corresponding to a powered phase [s] or [-]

  • states_pow (ndarray) – States time series for implicit NLP solution corresponding to a powered phase as [r, theta, u, v, m]

  • time_coast (ndarray) – Time vector for implicit NLP solution corresponding to a coasting phase [s] or [-]

  • states_coast (ndarray) – States time series for implicit NLP solution corresponding to a coasting phase as [r, theta, u, v, m]

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

  • labels (iterable) – Labels for the different phases

plot()[source]

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

class latom.plots.timeseries.TwoDimControlsTimeSeries(time, controls, threshold=1e-06, units=('N', 's'))[source]

Bases: object

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

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

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

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

  • units (iterable, optional) – Measurements units for thrust, time. Default is (‘N’, ‘s’)

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

  • thrust (ndarray) – Thrust magnitude time series for implicit NLP solution [N] or [-]

  • alpha (ndarray) – Thrust direction time series for implicit NLP solution [rad]

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

  • units (iterable) – Measurements units for thrust, time

plot()[source]

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