max_min_comp.py
- class openconcept.utilities.math.max_min_comp.MaxComp(**kwargs)
Bases:
ExplicitComponent
Takes in a vector and outputs a scalar that is the value of the maximum element in the input.
- Inputs:
array (any type that supports comparison (<, >, etc.)) – Array of which the maximum is found (vector)
- Outputs:
max (same as data type of input array) – The maximum value of the input array (scalar)
- Options:
num_nodes (int) – Length of all inputs and outputs (scalar, default 1)
units (string) – OpenMDAO-style units of input and output
- class openconcept.utilities.math.max_min_comp.MinComp(**kwargs)
Bases:
ExplicitComponent
Takes in a vector and outputs a scalar that is the value of the minimum element in the input.
- Inputs:
array (any type that supports comparison (<, >, etc.)) – Array of which the minimum is found (vector)
- Outputs:
min (same as data type of input array) – The minimum value of the input array (scalar)
- Options:
num_nodes (int) – Length of all inputs and outputs (scalar, default 1)
units (string) – OpenMDAO-style units of input and output