fastoad.models.performances.mission.openmdao.link_mtow module¶
OpenMDAO component for computation of sizing mission.
- class fastoad.models.performances.mission.openmdao.link_mtow.ComputeMTOW(output_name=None, input_names=None, vec_size=1, length=1, val=1.0, scaling_factors=None, **kwargs)[source]¶
Bases:
openmdao.components.add_subtract_comp.AddSubtractComp
Computes MTOW from OWE, design payload and consumed fuel in sizing mission.
Allow user to create an addition/subtracton system with one-liner.
- Parameters
output_name (str) – (required) name of the result variable in this component’s namespace.
input_names (iterable of str) – (required) names of the input variables for this system
vec_size (int) – Length of the first dimension of the input and output vectors (i.e number of rows, or vector length for a 1D vector) Default is 1
length (int) – Length of the second dimension of the input and ouptut vectors (i.e. number of columns) Default is 1 which results in input/output vectors of size (vec_size,)
scaling_factors (iterable of numeric) – Scaling factors to apply to each input. Use [1,1,…] for addition, [1,-1,…] for subtraction Must be same length as input_names Default is None which results in a scaling factor of 1 on each input (element-wise addition)
val (float or list or tuple or ndarray) – The initial value of the variable being added in user-defined units. Default is 1.0.
**kwargs (str) – Any other arguments to pass to the addition system (same as add_output method for ExplicitComponent) Examples include units (str or None), desc (str)