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

TypeNameDefaultDescription
Realk1Gain
SI.TimeT1Lead time constant
SI.TimeT2Lag time constant
BooleannoDynamicsnot (T2 > 0)Trivial configuration with no dynamics G(s) = k
Initialization
Modelica.Blocks.Types.InitinitTypeModelica.Blocks.Types.Init.NoInitType of initialization (1: no init, 2: steady state, 3/4: initial output)
RealyStart0Initial or guess value of output (= state)

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Feedbackfeedback
Modelica.Blocks.Math.Gaingain
Modelica.Blocks.Continuous.FirstOrderfirstOrder
Modelica.Blocks.Sources.RealExpressionzero