latom.plots.timeseries¶
@authors: Alberto FOSSA’ Giuliana Elena MICELI
Classes
|
Plot the two-dimensional simulation’s controls in time. |
|
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:
objectPlot 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 [-] orNone. Default isNonestates_exp (ndarray or
None, optional) – States time series for explicit simulation as [r, theta, u, v, m] orNone. Default isNonethrust (ndarray or
None) – Thrust time series [N] or [-] orNone. Default isNonethreshold (float) – Threshold value to determine the on/off control structure or
None. Default is1e-6r_safe (ndarray or
None, optional) – Time series for minimum safe altitude [m] or [-] orNone. Default isNonethreshold – 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 [-] orNonestates_exp (ndarray or
None) – States time series for explicit simulation as [r, theta, u, v, m] orNonetime_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 [-] orNonelabels (iterable) – Labels for the different phases
-
class
latom.plots.timeseries.TwoDimControlsTimeSeries(time, controls, threshold=1e-06, units=('N', 's'))[source]¶ Bases:
objectPlot 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 orNone. Default is1e-6units (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 orNoneunits (iterable) – Measurements units for thrust, time