blockAdd

Output the sum of the two inputs

Extends from Interfaces.ComplexSI2SO (2 Single Input / 1 Single Output continuous control block).

Information

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

y = k1*u1Internal + k2*u2Internal;

Example parameters:

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

result in the following equation:

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

Parameters

TypeNameDefaultDescription
BooleanuseConjugateInput1 (from ComplexSI2SO)falseIf true, input 1 is processed conjugate complex
BooleanuseConjugateInput2 (from ComplexSI2SO)falseIf true, input 2 is processed conjugate complex
Complexk1Complex(1, 0)Gain of input 1
Complexk2Complex(1, 0)Gain of input 2

Connectors

TypeNameDefaultDescription
ComplexInputu1 (from ComplexSI2SO)Connector of Complex input signal 1
ComplexInputu2 (from ComplexSI2SO)Connector of Complex input signal 2
ComplexOutputy (from ComplexSI2SO)Connector of Complex output signal