Package Modelica.​ComplexBlocks.​Sources
Library of signal source blocks generating Complex signals

Information

This icon indicates a package which contains sources.

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

Package Contents

NameDescription
ComplexConstantGenerate constant signal of type Complex
ComplexExpressionSet output signal to a time varying Complex expression
ComplexRampPhasorGenerate a phasor with ramped magnitude and constant angle
ComplexRotatingPhasorGenerate a phasor with constant magnitude and constant angular velocity of type Complex
ComplexStepGenerate step signal of type Complex
LogFrequencySweepLogarithmic frequency sweep

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

Connectors

TypeNameDescription
output ComplexOutputyValue of Complex output

Block 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

TypeNameDefaultDescription
Complexk Constant output value

Connectors

TypeNameDescription
output ComplexOutputyConnector of Complex output signal

Block 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 Modelica.​ComplexBlocks.​Interfaces.​ComplexSignalSource (Base class for continuous signal source).

Parameters

TypeNameDefaultDescription
ComplexheightComplex(1)Height of step
ComplexoffsetComplex(0)Offset of output signal y
TimestartTime0Output y = offset for time < startTime

Connectors

TypeNameDescription
output ComplexOutputyConnector of Complex output signal

Block 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

TypeNameDefaultDescription
Realmagnitude1Magnitude of complex phasor
AngularVelocityw1Constant angular velocity of complex phasor
Anglephi00Initial angle of complex phasor at time = 0

Connectors

TypeNameDescription
output ComplexOutputyConnector of Complex output signal

Block 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

TypeNameDefaultDescription
Realmagnitude1 Magnitude of complex phasor at startTime
Realmagnitude2 Magnitude of complex phasor at startTime+duration
BooleanuseLogRampfalseRamp appears linear on a logarithmic scale, if true
Anglephi Angle of complex phasor
TimestartTime0Start time of frequency sweep
Timeduration Duration of ramp (= 0.0 gives a Step)

Connectors

TypeNameDescription
output ComplexOutputyConnector of Complex output signal

Block 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

TypeNameDefaultDescription
RealwMin Start frequency
RealwMax End frequency
TimestartTime0Start time of frequency sweep
Timeduration Duration of ramp (= 0.0 gives a Step)

Connectors

TypeNameDescription
output RealOutputyConnector of Real output signal

Generated 2018-12-12 12:09:58 EST by MapleSim.