Limiter
Limit the range of a signal
Library
Modelica/Blocks/Nonlinear
Description
The Limiter block passes its input signal as output signalas long as the input is within the specified upper and lowerlimits. If this is not the case, the corresponding limits are passedas output.
The parameter homotopyType
in the Advanced tab specifies thesimplified behaviour if homotopy-based initialization is used:
NoHomotopy
: the actual expression with limits is usedLinear
: a linear behaviour y = u is assumed (default option)UpperLimit
: it is assumed that the output is stuck at the upper limit u = uMaxLowerLimit
: it is assumed that the output is stuck at the lower limit u = uMin
If it is known a priori in which region the input signal will be located, this option can helpa lot by removing one strong nonlinearity from the initialization problem.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_uMax | uMax | Upper limits of input signals | Scalar | |
mo_uMin | uMin | Lower limits of input signals | Scalar | |
mo_homotopyType | homotopyType | Simplified model for homotopy-based initialization | Structure | |
mo_homotopyType/choice1 | Homotopy is not used | Number | 0 | |
mo_homotopyType/choice2 | Simplified model without limits | Number | 0 | |
mo_homotopyType/choice3 | Simplified model fixed at upper limit | Number | 0 | |
mo_homotopyType/choice4 | Simplified model fixed at lower limit | Number | 0 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_strict | strict | = true, if strict limits with noEvent(..) | Scalar | true |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_limitsAtInit | limitsAtInit | Has no longer an effect and is only kept for backwards compatibility (the implementation uses now the homotopy operator) | Scalar | true |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | 'simplifiedExpr' | |
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signal | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |