fastga_he.models.aerodynamics.components.cd0_power_train module
- class fastga_he.models.aerodynamics.components.cd0_power_train.Cd0PowerTrain(**kwargs)[source]
Bases:
ExplicitComponentThis is a component to do the interfacing of the computation of the CD0 in the power train with the OAD process. Despite its name inherited from FAST-OAD_CS23 this is indeed the CD0 of the power train an not just the nacelle.
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.