fastga_he.models.performances.payload_range.payload_range module
- class fastga_he.models.performances.payload_range.payload_range.ComputePayloadRange(**kwargs)[source]
Bases:
ExplicitComponentComputation of the characteristic points of the payload-range diagram. Will use the operational mission module and inputs to compute the different points.
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.performances.payload_range.payload_range.zip_op_mission_input(pt_file_path)[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:
pt_file_path – Path to the powertrain file.
- 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.