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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useConjugateInput1 (from ComplexSI2SO) | false | If true, input 1 is processed conjugate complex |
| Boolean | useConjugateInput2 (from ComplexSI2SO) | false | If true, input 2 is processed conjugate complex |
| Complex | k1 | Complex(1, 0) | Gain of input 1 |
| Complex | k2 | Complex(1, 0) | Gain of input 2 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ComplexInput | u1 (from ComplexSI2SO) | Connector of Complex input signal 1 | |
| ComplexInput | u2 (from ComplexSI2SO) | Connector of Complex input signal 2 | |
| ComplexOutput | y (from ComplexSI2SO) | Connector of Complex output signal |