fastoad.models.performances.mission.openmdao.mission module
FAST-OAD model for mission computation.
- class fastoad.models.performances.mission.openmdao.mission.OMMission(**kwargs)[source]
Bases:
CycleGroup
,BaseMissionComp
,NeedsOWE
Computes a mission as specified in mission input file.
Set the solvers to nonlinear and linear block Gauss–Seidel by default.
- setup()[source]
Build this group.
This method should be overidden by your Group’s method. The reason for using this method to add subsystem is to save memory and setup time when using your Group while running under MPI. This avoids the creation of systems that will not be used in the current process.
You may call ‘add_subsystem’ to add systems to this group. You may also issue connections, and set the linear and nonlinear solvers for this group level. You cannot safely change anything on children systems; use the ‘configure’ method instead.
- Available attributes:
name pathname comm options
- default_linear_solver = 'om.DirectSolver'
- default_nonlinear_solver = 'om.NonlinearBlockGS'
- default_solver_options = {'linear_solver_options': {}, 'nonlinear_solver_options': {'iprint': 0, 'maxiter': 30, 'rtol': 0.0001}}
- use_solvers_by_default = False
- class fastoad.models.performances.mission.openmdao.mission.SpecificBurnedFuelComputation(**kwargs)[source]
Bases:
ExplicitComponent
Computation of specific burned fuel (mission fuel / payload / mission range).
Store some bound methods so we can detect runtime overrides.
- property range_variable
Name of range variable.
- property burned_fuel_variable
Name of burned fuel variable.
- property specific_burned_fuel_variable
Name of specific burned fuel variable (mission fuel / payload / mission range).
- property payload_variable
Name of payload variable.
- compute(inputs, outputs, discrete_inputs=None, discrete_outputs=None)[source]
Compute outputs given inputs. The model is assumed to be in an unscaled state.
An inherited component may choose to either override this function or to define a compute_primal function.
- Parameters:
inputs (Vector) – Unscaled, dimensional input variables read via inputs[key].
outputs (Vector) – Unscaled, dimensional output variables read via outputs[key].
discrete_inputs (dict-like or None) – If not None, dict-like object containing discrete input values.
discrete_outputs (dict-like or None) – If not None, dict-like object containing discrete output values.