blockClip
Clips input signal so that it remains within a given interval
Extends from Interfaces.PartialConverters.SISO (Converter with single input and single output).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The input u will be clipped to make sure that it is within the interval [minValue, maxValue] before it is given as output y. Alternatively, variable inputs can be used to set the limits (hasConstantLimits = false).
Implementation
The component internally uses the →Limiter and the →VariableLimiter from the Modelica Standard Library.
See also
Functions.clip, Vector.Clip, ClipProcessTime, ZeroIfNegative
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | maxValue | inf | Maximum value (default = infinity) |
| Real | minValue | -maxValue | Minimum value (default = - infinity) |
| Structural Parameters | |||
| Boolean | hasConstantLimits | true | = true, if the limits are constant |
| Advanced | |||
| Boolean | strict | true | = true, if strict limits with noEvent(..) (constantLimiter.strict) |
| LimiterHomotopy | homotopyType | LimiterHomotopy.Linear | Simplified model for homotopy-based initialization (constantLimiter.homotopyType) |
| VariableLimiterHomotopy | variableHomotopyType | VariableLimiterHomotopy.Linear | Simplified model for homotopy-based initialization (variableLimiter.homotopyType) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealInput | u (from SISO) | Input | |
| Interfaces.Connectors.RealInput | u_max | Upper limit input | |
| Interfaces.Connectors.RealInput | u_min | Lower limit input |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) |