modelLeadLag
Simple lead-lag filter
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Information
Lead-lag filter (no output limitations): y 1 + s*T1
- = k * ----------------
u 1 + s*T2
Neither output limitation nor anti-windup are implemented.
The dynamic parts are removed if T1=0 and T2=0. Otherwise, both T1 and T2 need to be positive.
By default, T1 and T2 are structural parameters, so they cannot be changed at runtime without recompiling the model. In order to do so, set the noDynamics parameter explicitly to false (note that you can't change T1 and T2 to zero at runtime in this case).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k | 1 | Gain |
| SI.Time | T1 | Lead time constant | |
| SI.Time | T2 | Lag time constant | |
| Boolean | noDynamics | not (T2 > 0) | Trivial configuration with no dynamics G(s) = k |
| Initialization | |||
| Modelica.Blocks.Types.Init | initType | Modelica.Blocks.Types.Init.NoInit | Type of initialization (1: no init, 2: steady state, 3/4: initial output) |
| Real | yStart | 0 | Initial or guess value of output (= state) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Math.Feedback | feedback | ||
| Modelica.Blocks.Math.Gain | gain | ||
| Modelica.Blocks.Continuous.FirstOrder | firstOrder | ||
| Modelica.Blocks.Sources.RealExpression | zero |