Derivative
Filtered derivative du/dt.
- signal
- Modelica Standard Library
- 2 ports
- 1 parameter
derivativeLibraryContinuousDescription
Approximates the time derivative of its input, filtered by a first-order lag with Filter time τ (the Modelica library derivative). Smaller τ comes closer to the true derivative but amplifies noise and fast edges more.
Example
Step responses A unit step through a first-order filter, a second-order system, an integrator, a limited integrator, and a delay; a ramp through a derivative.
Step at 0.1 sFirst orderSecond orderIntegratorLimited to 1Delay 0.3 sRamp, slope 2Derivative
Also in this example:StepRampIntegratorLimited integratorLow-pass filterSecond-orderTransport delay
Ports
Inputs 1
-
u
Input signal.
Outputs 1
-
y
Filtered derivative of u, in units of u per second.
Parameters
-
Filter time
tau0.01 s≥ 0.00001
Filter time constant τ, in seconds. At least 1e-5 s.
Equations
Modelica
dx/dt = (u − x) / tau y = (u − x) / tau Transfer function: s / (tau · s + 1) At time 0 the state is in steady state (x = u), so the output starts at 0.
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Blocks.Continuous.DerivativeAssumptions and limitations
- A step in the input gives a spike of height step/tau rather than an impulse.
See also
Select a block in Gradara and press F1 to open its page offline.