Buildings.Obsolete.Controls.OBC.CDL.Integers
Package with obsolete models of the Control Description Language
Information
Package that contains obsolete components that were part of the OpenBuildingControl (OBC) package Buildings.Controls.OBC.CDL.Integers.
Extends from Modelica.Icons.Package (Icon for standard packages).
Package Content
Name | Description |
---|---|
Add | Output the sum of the two inputs |
Validation | Collection of validation models |
Buildings.Obsolete.Controls.OBC.CDL.Integers.Add
Output the sum of the two inputs
Information
Block that outputs y
as the weighted sum of the
two Integer input signals u1
and u2
,
y = k1*u1 + k2*u2;
where k1
and k2
are Integer parameters.
Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Integer | k1 | +1 | Gain of upper input |
Integer | k2 | +1 | Gain of lower input |
Connectors
Type | Name | Description |
---|---|---|
input IntegerInput | u1 | Connector of Integer input signal 1 |
input IntegerInput | u2 | Connector of Integer input signal 2 |
output IntegerOutput | y | Connector of Integer output signal |
Modelica definition
block Add "Output the sum of the two inputs"
extends Modelica.Icons.ObsoleteModel;
parameter Integer k1=+1
"Gain of upper input";
parameter Integer k2=+1
"Gain of lower input";
Buildings.Controls.OBC.CDL.Interfaces.IntegerInput u1
"Connector of Integer input signal 1";
Buildings.Controls.OBC.CDL.Interfaces.IntegerInput u2
"Connector of Integer input signal 2";
Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput y
"Connector of Integer output signal";
equation
y=k1*u1+k2*u2;
end Add;