PDF - Chương 1 - Modelling of Dynamic Systems
PDF - Chương 1 - Modelling of Dynamic Systems
PDF - Chương 1 - Modelling of Dynamic Systems
Modelling of Dynamic
Systems
Introduction
Laplace Transform
Transfer Function
State-Space Representation
Ho Chi Minh City
University of Technology 2
Introduction
t
0 1 6
θ = ? (rad)
t
0 1 6
Deriving reasonable mathematical models is the most important part of the entire
analysis of control systems.
Simplicity VS Accuracy
Ho Chi Minh City
University of Technology 7
Mathematical Model
Linear systems
A system is called linear if the principle of superposition applies
Given 𝑯: 𝑿 → 𝒀 then 𝒚 𝜶𝟏 𝒙𝟏 + 𝜶𝟐 𝒙𝟐 = 𝜶𝟏 𝒚 𝒙𝟏 + 𝜶𝟐 𝒚 𝒙𝟐
Mathematical model
𝑚𝑦ሷ 𝑡 + 𝑏𝑦ሶ 𝑡 + 𝑘𝑦 𝑡 = 𝑓 𝑡
𝑦ሶ 0 = 0 𝐴2 = 0.8
𝑑 2 θ(𝑡) 𝑔
+ sin(θ(𝑡)) = 0
𝑑𝑡 2 𝐿
Source: Wikipedia
𝑑 2 𝑖(𝑡) 𝑅 𝑑𝑖 1
+ + 𝑖(𝑡) = 0
𝑑𝑡 2 𝐿 𝑑𝑡 𝐿𝐶
Ho Chi Minh City
University of Technology 14
Examples
DC motor model
Back efm
Pierre Simon
Laplace
1
𝑦 𝑡 = 𝑒 −𝑡 𝐴1 cos 2𝑡 + 𝐴2 sin (2𝑡) + 𝑒 −3𝑡
8
1
Initial conditions: 𝑦 0 =0 𝐴 1 = −
8
1
𝑦ሶ 0 = 0 𝐴2 =
8
1 −𝑡 1 −𝑡 1 −3𝑡
𝑦 𝑡 = − 𝑒 cos 2𝑡 + 𝑒 sin(2𝑡) + 𝑒
8 8 8
Ho Chi Minh City
University of Technology 27
Solving a ODE using the Laplace Transform
Dynamic model of the shock absorber system:
𝑦ሷ 𝑡 + 2𝑦ሶ 𝑡 + 5𝑦 𝑡 = 𝑓 𝑡
𝑓 𝑡 = 𝑒 −3𝑡
𝑦 0 =0 𝐿{𝑦ሷ 𝑡 } = 𝑠 2 𝑌 𝑠 − 𝑠𝑦 0 − 𝑦ሶ 𝑡
𝑦ሶ 0 = 0 𝐿{𝑦ሶ 𝑡 } = 𝑠𝑌 𝑠 − 𝑦 0
1 1
𝑠 2 𝑌(𝑠) + 2𝑠𝑌 𝑠 + 5𝑌 𝑠 = 𝐹 𝑠 𝑌 𝑠 = 𝐹 𝑠 𝐿{𝑓 𝑡 } =
(𝑠 2 +2𝑠 + 5) 𝑠+3
1 1 1
1 1 −8𝑠 + 8
𝑌 𝑠 = 𝑌 𝑠 = 2 + 8
(𝑠 2 +2𝑠 + 5) (𝑠 + 3) (𝑠 +2𝑠 + 5) (𝑠 + 3)
1 𝑠+1 1 2 1 1
𝑌 𝑠 =− + +
8 (𝑠 + 1)2 +22 8 (𝑠 + 1)2 +22 8 (𝑠 + 3)
1 −𝑡 1 −𝑡 1 −3𝑡
𝑦 𝑡 = − 𝑒 cos 2𝑡 + 𝑒 sin(2𝑡) + 𝑒
8 8 8
Ho Chi Minh City
University of Technology 28
Transfer Function
The transfer function includes the units necessary to relate the input to the
output; however, it does not provide any information concerning the physical
structure of the system.
𝑚𝑦ሷ 𝑡 + 𝑏𝑦ሶ 𝑡 + 𝑘𝑦 𝑡 = 𝑓 𝑡
𝐿{𝑦ሷ 𝑡 } = 𝑠 2 𝑌 𝑠 − 𝑠𝑦 0 − 𝑦ሶ 𝑡
𝐿{𝑦ሶ 𝑡 } = 𝑠𝑌 𝑠 − 𝑦 0
1
𝑚𝑠 2 𝑌(𝑠) + 𝑏𝑠𝑌 𝑠 + 𝑘𝑌 𝑠 = 𝐹 𝑠 𝑌 𝑠 = 𝐹 𝑠
(𝑚𝑠 2 +𝑏𝑠 + 𝑘)
𝑌 𝑠 1
Transfer function 𝐺 𝑠 = = 2
𝐹 𝑠 (𝑠 +2𝑠 + 5)
𝑑2 𝑞 𝑑𝑞
𝐿 2 +𝑅 + 𝐶𝑞 = 𝑣 𝑡 .
𝑑𝑡 𝑑𝑡
Taking the Laplace transform of the following equation (assume all initial
conditions are zero), an equivalent frequency domain equation results
𝐿𝑠 2 + 𝑅𝑠 + 𝐶 𝑄(𝑠) = 𝑉 𝑠 .
Finally, the transfer function of RLC circuit is obtained
𝑄(𝑠) 1
𝐺 𝑠 = =
𝑉(𝑠) 𝐿𝑠 2 + 𝑅𝑠 + 𝐶
Ho Chi Minh City
University of Technology 33
Block Diagram
Model
- We have 𝐶 𝑠 = 𝐸 𝑠 𝐺 𝑠 .
- However, 𝐸 𝑠 = 𝑅 𝑠 − 𝐵 𝑠 , 𝐵 𝑠 = 𝐶 𝑠 𝐻 𝑠 .
For complex systems, the block diagram method can become difficult to
complete. By using the signal-flow graph model, the reduction procedure
(used in the block diagram method) is not necessary to determine the
relationship between system variables.
𝑎𝑛 𝑦 𝑛
𝑡 + ⋯ + 𝑎2 𝑦ሷ 𝑡 + 𝑎1 𝑦ሶ 𝑡 + 𝑎0 𝑦 𝑡 = 𝑓 𝑡 𝐱ሶ = 𝐀𝐱 + 𝐁𝐮
𝑦 = 𝐂𝐱 + 𝐃𝐮
State-Space Representation of the MSD system
𝑥ሶ 1 0 1 𝑥1 0
= −𝑘 1 ∙u
𝑥2 +
𝑏
𝑥ሶ 2 − 𝑚
𝑚 𝑚
𝑥1
𝑚𝑦ሷ 𝑡 + 𝑏𝑦ሶ 𝑡 + 𝑘𝑦 𝑡 = 𝑢 𝑡 𝑦 = 1 0 𝑥 +0∙u
2
System matrix
0 1 Input matrix
𝐀= 𝑘 𝑏 0
− − 𝑩= 1
𝑚 𝑚
𝑚
𝑥ሶ 1
𝐱ሶ =
𝑥ሶ 2
𝐂= 1 0 𝐃=0
Output matrix Direct transmission term
Ho Chi Minh City
University of Technology 55
State-Space Representation
LTV model
Define
State equation
State-Space Representation
𝐱ሶ = 𝐀𝐱 + 𝐁𝐮
𝑦 = 𝐂𝐱 + 𝐃𝐮
Letting
x1 0 1 0 0 x1 0
𝑥1 = 𝑦(𝑡) x 0 0 1 0 x2 0
2
𝑥𝑖 = 𝑥ሶ 𝑖−1 = + f (t )
x
n −1 0 0 0 1 xn −1 0
xn −an −an −1 −an − 2 −a1 xn b0
x1
x
2
y (t ) = 1 0 0 0
xn −1
xn
2ഺ
𝑦 𝑡 + 5𝑦ሷ 𝑡 + 6𝑦ሶ 𝑡 + 10𝑦 𝑡 = 𝑓 𝑡
Ho Chi Minh City
University of Technology 58
Differential Equation and State Equation
𝑥ሶ 1 0 1 𝑥1 0 𝑥ሶ 1 = 𝑥2
= −𝑘 1 ∙u
𝑥2 +
𝑏 𝑘 𝑏 1
𝑥ሶ 2 − 𝑥ሶ 2 = − 𝑥1 − 𝑥2 + 𝑢
𝑚 𝑚 𝑚 𝑚 𝑚 𝑚
𝑥1 𝑦 = 𝑥1
𝑦 = 1 0 𝑥 +0∙u
2
𝑥ሷ 1 = 𝑥ሶ 2
𝑘 𝑏 1
𝑥ሶ 2 = − 𝑥1 − 𝑥ሶ 1 + 𝑚 𝑢 𝑚𝑦ሷ 𝑡 + 𝑏𝑦ሶ 𝑡 + 𝑘𝑦 𝑡 = 𝑢 𝑡
𝑚 𝑚
𝑦 = 𝑥1
𝑏
𝑚 𝑠+ 1
(𝑠𝐈 − 𝐀)−1 = 𝑚
𝑚𝑠 2 + 𝑏𝑠 + 𝑘 𝑘
− 𝑠
𝑚
𝑏
𝑚 𝑠+ 1 0
G s = [𝐂 𝑠𝐈 − 𝐀)−1 𝐁 + 𝐃 = 1 0 𝑚 1
𝑚𝑠 2 + 𝑏𝑠 + 𝑘 𝑘
− 𝑠 𝑚
1 𝑚
G s =
𝑚𝑠 2 + 𝑏𝑠 + 𝑘
Ho Chi Minh City
University of Technology 61
Transfer Function and State Equation
Transfer Function → State Equation
Using Approach 2 to find the state equation of the following system diagram
R(s) 1 10 Y(s)
+-
𝑠 𝑠+3
1
𝑠+2
x = Ax + Br 0 1 0 0
y = Cx A = 0 0 1 ; B = 0
−10 −6 −5 1
C = 20 10 0
X1(s) 1
𝑠+2
x = Ax + Br −2 1 0 0
y = Cx A = 0 −3 10 ; B = 0
−1 0 0 1
C = 0 1 0
❖ The eigenvector qi associated with the eigenvalue λi is any nonzero solution of the
following equation
( A − i I ) qi = 0
For eigenvalue λ1 = 1, we have
−2 3 −1 1
( A − 1I ) q1 = −3 4 −1 q1 = 0 q1 = 1
−3 3 0 1 1 1 1
Q = 1 1 0
1 1 1 0 −3
q 2 = 1 ; q3 = 0
0 −3
Ho Chi Minh City
University of Technology 65
Diagonal Canonical Form
A is a diagonal matrix
−2 0 0
A = 0 −3 0
x = Ax + Br
y = Cx 0 0 7
M = q1 q2 qn
A = M -1 AM
where qi is the eigenvectors of matrix A
A = M -1 AM
−1
1 1 1 1 1 1 −1 3 −1 1 1 1
M = q1 q2 q 3 = 1 1 0 = 1 1 0 −3 5 −1 1 1 0
1 0 −3 1 0 −3 −3 3 1 1 0 −3
1 0 0
= 0 2 0
1 0 0 1 0 0 2
x = 0 2 0 x + −1 r
0 0 2 0
y = 1 1 0 x
1. Linearity
2. Exponential scaling
3. Time delay
e e
𝜏 = 𝑎𝑡
- Introduce the new variable
Exogenous input 𝑟(𝑡) and its response 𝑦(𝑡) after elapsed time 𝑡 − 𝜏
Rank = 3 Rank = 2
Case 1: 𝑎 = 0 0 1 0
𝐱ሶ = 𝐱+ ∙u Controllable!!!
det 𝐶 = −1 ≠ 0 → rank 𝐶 = 2 −𝑘 −𝑏 1
𝑦 = 1 0 𝐱+0∙u
Case 2: 𝑘 = 1, 𝑏 = 2, 𝑎 = −1
det 𝐶 = 0 → rank 𝐶 ≠ 2 0 1 −1
𝐱ሶ = 𝐱+ ∙u Uncontrollable!!!
−1 −2 1
𝑦 = 1 0 𝐱+0∙u
𝑥ሶ 1 0 1 𝑥1 0
𝐱ሶ = 𝐀𝐱 + 𝐁𝑢 = −𝑘 1 ∙u
𝑥2 +
𝑏
𝑥ሶ 2 − 𝑚
𝑚 𝑚
𝑦 = 𝐂𝐱 + 𝐃𝑢 𝑥1
𝑦= 1 0 𝑥 +0∙u
2
Observability
Ability to measure the internal states of a system by examining its
outputs.
𝐂 0 1
O= 𝐂𝐀 = 1 0 = 0 1
𝐂𝐀 −𝑘 𝑏
1 0
O=
0 1
𝑟𝑎𝑛𝑘{O} = 2 Observable!!!