blockEasingRamp

Generate ramp signal with smooth curves in/out of ramp

Extends from Modelica.Blocks.Interfaces.SignalSource (Base class for continuous signal source).

Information

The Real output y is a ramp signal with circular easing into and out of the ramp:

Ramp.png

If parameter duration is set to 0.0, the limiting case of a Step signal is achieved.

If curvature is set to 0.0 then the exact behavior of Modelica.Blocks.Sources.Ramp is achieved.

If curvature is set to 1.0 then the there is circular easing into and out of the change in height with no linear ramp.

Parameters

TypeNameDefaultDescription
Realheight1Height of ramps
Modelica.Units.SI.TimedurationDuration of ramp (= 0.0 gives a Step)
Realoffset (from SignalSource)0Offset of output signal y
SI.TimestartTime (from SignalSource)0Output y = offset for time < startTime
Realcurvature0.5Fraction of maximum possible corner curvature from 0 to <1.0. Can go higher if use_RampSlope=true
Booleanuse_RampSlopefalse=true to hold slope = height/duration (i.e., shifts start to before startTime)

Connectors

TypeNameDefaultDescription
RealOutputy (from SO)Connector of Real output signal