|
FhSim
3.1.0
Marine systems simulation
|
Output is the time derivative of input.
Collaboration diagram for Derivative:Output is the time derivative of input: the difference between the input and its value at the last accepted step, divided by the time between them (owner ruling D23). The memory is updated on accepted steps only, so the output does not depend on how often the integrator evaluates the model inside a step (Runge-Kutta stages, Jacobian columns). At the time of an accepted step the output is the difference over that step, which is the derivative in the middle of the step: it lags the true derivative by half a step. Before the first step it is 0. The accuracy follows the step size, so the block gives inaccurate results when the step is long, for example when the integrator only steps to the output times.
| Name | Width | Description |
|---|---|---|
| In | <PortWidth> | The input port |
| Name | Width | Description |
|---|---|---|
| Out | <PortWidth> | The derivative of the input signal |
| Name | Width | Description |
|---|---|---|
| PortWidth | The number of elements in the input and output ports |
This SimObject contains no initial conditions.
This SimObject is referred to as Math/Derivative