modelAdd2
Output the sum of the two real inputs (graphics can be changed)
Information
This blocks computes output y as sum of the two input signals u1 and u2:
y = u1 + u2;
The second input can be obtained either from left side of block or from bottom. The corresponding connectors are u2 or u2b, respectively.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | fromLeft | true | True, if second input is left (else below) |
| Integer | n | 1 | Number of inputs = number of outputs |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[n] | u1 | ||
| Modelica.Blocks.Interfaces.RealInput[n] | u2 | ||
| Modelica.Blocks.Interfaces.RealOutput[n] | y | ||
| Modelica.Blocks.Interfaces.RealInput[n] | u2b |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Add[n] | add |