.ModelicaDEVS.SourceBlocks.Ramp

Information

The Ramp Block

Parameters:
offset signal ground value
a amplitude
ts start time (when the slope starts to rise)
tr rise time (time the signal needs to reach the upper value)
k number of outputs during the rise of the ramp (only for QSS1)


Description:

The Ramp block generates a simple ramp signal.

The easiest way of describing a ramp signal would be by a) indicating the time instance when the signal starts to rise and b) giving the slope of the trajectory. However, provided that it is not possible to indicate a slope in QSS1, the ramp trajectory has to be described by means of a piecewise constant function. To this end, it is broken into pieces, which allows the component to launch output events during the rise of the ramp signal. The number of outputs are determined by the parameter k.

For QSS2 and QSS3, on the other hand, the signal is described by means of a value and a slope, given that this possible in higher-order QSS modes.

Note that it is possible to assign a negative value to the amplitude, such that the ramp signal is mirrored at the straight line y=offset.


Generated Events (QSS1 mode):


yVal[1] yVal[2] yVal[3]
t=0 offset 0 0
t=ts+i*tr/k offset+i*a/k 0 0
i={0,1,2,...,k}



Parameter setting: offset=0
a=1
ts=1
tr=1
k=10



Generated Events (QSS2/QSS3 mode):


yVal[1] yVal[2] yVal[3]
t=0 offset 0 0
t=ts offset a/tr 0
t=ts+tr offset+a 0 0




Parameter setting: offset=0
a=1
ts=1
tr=1


Generated at 2024-04-23T18:15:56Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos