Readers Subpackage

Inheritance Diagram

Inheritance diagram of latom.reader.reader_2d, latom.reader.reader_heo_2d

Modules List

latom.reader.reader

@authors: Alberto FOSSA’ Giuliana Elena MICELI

latom.reader.reader_2d

@authors: Alberto FOSSA’ Giuliana Elena MICELI

latom.reader.reader_heo_2d

@authors: Alberto FOSSA’ Giuliana Elena MICELI

Documentation

@authors: Alberto FOSSA’ Giuliana Elena MICELI

class latom.reader.reader.Reader(db, case_id='final', db_exp=None)[source]

Bases: object

Reader class loads and displays stored simulations using an OpenMDAO CaseReader class instance.

Parameters
  • db (str) – Full path of the database where the solution is stored

  • case_id (str, optional) – Case identifier, initial to load the first iteration, final to load the final solution. Default is final

  • db_exp (str or None, optional) – Full path of the database where the explicit simulation is stored or None. Default is None

Variables
  • case_reader (CaseReader) – OpenMDAO CaseReader class instance for the implicit solution

  • case_id (str) – Case identifier, initial to load the first iteration, final to load the final solution.

  • case (Case or None) – OpenMDAO Case class instance identified by case_id within the case_reader object

  • case_reader_exp (CaseReader or None) – OpenMDAO CaseReader class instance for the explicit simulation or None

  • case – OpenMDAO Case class instance identified by case_id within the case_reader_exp object or None

@authors: Alberto FOSSA’ Giuliana Elena MICELI

class latom.reader.reader_2d.TwoDimReader(kind, body, db, case_id='final', db_exp=None)[source]

Bases: latom.reader.reader.Reader

TwoDimReader class loads and displays a stored simulation corresponding to a single-phase, two-dimensional transfer trajectory using an OpenMDAO CaseReader class instance.

Parameters
  • kind (iterable) – List of three parameters to define the characteristics of the solution to be loaded in the form ascent/descent, const/variable and True/False where the last corresponds to the presence of a path constraint to impose a minimum safe altitude on the simulated transfer

  • body (Primary) – Central attracting body

  • db (str) – Full path of the database where the solution is stored

  • case_id (str, optional) – Case identifier, initial to load the first iteration, final to load the final solution. Default is final

  • db_exp (str or None, optional) – Full path of the database where the explicit simulation is stored or None. Default is None

Variables
  • kind (iterable) – List of three parameters to define the characteristics of the solution to be loaded in the form ascent/descent, const/variable and True/False where the last corresponds to the presence of a path constraint to impose a minimum safe altitude on the simulated transfer

  • body (Primary) – Central attracting body

  • phase_name (str) – Name of the simulated phase within the OpenMDAO Problem class instance

  • states_scalers (ndarray) – Scaling parameters for distances, angles, velocities and mass

  • tof (float) – Time of flight for the implicit solution [s]

  • time (ndarray) – Time vector for the implicit solution [s]

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

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

  • r_safe (ndarray or None) – Minimum altitude constraint time series for the implicit solution [m] or None

  • tof_exp (float or None) – Time of flight for the explicit simulation [s] or None

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

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

  • controls_exp (ndarray or None) – Controls variables time series for the explicit simulation as [thrust, alpha] or None

  • r_safe_exp (ndarray or None) – Minimum altitude constraint time series for the explicit simulation [m] or None

get_time_series(case, kind)[source]

Retrieve the time of flight, time vector and states, controls and minimum safe altitude time series for the specified case and kind of transfer.

Parameters
  • case (Case) – OpenMDAO Case object

  • kind (iterable) – List of three parameters to define the characteristics of the solution to be loaded in the form ascent/descent, const/variable and True/False where the last corresponds to the presence of a path constraint to impose a minimum safe altitude on the simulated transfer

Returns

  • tof (float) – Time of flight for the given Case [s]

  • time (ndarray) – Time vector for the given Case [s]

  • states (ndarray) – States time series for the given Case as [r, theta, u, v, m]

  • controls (ndarray) – Controls variables time series for the given Case as [thrust, alpha]

  • r_safe (ndarray or None) – Minimum altitude constraint time series for the given Case [m] or None

plot()[source]

Plot the optimal transfer trajectory corresponding to the loaded Case.

@authors: Alberto FOSSA’ Giuliana Elena MICELI

class latom.reader.reader_heo_2d.TwoDim3PhasesLLO2HEOReader(body, db, case_id='final', db_exp=None, scaled=False)[source]

Bases: latom.reader.reader.Reader

TwoDim3PhasesLLO2HEOReader class loads and displays a stored simulation corresponding to a three-phases transfer trajectory from LLO to HEO using an OpenMDAO CaseReader class instance.

Parameters
  • body (Primary) – Central attracting body

  • db (str) – Full path of the database where the solution is stored

  • case_id (str, optional) – Case identifier, initial to load the first iteration, final to load the final solution. Default is final

  • db_exp (str or None, optional) – Full path of the database where the explicit simulation is stored or None. Default is None

  • scaled (bool, optional) – False to retrieve the solution in dimensional units, True otherwise. Default is False

Variables
  • body (Primary) – Central attracting body

  • gm_res (float) – Central attracting body standard gravitational parameter [m^3/s^2] or [-]

  • rm_res (float) – Central attracting body equatorial radius [m] or [-]

  • states_scalers (ndarray) – Scaling parameters for distances, angles, velocities and mass

  • phase_name (list) – List of phases names within the OpenMDAO Problem object

  • tof (float) – Time of flight for the implicit solution [s]

  • time (list) – Time vector for the implicit solution [s]

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

  • controls (list) – Controls variables time series for the implicit solution as [thrust, alpha]

  • tof_exp (float or None) – Time of flight for the explicit simulation [s] or None

  • time_exp (list or None) – Time vector for the explicit simulation [s] or None

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

  • controls_exp (list or None) – Controls variables time series for the explicit simulation as [thrust, alpha] or None

  • coe_inj (iterable) – Classical orbital elements at injection as (a, e, h, ta) with a semi-major axis, e eccentricity, h specific angular momentum vector and ta true anomaly

get_time_series(case)[source]

Retrieve the time of flight, time vector and states, controls and minimum safe altitude time series for the specified case and kind of transfer.

Parameters

case (Case) – OpenMDAO Case object

Returns

  • tof (float) – Time of flight for the given Case [s]

  • time (list) – Time vector for the given Case [s]

  • states (list) – States time series for the given Case as [r, theta, u, v, m]

  • controls (list) – Controls variables time series for the given Case as [thrust, alpha]

plot()[source]

Plot the optimal transfer trajectory corresponding to the loaded Case.