Clip

Clips input signal so that it remains within a given interval

Diagram

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.ClipClipProcessTimeZeroIfNegative 

Parameters (6)

maxValue

Value: inf

Type: Real

Description: Maximum value (default = infinity)

minValue

Value: -maxValue

Type: Real

Description: Minimum value (default = - infinity)

hasConstantLimits

Value: true

Type: Boolean

Description: = true, if the limits are constant

strict

Value: true

Type: Boolean

Description: = true, if strict limits with noEvent(..) (constantLimiter.strict)

homotopyType

Value: LimiterHomotopy.Linear

Type: LimiterHomotopy

Description: Simplified model for homotopy-based initialization (constantLimiter.homotopyType)

variableHomotopyType

Value: VariableLimiterHomotopy.Linear

Type: VariableLimiterHomotopy

Description: Simplified model for homotopy-based initialization (variableLimiter.homotopyType)

Connectors (4)

y

Type: RealOutput

Description: Output signal

u

Type: RealInput

Description: Input

u_max

Type: RealInput

Description: Upper limit input

u_min

Type: RealInput

Description: Lower limit input

Components (2)

variableLimiter

Type: VariableLimiter

Description: Clip input to variable limits

constantLimiter

Type: Limiter

Description: Clip input to constant limits

Used in Examples (1)

DelayInformation

BusinessSimulation.Converters.DiscreteDelay

Pipeline information delay with awareness

Used in Components (7)

Conveyor

BusinessSimulation.Stocks

Conveyor delay (aka pipeline ~) with variable delay time

PureDelay

BusinessSimulation.Stocks

Delay the flow of material for a fixed (but variable) delay time

DelayFixed

BusinessSimulation.Converters.DiscreteDelay

Pipeline information delay without awareness

CloseGap

BusinessSimulation.MoleculesOfStructure.Policy

Determine the rate of flow (action) to close a gap between a quantity and its desired value

FirstOrderStockAdjustment

BusinessSimulation.MoleculesOfStructure.Policy

Maintain a stock at a desired level

EffectOfFatigue

BusinessSimulation.MoleculesOfStructure.Blocks

Modeling the influence of excessive workloads on productivity or quality

ExperienceCurve

BusinessSimulation.MoleculesOfStructure.Blocks

Unit cost degression due to gaining experience