blockGain
Output the product of a gain value with the input signal
Information
This block computes output y as
product of gain k with the
input u. Optionally, the input u can be processed conjugate complex, when parameter useConjugateInput is true. Depending on useConjugateInput either the original or the conjugate complex input signal are processed.
y = k * (if useConjugateInput then Modelica.ComplexMath.conj(u) else u);
Example: If useConjugateInput = true and k = 2 the output signal y = 2 * Modelica.ComplexMath.conj(u).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Complex | k | Gain value multiplied with input signal | |
| Boolean | useConjugateInput | false | If true, input is processed conjugate complex |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.ComplexInput | u | Input signal connector | |
| Interfaces.ComplexOutput | y | Output signal connector |