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:
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | height | 1 | Height of ramps |
| Modelica.Units.SI.Time | duration | Duration of ramp (= 0.0 gives a Step) | |
| Real | offset (from SignalSource) | 0 | Offset of output signal y |
| SI.Time | startTime (from SignalSource) | 0 | Output y = offset for time < startTime |
| Real | curvature | 0.5 | Fraction of maximum possible corner curvature from 0 to <1.0. Can go higher if use_RampSlope=true |
| Boolean | use_RampSlope | false | =true to hold slope = height/duration (i.e., shifts start to before startTime) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | Connector of Real output signal |