blockVariableLimiter

Limit the range of a signal with variable limits

Extends from Interfaces.SISO (Single Input Single Output continuous control block).

Information

The Limiter block passes its input signal as output signal as long as the input is within the upper and lower limits specified by the two additional inputs limit1 and limit2. If this is not the case, the corresponding limit is passed as output.

The parameter homotopyType in the Advanced tab specifies the simplified behaviour if homotopy-based initialization is used:

  • NoHomotopy: the actual expression with limits is used
  • Linear: a linear behaviour y = u is assumed (default option)
  • Fixed: it is assumed that the output is fixed at the value ySimplified

If it is known a priori in which region the input signal will be located, this option can help a lot by removing one strong nonlinearity from the initialization problem.

Parameters

TypeNameDefaultDescription
Advanced
Booleanstrictfalse= true, if strict limits with noEvent(..)
RealySimplified0Fixed value of output in simplified model
Initialization
Types.VariableLimiterHomotopyhomotopyTypeModelica.Blocks.Types.VariableLimiterHomotopy.LinearSimplified model for homotopy-based initialization

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal
Interfaces.RealInputlimit1Connector of Real input signal used as maximum of input u
Interfaces.RealInputlimit2Connector of Real input signal used as minimum of input u