fastga_he.models.performances.payload_range.mission_range_from_fuel module
- class fastga_he.models.performances.payload_range.mission_range_from_fuel.OperationalMissionVectorWithTargetFuel(**kwargs)[source]
Bases:
OperationalMissionVectorAllows to compute the mission but instead of setting the target range to achieve, have the aircraft fly as long as there is fuel in the tanks. Actually, have the aircraft fly as long as the fuel in one of the tanks is below a certain value
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
- class fastga_he.models.performances.payload_range.mission_range_from_fuel.DistanceToTargetFuel(**kwargs)[source]
Bases:
ImplicitComponentStore some bound methods so we can detect runtime overrides.
- setup_partials()[source]
Declare partials.
This is meant to be overridden by component classes. All partials should be declared here since this is called after all size/shape information is known for all variables.
- apply_nonlinear(inputs, outputs, residuals, discrete_inputs=None, discrete_outputs=None)[source]
Compute residuals given inputs and outputs.
The model is assumed to be in an unscaled state.
- Parameters:
inputs (Vector) – Unscaled, dimensional input variables read via inputs[key].
outputs (Vector) – Unscaled, dimensional output variables read via outputs[key].
residuals (Vector) – Unscaled, dimensional residuals written to via residuals[key].
discrete_inputs (dict or None) – If not None, dict containing discrete input values.
discrete_outputs (dict or None) – If not None, dict containing discrete output values.