blockBaseLimiterWithLag

Base block of limiter that enforces saturations only after they were violated without interruption during a given amount of time
Diagram of BaseLimiterWithLag

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

There is no lag when switching from saturated to non-saturated mode.

The Boolean variable initSaturatedMax prevents tUMaxReached from being reset at initial time if the simulation starts in saturated mode. Thus, tUMaxReached is equal to minus infinity i.e. it is assumed that UMax was crossed long before the simulation.

The Boolean variable initSaturatedMin performs the same function with respect to tUMinReached and UMin.

Parameters

TypeNameDefaultDescription
Types.TimeLagMaxTime lag before taking action when going above UMax
Types.TimeLagMinTime lag before taking action when going below UMin
RealUMaxMaximum allowed u
RealUMinMinimum allowed u
Types.TimetUMaxReached0Initial time when u went above UMax
Types.TimetUMinReached0Initial time when u went below UMin
Realu0Initial input
Realy0Initial output

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuInput signal connector
Modelica.Blocks.Interfaces.RealOutputyOutput signal connector

Components

TypeNameDefaultDescription
Types.TimetUMaxReachedLast time when u went above UMax
Types.TimetUMinReachedLast time when u went below UMin
BooleaninitSaturatedMaxIf true, simulation starts in max saturated mode
BooleaninitSaturatedMinIf true, simulation starts in min saturated mode