Library of signal source blocks generating Complex signals
Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).
Name | Description |
---|---|
ComplexExpression | Set output signal to a time varying Complex expression |
ComplexConstant | Generate constant signal of type Complex |
ComplexStep | Generate step signal of type Complex |
ComplexRotatingPhasor | Generate a phasor with constant magnitude and constant angular velocity of type Complex |
ComplexRampPhasor | Generate a phasor with ramped magnitude and constant angle |
LogFrequencySweep | Logarithmic frequency sweep |
Set output signal to a time varying Complex expression
The (time varying) Complex output signal of this block can be defined in its parameter menu via variable y. The purpose is to support the easy definition of Complex expressions in a block diagram. Note, that "time" is a built-in variable that is always accessible and represents the "model time" and that Variable y is both a variable and a connector.
Name | Description |
---|---|
Time varying output signal | |
y | Value of Complex output |
Name | Description |
---|---|
Time varying output signal | |
y | Value of Complex output |
Generate constant signal of type Complex
The Complex output y is a constant signal:
Extends from Modelica.ComplexBlocks.Interfaces.ComplexSO (Single Output continuous control block).
Name | Description |
---|---|
k | Constant output value |
Name | Description |
---|---|
y | Connector of Complex output signal |
Generate step signal of type Complex
The Complex output y is a step signal (of real and imaginary part):
Extends from ComplexBlocks.Interfaces.ComplexSignalSource (Base class for continuous signal source).
Name | Description |
---|---|
height | Height of step |
offset | Offset of output signal y |
startTime | Output y = offset for time < startTime [s] |
Name | Description |
---|---|
y | Connector of Complex output signal |
Generate a phasor with constant magnitude and constant angular velocity of type Complex
The output y is a complex phasor with constant magnitude, spinning with constant angular velocity.
Extends from Modelica.ComplexBlocks.Interfaces.ComplexSO (Single Output continuous control block).
Name | Description |
---|---|
magnitude | Magnitude of complex phasor |
w | Constant angular velocity of complex phasor [rad/s] |
phi0 | Initial angle of complex phasor at time = 0 [rad] |
Name | Description |
---|---|
y | Connector of Complex output signal |
Generate a phasor with ramped magnitude and constant angle
The output y is a complex phasor with constant angle and a ramped magnitude.
In case of useLogRamp == false
the magnitude ramp is linear:
In case of useLogRamp == true
the magnitude ramp appears linear on a logarithmic scale:
Extends from Modelica.ComplexBlocks.Interfaces.ComplexSO (Single Output continuous control block).
Name | Description |
---|---|
magnitude1 | Magnitude of complex phasor at startTime |
magnitude2 | Magnitude of complex phasor at startTime+duration |
useLogRamp | Ramp appears linear on a logarithmic scale, if true |
phi | Angle of complex phasor [rad] |
startTime | Start time of frequency sweep [s] |
duration | Duration of ramp (= 0.0 gives a Step) [s] |
Name | Description |
---|---|
y | Connector of Complex output signal |
Logarithmic frequency sweep
The output y
performs a logarithmic frequency sweep.
The logarithm of frequency w
performs a linear ramp from log10(wMin)
to log10(wMax)
.
The output is the decimal power of this logarithmic ramp.
For time < startTime
the output is equal to wMin
.
For time > startTime+duration
the output is equal to wMax
.
Extends from Modelica.Blocks.Interfaces.SO (Single Output continuous control block).
Name | Description |
---|---|
wMin | Start frequency |
wMax | End frequency |
startTime | Start time of frequency sweep [s] |
duration | Duration of ramp (= 0.0 gives a Step) [s] |
Name | Description |
---|---|
y | Connector of Real output signal |