latom.plots.solutions¶
@authors: Alberto FOSSA’ Giuliana Elena MICELI
Functions
|
Deep copy operation on arbitrary Python objects. |
Classes
|
Plot the two-dimensional simulation’s altitude profile over spawn angle. |
|
Plot the two-dimensional simulation’s controls in time. |
|
Plot the two-dimensional two-phases descent simulation’s states and controls in time and in the xy plane. |
|
Plots the two-dimensional trajectories from a Low Lunar Orbit to a Near rectilinear Halo Orbit. |
|
Plots the two-dimensional multi phase simulation’s states and controls in time and in the xy plane. |
|
Plot the two-dimensional simulation’s states and controls in time and in the xy plane. |
|
Plot the two-dimensional simulation’s states in time. |
|
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:
objectPlot 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 [-] orNone. Default isNonestates_exp (ndarray or
None, optional) – States time series for explicit simulation as [r, theta, u, v, m] orNone. Default isNoner_safe (ndarray or
None, optional) – Time series for minimum safe altitude [m] or [-] orNone. Default isNonethreshold (float or
None, optional) – Threshold value to determine the on/off control structure orNone. Default is1e-6kind (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 [-] orNonefor surface to LLO transfers. Default isNonee (float or
None, optional) – HEO orbit’s eccentricity [-] orNonefor surface to LLO transfers. Default isNone
- 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 [-] orNonestates_exp (ndarray or
None) – States time series for explicit simulation as [r, theta, u, v, m] orNoner_safe (ndarray or
None) – Time series for minimum safe altitude [m] or [-] orNonethreshold (float or
None) – Threshold value to determine the on/off control structure orNonekind (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
-
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.TwoDimSolPlotPlots 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 [-] orNone. Default isNonestates_exp (ndarray or
None, optional) – States time series for explicit simulation as [r, theta, u, v, m] orNone. Default isNoner_safe (ndarray or
None, optional) – Time series for minimum safe altitude [m] or [-] orNone. Default isNonethreshold (float or
None, optional) – Threshold value to determine the on/off control structure orNone. Default is1e-6kind (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 [-] orNonefor surface to LLO transfers. Default isNonee (float or
None, optional) – HEO orbit’s eccentricity [-] orNonefor surface to LLO transfers. Default isNonedtheta (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:
objectPlot 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 [-] orNone. Default isNonestates_exp (ndarray or
None, optional) – States time series for explicit simulation as [r, theta, u, v, m] orNone. Default isNone
- 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 [-] orNonestates_exp (ndarray or
None) – States time series for explicit simulation as [r, theta, u, v, m] orNonestates_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