blockBaseLimiterWithLag
Base block of limiter that enforces saturations only after they were violated without interruption during a given amount of time
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
| Type | Name | Default | Description |
|---|---|---|---|
| Types.Time | LagMax | Time lag before taking action when going above UMax | |
| Types.Time | LagMin | Time lag before taking action when going below UMin | |
| Real | UMax | Maximum allowed u | |
| Real | UMin | Minimum allowed u | |
| Types.Time | tUMaxReached0 | Initial time when u went above UMax | |
| Types.Time | tUMinReached0 | Initial time when u went below UMin | |
| Real | u0 | Initial input | |
| Real | y0 | Initial output |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Input signal connector | |
| Modelica.Blocks.Interfaces.RealOutput | y | Output signal connector |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Types.Time | tUMaxReached | Last time when u went above UMax | |
| Types.Time | tUMinReached | Last time when u went below UMin | |
| Boolean | initSaturatedMax | If true, simulation starts in max saturated mode | |
| Boolean | initSaturatedMin | If true, simulation starts in min saturated mode |