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 BlockParameters:
| 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:
where h is represented by the value of d, and the value x(t-h) is obtained by using the Modelica delay() function:
For details on the generated output events, see the original SamplerTime block.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | method (from CDBlock) | world.qss | Use QSS1, QSS2 or QSS3 |
| Real | period | 1e-6 | Period |
| Real | start | 0 | Start Time |
| Real | d | 1e-6 | Delay value for the numerical differentiation. |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | inPort (from CDBlock) | ||
| ModelicaDEVS.Templates.DiscreteOutPort | outPort (from CDBlock) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ModelicaDEVS.Miscellaneous.worldModel | world (from CDBlock) | ||
| Real[3] | yVal (from CDBlock) | ||
| Boolean | yEvent (from CDBlock) |