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

TypeNameDefaultDescription
ComplexkGain value multiplied with input signal
BooleanuseConjugateInputfalseIf true, input is processed conjugate complex

Connectors

TypeNameDefaultDescription
Interfaces.ComplexInputuInput signal connector
Interfaces.ComplexOutputyOutput signal connector