blockSamplerTimeNumerical

Samples a signal at periodical time instant, computes the derivatives numerically.

Extends from ModelicaDEVS.Templates.CDBlock (Continuous single input - discrete single output block).

Information

The SamplerTimeNumerical Block

Parameters:
period length of the sampling intervals
start start time of the sampling period
d delay value for the numerical differentiation.


Description:

This block is derived from the conventional SamplerTime block, only that instead of using the der() operator to compute the derivatives (or more precisely the coefficients of the Taylor series up to second order) for the second and third output value, it uses the concept of difference equations:

dx/dt=(x(t)-x(t-h))/h

where h is represented by the value of d, and the value x(t-h) is obtained by using the Modelica delay() function:

delay(x,d)


For details on the generated output events, see the original SamplerTime block.

Parameters

TypeNameDefaultDescription
Integermethod (from CDBlock)world.qssUse QSS1, QSS2 or QSS3
Realperiod1e-6Period
Realstart0Start Time
Reald1e-6Delay value for the numerical differentiation.

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputinPort (from CDBlock)
ModelicaDEVS.Templates.DiscreteOutPortoutPort (from CDBlock)

Components

TypeNameDefaultDescription
ModelicaDEVS.Miscellaneous.worldModelworld (from CDBlock)
Real[3]yVal (from CDBlock)
BooleanyEvent (from CDBlock)