Modelica.ComplexBlocks.Sources

Library of signal source blocks generating Complex signals

Information

Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).

Package Content

Name Description
Modelica.ComplexBlocks.Sources.ComplexExpression ComplexExpression Set output signal to a time varying Complex expression
Modelica.ComplexBlocks.Sources.ComplexConstant ComplexConstant Generate constant signal of type Complex
Modelica.ComplexBlocks.Sources.ComplexStep ComplexStep Generate step signal of type Complex
Modelica.ComplexBlocks.Sources.ComplexRotatingPhasor ComplexRotatingPhasor Generate a phasor with constant magnitude and constant angular velocity of type Complex
Modelica.ComplexBlocks.Sources.ComplexRampPhasor ComplexRampPhasor Generate a phasor with ramped magnitude and constant angle
Modelica.ComplexBlocks.Sources.LogFrequencySweep LogFrequencySweep Logarithmic frequency sweep

Modelica.ComplexBlocks.Sources.ComplexExpression Modelica.ComplexBlocks.Sources.ComplexExpression

Set output signal to a time varying Complex expression

Information

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.

Parameters

NameDescription
Time varying output signal
yValue of Complex output

Connectors

NameDescription
Time varying output signal
yValue of Complex output

Modelica.ComplexBlocks.Sources.ComplexConstant Modelica.ComplexBlocks.Sources.ComplexConstant

Generate constant signal of type Complex

Information

The Complex output y is a constant signal:

Constant.png

Extends from Modelica.ComplexBlocks.Interfaces.ComplexSO (Single Output continuous control block).

Parameters

NameDescription
kConstant output value

Connectors

NameDescription
yConnector of Complex output signal

Modelica.ComplexBlocks.Sources.ComplexStep Modelica.ComplexBlocks.Sources.ComplexStep

Generate step signal of type Complex

Information

The Complex output y is a step signal (of real and imaginary part):

Step.png

Extends from ComplexBlocks.Interfaces.ComplexSignalSource (Base class for continuous signal source).

Parameters

NameDescription
heightHeight of step
offsetOffset of output signal y
startTimeOutput y = offset for time < startTime [s]

Connectors

NameDescription
yConnector of Complex output signal

Modelica.ComplexBlocks.Sources.ComplexRotatingPhasor Modelica.ComplexBlocks.Sources.ComplexRotatingPhasor

Generate a phasor with constant magnitude and constant angular velocity of type Complex

Information

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).

Parameters

NameDescription
magnitudeMagnitude of complex phasor
wConstant angular velocity of complex phasor [rad/s]
phi0Initial angle of complex phasor at time = 0 [rad]

Connectors

NameDescription
yConnector of Complex output signal

Modelica.ComplexBlocks.Sources.ComplexRampPhasor Modelica.ComplexBlocks.Sources.ComplexRampPhasor

Generate a phasor with ramped magnitude and constant angle

Information

The output y is a complex phasor with constant angle and a ramped magnitude.

In case of useLogRamp == false the magnitude ramp is linear:

ComplexRampPhasorLinear.png

In case of useLogRamp == true the magnitude ramp appears linear on a logarithmic scale:

ComplexRampPhasorLog.png

Extends from Modelica.ComplexBlocks.Interfaces.ComplexSO (Single Output continuous control block).

Parameters

NameDescription
magnitude1Magnitude of complex phasor at startTime
magnitude2Magnitude of complex phasor at startTime+duration
useLogRampRamp appears linear on a logarithmic scale, if true
phiAngle of complex phasor [rad]
startTimeStart time of frequency sweep [s]
durationDuration of ramp (= 0.0 gives a Step) [s]

Connectors

NameDescription
yConnector of Complex output signal

Modelica.ComplexBlocks.Sources.LogFrequencySweep Modelica.ComplexBlocks.Sources.LogFrequencySweep

Logarithmic frequency sweep

Information

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.

LogFrequencySweep.png

Extends from Modelica.Blocks.Interfaces.SO (Single Output continuous control block).

Parameters

NameDescription
wMinStart frequency
wMaxEnd frequency
startTimeStart time of frequency sweep [s]
durationDuration of ramp (= 0.0 gives a Step) [s]

Connectors

NameDescription
yConnector of Real output signal
Automatically generated Thu Dec 19 17:19:53 2019.