modelDerivatives
Examples for DerXXX (various ways to compute derivatives of signals)
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Using the signal analysis blocks ExactDerivative, ApproximateDerivativeWithFilter, and ApproximateDerivativeWithWindow to compute the derivative of the input signal analytically or approximately with the following example
results in
![]() |
|
| simulation result |
Note, the approximate derivatives have a large error at the start of the simulation, because no information about the derivative of the signal is known. For this reason, the ApproximateDerivativeWithFilter block starts, for example, with steady-state (so zero derivative), and then needs some time until the approximation of the derivative is fine.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_Requirements.SignalAnalysis.ExactDerivative | der1 | ||
| Modelica_Requirements.SignalAnalysis.ApproximateDerivativeWithFilter | approxDerFilter | ||
| Modelica.Blocks.Sources.Sine | sine | ||
| Modelica_Requirements.SignalAnalysis.ApproximateDerivativeWithWindow | approxDerWindow |
