Add3

Output the sum of the three inputs

Information

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

This blocks computes output y as sum of the three input signals u1, u2 and u3. Optionally, inputs u1 and u2 and u3 can be processed conjugate complex, when parameters useConjugateInput1 and useConjugateInput2 and useConjugateInput3 are true, respectively.

y = k1*(if useConjugateInput1 then Modelica.ComplexMath.conj(u1) else u1)
  + k2*(if useConjugateInput2 then Modelica.ComplexMath.conj(u2) else u2)
  + k3*(if useConjugateInput3 then Modelica.ComplexMath.conj(u3) else u3);

Example parameters:

  • k1 = +2,
  • k2 = -3,
  • k3 = +1,
  • useConjugateInput1 = true,
  • useConjugateInput2 = false
  • useConjugateInput3 = false

result in the following equation:

y = 2 * Modelica.ComplexMath.conj(u1) - 3 * u2 + u3;

Parameters (6)

k1

Value: Complex(1, 0)

Type: Complex

Description: Gain of upper input

useConjugateInput1

Value: false

Type: Boolean

Description: If true, input 1 is processed conjugate complex

k2

Value: Complex(1, 0)

Type: Complex

Description: Gain of middle input

useConjugateInput2

Value: false

Type: Boolean

Description: If true, input 2 is processed conjugate complex

k3

Value: Complex(1, 0)

Type: Complex

Description: Gain of lower input

useConjugateInput3

Value: false

Type: Boolean

Description: If true, input 3 is processed conjugate complex

Connectors (4)

u1

Type: ComplexInput

Description: Connector 1 of Complex input signals

u2

Type: ComplexInput

Description: Connector 2 of Complex input signals

u3

Type: ComplexInput

Description: Connector 3 of Complex input signals

y

Type: ComplexOutput

Description: Connector of Complex output signals

Components (3)

k1

Type: Complex

Description: Gain of upper input

k2

Type: Complex

Description: Gain of middle input

k3

Type: Complex

Description: Gain of lower input