ClipProcessTime

Limit any time input to be no smaller than dt

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The global parameter modelSettings.dt gives the smallest possible average duration for any explicitly modeled process within a model (e.g., the shortest possible delay time). The time input u (usually a duration) will thus be clipped so that the output y will never be smaller than dt.

Implementation

In the default setting (strict = true) in the Advanced tab no events will be generated:

if strict then
    y = smooth(0, noEvent(if u < modelSettings.dt then modelSettings.dt else u));
  else
    y = smooth(0, if u < modelSettings.dt then modelSettings.dt else u);
  end if;

See also

ClipZeroIfNegative

Parameters (1)

strict

Value: true

Type: Boolean

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

Connectors (2)

y

Type: RealOutput

Description: Output signal

u

Type: RealInput

Description: Input

Components (1)

modelSettings

Type: ModelSettings

Description: Setting important global variables within a model

Used in Components (4)

DelayN

BusinessSimulation.Stocks

Material delay of n-th Order

Oven

BusinessSimulation.Stocks

Batch processing of inflow (aka batch delay)

Decay

BusinessSimulation.Flows.Unidirectional

Draining a stock with a given average residence time

Smooth

BusinessSimulation.Converters.DiscreteDelay

First-order exponential smooth

Revisions

  • Updated in v2.0.0