FAST-OAD
v1.3.5
  • License
  • Authors
  • Citation
  • Changelog
  • General documentation
  • API Reference
    • fastoad package
      • Subpackages
        • fastoad.cmd package
        • fastoad.configurations package
        • fastoad.gui package
        • fastoad.io package
        • fastoad.model_base package
        • fastoad.models package
        • fastoad.module_management package
        • fastoad.openmdao package
      • Submodules
      • Module contents
FAST-OAD
  • »
  • fastoad »
  • fastoad package »
  • fastoad.models package »
  • fastoad.models.performances package »
  • fastoad.models.performances.mission package »
  • fastoad.models.performances.mission.openmdao package »
  • fastoad.models.performances.mission.openmdao.link_mtow module
  • Edit on GitHub

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)

setup()[source]

Declare inputs and outputs.

Available attributes:

name pathname comm options

Previous Next

© Copyright 2021, ONERA & ISAE-SUPAERO. Revision 71217b33.

Built with Sphinx using a theme provided by Read the Docs.