Lead-lag filter with M poles
Model to implement the following transfer function:
y 1
+ s*t1
- = k * ---------------
u (1 +
s*t2)^M
It is required that M > 0. If t1 = 0 and t2 = 0 then the
block is a static gain, otherwise it is required that t1 > 0 and
t2 > 0.
If M > 1, y = firstOrderCascade[M-1].y but for such an
equation to be compiled, the value of M has to be known during the
compilation, thus making it impossible to change M before the
simulation.
A workaround has been found with a vector z of the same size
as firstOrderCascade, whose components are either 0 or (for the
M-1th) firstOrderCascade[M-1].y. The sum of z is therefore
firstOrderCascade[M-1].y.
Generated at 2026-04-15T18:18:36Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos