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

TypeNameDefaultDescription
Realk1+1Gain for input u1
Realk2+1Gain for input u2

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputu1Connector of Real input signal 1
Buildings.Controls.OBC.CDL.Interfaces.RealInputu2Connector of Real input signal 2
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyConnector 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.