.BusinessSimulation.Converters.DiscreteDelay.DelayInformation

Information

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

The real output y is the real input delayed by a fixed delay time which can be constant (delayTime) or variable (u_delayTime) during the simulation.

y[t] = u[t - delayTime]

The input signal is thus effectively shifted forward in time.

During an initial period (at most as long as the initial delayTime or the maximumDelayTime when the delay time can vary over time), we need to provide information about the historical input u (e.g., the input before the start time of the simulation). The historical input can either be given by a constant value (either the initialValue or the initial input u) or by a function of time (usually a TableFunction), that will take the output connector y_lookupTime  as input and then provide the relevant historical input via the input connector u_history.

Given that the delay time may be variable, we must distinguish two situations:

Implementation

Internally a TimeInput component is used to provide the current time, starting at modelSettings.modelStartTime. At regular sampling intervals we will check whether the delayed information is more current than the stored information and update accordingly. time it was sampled (t_sampled) will be stored.

As checking for increases in the delay time can introduce a lot of events, the checks will only be done a regular time events given by the parameter samplingPeriod in the Advanced tab. 

Notes

See also

DelayFixedSmooth, SmoothNConveyor

Revisions


Generated at 2024-05-17T18:15:58Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos