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
Buildings.Obsolete.Controls.OBC.CDL.Integers.Add Add Output the sum of the two inputs
Buildings.Obsolete.Controls.OBC.CDL.Integers.Validation Validation Collection of validation models

Buildings.Obsolete.Controls.OBC.CDL.Integers.Add Buildings.Obsolete.Controls.OBC.CDL.Integers.Add

Output the sum of the two inputs

Buildings.Obsolete.Controls.OBC.CDL.Integers.Add

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

TypeNameDefaultDescription
Integerk1+1Gain of upper input
Integerk2+1Gain of lower input

Connectors

TypeNameDescription
input IntegerInputu1Connector of Integer input signal 1
input IntegerInputu2Connector of Integer input signal 2
output IntegerOutputyConnector 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;