modelDelayN

Material delay of n-th Order

Extends from Icons.DelayN (Icon for DelayN), Interfaces.Basics.GenericStock_Special (Generic Stock with internal dynamics).

Information

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

The DelayN is a →MaterialStock with inherent dynamic behavior that will result in a delay—which may have a constant (delayTime) or a variable delay time (u). Internally a material delay of order n is made up of a sequence of n first-order delays (→Decay ) each having a delay time of delayTime/n.

To better grasp the behavior of a DelayN, it helps to be aware of the fact, that given a single pulse input (e.g., a Dirac delta function) as inflow to a DelayN with constant delay time, its outflow will correspond to an Exponential distribution for n = 1 and more generally to an Erlang distribution of order k = n for n ≥ 1. In other words, the time of residence within the stock is distributed according to an Erlang distribution with the mean residence time corresponding to the delay time and a diminishing variance as n increases—in the limit, as n approaches infinity, the DelayN will be equivalent to the →PureDelay (aka pipeline delay). For more detail, see Sterman [3, Chapter 11].

Notes

  • The DelayN can only be filled (not drained) via its inflow stock port.
  • The parameter init in the Advanced tab allows to select →InitializationOptions:

    • FixedValue (default) will use the parameter initialValue to determine the initial value for all n hidden states as initialValue/n.

    • SteadyState will use Little's Law to determine the equilibrium start value for all n hidden states as inflow.rate * delayTime / n

    • Free there will be no initial equation and thus the solver is free in solving the initial value problem using the FixedValue solutions as startValue.

See also

MaterialStock, PureDelay, Converters.DiscreteDelay

Parameters

TypeNameDefaultDescription
OutputTypeinitialValue0Initial stock
TimedelayTime1Constant time of delay (optional)
Advanced
InitializationOptionsinit (from GenericStock_Special)InitializationOptions.FixedValueProvide InitializationOptions (Free, FixedValue, SteadyState)
Structural Parameters
BooleanhasStockInfoOutput (from GenericStock_Special)false= true, if a StockInfoOutput should be added to the stock
Integern3Order of the exponential delay
BooleanhasConstantDelayTimetrue= true, if DelayTime is to be set by a constant parameter

Connectors

TypeNameDefaultDescription
StockPortinflow (from GenericStock_Special)Inflow port of the stock
StockPort_Specialoutflow (from GenericStock_Special)Special outflow port of the stock (stock sets rate)
StockInfoOutputy_stockInfo (from GenericStock_Special)Optional StockInfoOutput
Interfaces.Connectors.RealInputuDelay time input (optional)

Components

TypeNameDefaultDescription
RealOutputy (from ThreeSO)Level or rate information
RealOutputy1 (from ThreeSO)Level or rate information
RealOutputy2 (from ThreeSO)Level or rate information
ModelSettingsmodelSettings