Add

Output the sum of the two 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 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 (4)

useConjugateInput1

Value: false

Type: Boolean

Description: If true, input 1 is processed conjugate complex

useConjugateInput2

Value: false

Type: Boolean

Description: If true, input 2 is processed conjugate complex

k1

Value: Complex(1, 0)

Type: Complex

Description: Gain of input 1

k2

Value: Complex(1, 0)

Type: Complex

Description: Gain of input 2

Connectors (3)

u1

Type: ComplexInput

Description: Connector of Complex input signal 1

u2

Type: ComplexInput

Description: Connector of Complex input signal 2

y

Type: ComplexOutput

Description: Connector of Complex output signal

Components (4)

u1Internal

Type: Complex

Description: Equals either u1 or conjugate complex input u1 if useComplexInput1 = true

u2Internal

Type: Complex

Description: Equals either u2 or conjugate complex input u2 if useComplexInput2 = true

k1

Type: Complex

Description: Gain of input 1

k2

Type: Complex

Description: Gain of input 2