Automation Systems
Lecture 2 - Mathematical Models of Dynamical Systems
Jakub Mozaryn
Institute of Automatic Control and Robotics, Department of Mechatronics, WUT
Warszawa, 2019
Mathematical modelling for control systems
Real processes, and thus control systems, have nonlinear properties:
turbulences,
multiple stable states, hysteresis,
energy losses due to friction.
In practice, to simplify the mathematical description, there is carried lin- earization, enabling the formulation of the approximate description of a linear phenomenon, in vicinity of the operating point (this point corre- sponds to the nominal or average operating conditions of the system).
Linearization steps
1 description of the phenomenon in the form of differential equations,
2 linearization,
3 operational calculus: differential equations → algebraic equations.
6 step approach to modelling
STEP 1: Define the system and its components.
STEP 2: Formulate the mathematical model and fundamental necessary assumptions based on basic physical principles.
STEP 3: Obtain differential equations representing the mathematical model.
STEP 4: Solve equations for the desired output variables.
STEP 5: Examine the assumptions and solutions.
STEP 6: If necessary, reconsider and redesign the system.
Description of linear models
The basic forms of mathematical description of the system dynamical properties are:
Equations of Motion: equations of system dynamics in form of differential equations.
Transfer function.
State Space Equations (not covered in the course).
In the case of dynamical system (process) with one input signal x (t) and one output signal y (t) equation of motion describes the relationship between the output signal y (t) and the input signal x (t) in a following form:
y (t) = f (x (t)) (1)
Description of linear models / systems
Principle of superposition:
f (x1+ x2) = f (x1) + f (x2), and f (0) = 0. (2) Space of solutions of the equation that satisfies (2) is a linear space.
Homogeneity (implies scale invariance):
Function f (x , y ) is said to be homogeneous of degree k if
f (βx , βy ) = βkf (x , y ), and f (0) = 0, (3) where: β - constatnt coefficient.
Linear system
Homogenous system, which preserve the principle of superposition.
Nonlinear system
The system, which does not preserve the principle of superposition
Linearity - example
Using the appropriate theorems and assummptions, check whether the system described by the equation
y (t) = ax (t) + b (4)
where: y - output signal, x - input signal, a = const, b = const - constant parameters,
is linear.
Description of linear models / systems
General form of the differential equation describing linear system:
an
dny dtn+ an−1
dn−1y
dtn−1+ · · · + a0y = bm
dmx dtm + bm−1
dm−1x
dtm−1+ · · · + b0x (5) where: y - output signal, x - input signal, ai, bi - constant coefficients.
Proportional elements
Figure 1:Proportional element - voltage divider
Input signal x (t) - voltage U1(t).
Output signal y (t) - voltage U2(t).
Dynamics equation -
relationship between input and output signal:
U2(t) = R2 R1+ R2
U1(t) (6)
General equation of proportional element
y (t) = kx (t) (7)
First order lag elements
Figure 2:First order lag element - RL filter
Input signal x (t) - voltage U1(t).
Output signal y (t) - voltage U2(t).
Dynamics equation -
relationship between input and output signal:
L R
dU2(t)
dt + U2(t) = U1(t) (8)
General equation of first order lag element
Tdy (t)
dt + y (t) = kx (t) (9)
First order lag elements - equivalents
Figure 3:First order lag elements a) αRΘV dpdt2(t) + p2(t) = p1(t) b) RJd ω(t)dt + ω(t) = R1M(t) c) RLdUdt2(t) + U2(t) = U1(t) General equation of first order lag element
Tdy (t)
dt + y (t) = kx (t) (10)
Static characteristic
Static characteristics
Static characteristic fs describes the dependence of the output signal y of the system from the input signal x in steady state.
Steady state
Steady state is a state in which all derivatives of the input signal and output signal are equal to zero. In such a situation the output signal has a steady value.
Figure 4:Static characteristics of linear system.
Linearization
Creation of linear description of the system, based on nonlinear description of this system is called linearization.
Linearization of nonlinear description in the form of nonlinear algebraic equations is called static linearization. (There are no derivatives) Linearization of nonlinear description in the form of nonlinear differential equations is called the dynamic linearization.
Methods of static linearization
secant method: obtain the best relation between the linear and nonlinear description of a system in the specified range of changes of the independent variable (input).
tangent method: obtain the best relation between the linear and nonlinear description of a system for a given value of the
independent variable (input), and hence a particular value of the dependent variable (output).
Static linearization
Figure 5:Static linearization; a) secant method, b) tabgent method.
In control system design, there is considered the behavior of plant/system in a vicinity of a specified operating point. Therefore in practical appli-
Tangent method
Process of linearization using tangent method involves:
replacement of the curve representing nonlinear relationship y = f (x ) with its tangent at operating point,
transfer the origin to operating point,
replacement in mathematical model absolute variables x and y with deviations of these variables from operating point - incremental variables ∆x and ∆y .
Static characteristics obtained using linearized equation, in terms of the specified operating point, is a linear function. It can be also obtained by linearization of real characteristics in terms of the same operating point.
Static linearization
Example [homework]
Determine the linearized function that describes the dependence of the mass flow Q of the fluid flowing through the valve, from the pressures p1 and p2and the distance x of the plug from the valve seat.
Q(t) = απd · x (t)p
2ρ(p1(t) − p2(t)) (11) We look for the linear function in following form (find coefficients)
QL(t) = b1∆x (t) + b2∆p1(t) + b3∆p2(t) (12)
Dynamic linearization - example
Example: non-homogenous function
y = mx + b (13)
The nominal operating point - {x0, y0}, y0= f (x0) Taylor series expansion about the operating point
y = f (x ) = f (x0) +df dx|x =x0
(x − x0) 1! +d2f
dx2|x =x0
(x − x0)2
2! + ... (14) The slope (first derivative) over the operating point isa good approxima- tion of the curve over small range.
Therefore
y = f (x0) +df
dx|x =x0(x − x0) = y0+ m(x − x0) (15) and finally
y − y 0 = m(x − x0) → ∆y = m∆x (16)
Dynamic linearization
An example of differential equation, which describes linear relationship between functions x (t), y (t) and their derivatives.
F [y (t), ˙y (t), ¨y (t), . . . , y(n)(t), x , ˙x (t), ¨x (t), . . . , x(m)(t)] = 0 (17) During dynamic linearization, functions x (t), y (t) and their derivatives are treated analogously to variables of implicit function.
n
X
i =0
( ∂F
∂y(i )
y0(i )
∆y(i ) )
+
m
X
j =0
( ∂F
∂x(j )
x(j )0
∆x(j ) )
= 0 (18)
where:
∆y = y (t) − y0, ∆y(1)= d ∆y
dt , . . . , ∆y(n)= dn∆y dtn
∆x = x (t) − x0, ∆x(1)= d ∆x
, . . . , ∆x(m)= dm∆x
m
Dynamic linearization - example
Linearize the following differential function
y (t) = 2x (t)2+ x (t) ˙x (t) + 2¨x (t)2 (19) The nominal operating point - {x0, y0}, x0= 1, ˙x0= 0, ¨x0= 0.
Using Taylor series expansion around the operating point
∆y (t)+[−4x (t)− ˙x (t)]0∆x (t)−[x (t)]0∆¨x (t)−[4¨x (t)]0∆¨x (t) = 0. (20) In the nominal operating point, the linearized model of the system, has the following form
∆y (t) − 4∆x (t) − ∆ ˙x (t) = 0. (21) Nonlinear static characteristic of the system (14)
y = 2x2. (22)
Linear static characteristic (the tangent of nonlinear characteristic in op- erating point, all time derivatives are equal to zero)
∆y = 4∆x . (23)
Laplace transform
Replacing differential equation with transfer function (algebraic equation) needs transition from the time domain (t) to the complex plane (s).
f (t) ⇔ f (s), where s = c + j ω (24) where: c - real part coefficient, ω - conjugate part coefficient.
Laplace transform
f (s) = L[f (t)] =
∞
Z
0
f (t)e−stdt (25)
Inverse Laplace transform - Riemann-Mellin integral
f (t) = L−1[f (s)] = 1 2πj
c+j ω
Z
c−j ω
F (s)estds (26)
Laplace transform of the linear systems
Laplace transform is used for an analysis of control systems. As a tool for graphical analysis, complex plane S is used, where multiplication by s has the effect of differentiation and division by s has the effect of integration.
Analysis of complex roots of a linear equation, may disclose information about the frequency characteristics and the stability of the system.
To determine the function’s Laplace transform the following conditions must be met:
f (t) has a finite value in any finite interval, f (t) has a derivative df (t)dt in any finite interval,
there exists a set of real numbers X for which the integral
∞
R
0
e−ct is absolutely convergent.
Laplace transform of the linear systems
Linear system is described by following differential equation an
dny dtn+an−1
dn−1y
dtn−1+· · ·+a0y = bm
dmx dtm+bm−1
dm−1x
dtm−1+· · ·+b0x (27) Using the n-th derivative property of the Laplace transform
L dny dtn
= sny (s) − sn−1y (0+) − · · · − yn−1(0+) (28) and assuming that initial conditions are zero, one obtains
L dny dtn
= sny (s) (29)
Laplace transform of the linear dynamic system (22) with zero initial conditions take the following form
y (s)(a sn+a sn−1+· · ·+a ) = x (s)(b sm+b sm−1+· · ·+b ) (30)
Transfer function
Transfer function
For continuous-time input signal x (t) and output y (t), the transfer func- tion G (s) is the linear mapping of the Laplace transform of the input, X (s) = L[x (t)], to the Laplace transform of the output Y (s) = L[y (t)] at zero initial conditions:
y (s)(ansn+an−1sn−1+· · ·+a0) = x (s)(bmsm+bm−1sm−1+· · ·+b0) (31) G (s) = y (s)
x (s) =bmsm+ bm−1sm−1+ · · · + b0 ansn+ an−1sn−1+ · · · + a0
(32) Numerator
M(s) = bmsm+ bm−1sm−1+ · · · + b0 (33) Denominator - characteristic equation
N(s) = ansn+ an−1sn−1+ · · · + a0 (34)
Determination of static characteristics from transfer function
x0= lim
t→∞x (t), y0= lim
t→∞y (t), (35)
using the final value theorem y0= lim
t→∞y (t) = lim
s→0sy (s) = lim
s→0sG (s)x (s) (36) For the input signal in the form of the unit step
x0= const ⇒ x (s) =1
sx0 (37)
y0
x0 = lim
s→0G (s). (38)
Finally, the static characteristcs has a form y =b0
x (39)
Methods for determining the transient response of the system
an
dny dtn+an−1
dn−1y
dtn−1+· · ·+a0y = bm
dmx dtm+bm−1
dm−1x
dtm−1+· · ·+b0x (40) Classic:
Assumption of the initial conditions x (0), y (0).
Solution of differential equations.
Using transfer function:
f (t) = L−1[y (s)] = L−1[G (s)x (s)] (41) To perform Laplace transform and its reverse, which are the basic oper- ations of a transfer function calculus, it is often sufficient to know basic properties of transfer fuctions and tables of transfer fuctions.
Typical input signals
Unit step (Heaveside function)
x (t) =
1(t) for t ≥ 0
0 for t < 0 x (s) =1
s Step with constant value
x (t) =
xst1(t) for t ≥ 0
0 for t < 0 x (s) = xst
1 s Impulse - Dirac delta function
x (t) = δ(t) =
0 for t 6= 0
∞ for t = 0 x (s) = 1
Ramp
System properties
Changes of output signal y (t) as a response to a specific change of an input signal x (t)
Figure 7:Example of a transient response of the dynamical system
Table of transfer functions
...
Automation Systems
Lecture 2 - Mathematical Models of Dynamical Systems
Jakub Mozaryn
Institute of Automatic Control and Robotics, Department of Mechatronics, WUT
Warszawa, 2019