fastga.models.loops.wing_area_component.wing_area_cl_equilibrium module
Computation of wing area update and constraints based on the lift required in low speed conditions with an equilibrium computation.
- class fastga.models.loops.wing_area_component.wing_area_cl_equilibrium.UpdateWingAreaLiftEquilibrium(**kwargs)[source]
Bases:
openmdao.core.explicitcomponent.ExplicitComponentComputes needed wing area to reach an equilibrium at required approach speed.
Store some bound methods so we can detect runtime overrides.
- compute(inputs, outputs, discrete_inputs=None, discrete_outputs=None)[source]
Compute outputs given inputs. 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].
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.
- class fastga.models.loops.wing_area_component.wing_area_cl_equilibrium.ConstraintWingAreaLiftEquilibrium(**kwargs)[source]
Bases:
openmdao.core.explicitcomponent.ExplicitComponentComputes the difference between the lift coefficient required for the low speed conditions and the what the wing can provide while maintaining an equilibrium. Will be an equivalent lift coefficient since the maximum one cannot be computed so easily. Equivalence will be computed based on the lift equation.
Store some bound methods so we can detect runtime overrides.
- compute(inputs, outputs, discrete_inputs=None, discrete_outputs=None)[source]
Compute outputs given inputs. 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].
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.
- fastga.models.loops.wing_area_component.wing_area_cl_equilibrium.compute_wing_area(inputs, propulsion_id)[source]
- fastga.models.loops.wing_area_component.wing_area_cl_equilibrium.zip_equilibrium_input(propulsion_id)[source]
Returns a list of the variables needed for the computation of the equilibrium. Based on the submodel currently registered and the propulsion_id required.
- Parameters
propulsion_id – ID of propulsion wrapped to be used for computation of equilibrium.
- Return inputs_zip
a zip containing a list of name, a list of units, a list of shapes,
a list of shape_by_conn boolean and a list of copy_shape str.