fastga_he.models.loops.wing_area_component.wing_area_cl_dep_equilibrium module
Computation of wing area update and constraints based on the equilibrium of the aircraft
- class fastga_he.models.loops.wing_area_component.wing_area_cl_dep_equilibrium.UpdateWingAreaLiftDEPEquilibrium(**kwargs)[source]
Bases:
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.
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.
- class fastga_he.models.loops.wing_area_component.wing_area_cl_dep_equilibrium.ConstraintWingAreaLiftDEPEquilibrium(**kwargs)[source]
Bases:
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.
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.
- fastga_he.models.loops.wing_area_component.wing_area_cl_dep_equilibrium.compute_wing_area(inputs, propulsion_id, pt_file_path, control_parameter_list, sort_component) float[source]
- fastga_he.models.loops.wing_area_component.wing_area_cl_dep_equilibrium.zip_equilibrium_input(propulsion_id, pt_file_path, sort_component, control_parameter_list=None)[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.
pt_file_path – Path to the powertrain file.
sort_component – Option for powertrain component sorting.
control_parameter_list – a list of control parameters to rename.
- 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.