Sum
Output the sum of the elements of the input vector
Library
Modelica/Blocks/Math
Description
This blocks computes output y assum of the elements of the input signal vectoru:
y = u[1] + u[2] + ...;
Example:
parameter: nin = 3; results in the following equations: y = u[1] + u[2] + u[3];
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_nin | nin | Number of inputs | Scalar | |
mo_k | k | Optional: sum coefficients | Vector |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signals | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |