Modelica.Clocked.RealSignals.TimeBasedSources

Package of signal source blocks generating clocked simulation time based Real signals

Information

This package provides source components akin to the blocks provided in Modelica.Blocks.Sources, but with the difference that they provide a clocked output signal.

As an effect it is not necessary to use an intermediate Sample block if the output signal is connected to a system that requires a clocked input signal. Therefore, it it can be slightly more convenient to use the blocks provided in this package than to use the blocks offered by Modelica.Blocks.Sources (since one does not need to add an additional Sample block for the transition from a continuous time signal to a clocked signal).

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

Package Content

Name Description
Modelica.Clocked.RealSignals.TimeBasedSources.Step Step Generate step signal of type Real
Modelica.Clocked.RealSignals.TimeBasedSources.Ramp Ramp Generate ramp signal
Modelica.Clocked.RealSignals.TimeBasedSources.Sine Sine Generate sine signal

Modelica.Clocked.RealSignals.TimeBasedSources.Step Modelica.Clocked.RealSignals.TimeBasedSources.Step

Generate step signal of type Real

Information

The block is similar to the block in Modelica.Blocks.Sources.Step, but adapted to work in clocked partitions (by internal sampling of the continuous time variable).

The Real output y is a step signal:

Step.png

Example

See model Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.

Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).

Parameters

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

Connectors

NameDescription
yConnector of clocked, Real output signal

Modelica.Clocked.RealSignals.TimeBasedSources.Ramp Modelica.Clocked.RealSignals.TimeBasedSources.Ramp

Generate ramp signal

Information

The block is similar to the block in Modelica.Blocks.Sources.Ramp, but adapted to work in clocked partitions (by internal sampling of the continuous time variable).

The Real output y is a ramp signal:

Ramp.png

Example

See model Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.

Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).

Parameters

NameDescription
heightHeight of ramps
durationDurations of ramp [s]
offsetOffset of output signal
startTimeOutput = offset for time < startTime [s]

Connectors

NameDescription
yConnector of clocked, Real output signal

Modelica.Clocked.RealSignals.TimeBasedSources.Sine Modelica.Clocked.RealSignals.TimeBasedSources.Sine

Generate sine signal

Information

The block is similar to the block in Modelica.Blocks.Sources.Sine, but adapted to work in clocked partitions (by internal sampling of the continuous time variable).

The Real output y is a sine signal:

Sine.png

Example

See model Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.

Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).

Parameters

NameDescription
amplitudeAmplitude of sine wave
fFrequency of sine wave [Hz]
phasePhase of sine wave [rad]
offsetOffset of output signal
startTimeOutput = offset for time < startTime [s]

Connectors

NameDescription
yConnector of clocked, Real output signal
Automatically generated Thu Oct 1 16:07:36 2020.