WOLFRAM SYSTEM MODELER

Sum

Output the sum of the elements of the input vector

Wolfram Language

In[1]:=
SystemModel["Modelica.ComplexBlocks.ComplexMath.Sum"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This blocks computes output y as sum of the elements of the input signal vector u:

y = u[1] + u[2] + ...;

Example:

  parameter:   nin = 3;

results in the following equations:

  y = u[1] + u[2] + u[3];

Parameters (3)

nin

Value: 1

Type: Integer

Description: Number of inputs

useConjugateInput

Value: fill(false, nin)

Type: Boolean[nin]

Description: If true, inputs are processed conjugate complex

k

Value: fill(Complex(1, 0), nin)

Type: Complex[nin]

Description: Optional: sum coefficients

Connectors (2)

u

Type: ComplexInput[nin]

Description: Connector of Complex input signals

y

Type: ComplexOutput

Description: Connector of Complex output signal

Components (2)

uInternal

Type: Complex[nin]

Description: Equals either u or conjugate complex input u if useComplexInput = true

k

Type: Complex[nin]

Description: Optional: sum coefficients

Used in Components (1)

PowerSensor

Modelica.Electrical.QuasiStatic.Polyphase.Sensors

Power sensor