blockMaxIncrease

In every sliding time window, the increase of the input is limited

Information

Syntax

increaseLimited = MaxIncrease(window=..., upperLimit=...).y;

Description

In any (sliding) time window of length window, the increase of input u is limited by parameter upperLimit, that is

increase(t) = u(t) - u(t-window)
       y(t) = increase(t) ≤ upperLimit

Whenever this property is fulfilled, Boolean output y = true, otherwise y = false:

Hereby it is assumed that u(t-window) = u(t0) for t0 ≤ t < t0 + window, where t0 is the start time of the simulation.

Example

The property is demonstrated with the following example calling the block as:

results in

simulation result

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TimewindowLength of sliding time window (> 0)
RealupperLimitIn sliding time window, increase <= upperLimit of input u required

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputy= true if increase <= upperLimit
Modelica.Blocks.Interfaces.RealOutputincreaseIncrease of the input signal in the sliding time window
Modelica.Blocks.Interfaces.RealInputuReal input signal