blockAdd
Output the sum of the two inputs
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Information
Block that outputs y as the weighted sum of the
two input signals u1 and u2,
y = k1*u1 + k2*u2;
where k1 and k2 are parameters.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k1 | +1 | Gain for input u1 |
| Real | k2 | +1 | Gain for input u2 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u1 | Connector of Real input signal 1 | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u2 | Connector of Real input signal 2 | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Connector of Real output signal |
Revisions
-
March 2, 2020, by Michael Wetter:
Changed icon to display dynamically the output value. -
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.