blockMultiSum

Sum of Reals, y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n]

Information

Block that outputs

y = ∑i=1n ki   ui,

where k is a parameter with n elements and u is an input of the same length. The dimension of u can be enlarged by drawing an additional connection line. The connection is automatically connected to this new free index.

If no connection to the input connector u is present, the output is y=0.

See Buildings.Controls.OBC.CDL.Reals.Validation.MultiSum for an example.

Parameters

TypeNameDefaultDescription
Integernin0Number of input signals
Real[nin]kfill(1, nin)Input gains

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInput[nin]uInput to multiplied by gain and then added
Buildings.Controls.OBC.CDL.Interfaces.RealOutputySum of inputs times gains

Revisions

  • March 2, 2020, by Michael Wetter:
    Changed icon to display dynamically the output value.
  • June 28, 2017, by Jianjun Hu:
    First implementation, based on the implementation of the Modelica Standard Library. This is for Buildings, issue 825.