blockContinuousSignalExtrema
Store the minimum and maximum values of the input signal
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This block detects positive and negative peaks of differentiable and non-differentiable input signals without sampling.
For differentiable input signals, an extremum is detected if the derivative of the input signal is zero.
To handle non-differentiable input signals, the input signal u is conditioned by a first order with time constant T.
Like in the derivative block,
the derivative of the input signal is approximated by (u - x)/T.
This way even steps with local extrema just before and after the step are taken into account.
Additionally, when the simulation terminates, y_min and y_max are updated.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | T | 1e-6 | Derivative time constant |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | ||
| Modelica.Blocks.Interfaces.RealOutput | y_min | ||
| Modelica.Blocks.Interfaces.RealOutput | y_max |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | t_min | Time instant of last found minimum | |
| Modelica.Units.SI.Time | t_max | Time instant of last found maximum |