MaxPercentageIncrease model

Requirements.Examples.Elementary.ChecksInSlidingWindow.MaxPercentageIncrease  ยท source

Icon of MaxPercentageIncrease

Example for MaxPercentageIncrease (in every sliding time window, the increase of the input is limited)

Extends Modelica.Icons.Example

Using sliding time window check block MaxPercentageIncrease as

results in

simulation result

The signal is a piecewise linear table: 20 until 2 s, 24 at 4 s, 27 at 6 s and 28 from 8 s on. maxIncrease1 requires that the increase of the input within every sliding window of window = 2 s is at most upperPercentageLimit = 10 % of the value at the start of the window. The rise from 20 to 24 between 2 s and 4 s (20 %) exceeds the limit, the rise from 27 to 28 between 6 s and 8 s (about 3.7 %) does not.

Components and variables

NameTypeDescription
signalModelica.Blocks.Sources.CombiTimeTablePiecewise linear signal rising from 20 to 28 between 2 s and 8 s
maxIncrease1Requirements.ChecksInSlidingWindow.MaxPercentageIncreaseIn every 2 s window, the increase of the signal may be at most 10 %