Professional Documents
Culture Documents
Chapter 2
Chapter 2
EPCE3204
EPCE3204
CHAPTER 2:
MATHEMATICAL MODELING OF PHYSICAL SYSTEM
2 EPCE3204
Introduction - Mathematical Model
3 EPCE3204
Introduction - Mathematical Model
5 EPCE3204
Transfer Function
6 EPCE3204
Transfer Function
• Where 𝑐(𝑡) is the output, 𝑟(𝑡) is the input and the 𝑎 and 𝑏 and the
form of the differential equations represents the system.
• Taking the Laplace transform of both sides, then the solve for the
input output ratio.
𝐶 𝑠 𝑏𝑚 𝑠 𝑚 + 𝑏𝑚−1 𝑠 𝑚−1 + ⋯ + 𝑏0
=𝐺 𝑠 =
𝑅 𝑠 𝑎𝑛 𝑠 𝑛 + 𝑎𝑛−1 𝑠 𝑛−1 + ⋯ + 𝑎0
7 EPCE3204
Transfer Function
• Advantage
– it gives the gain of the system.
– Since Laplace transform is used, the terms are simple algebraic
expressions and differential terms are not present
– the response of the system to an input can be determined easily.
– Poles and zeros of a system can be determined from the
knowledge of the transfer function of the system.
• Disadvantage
– Transfer function can be defined for linear systems only.
– Initial conditions lose their importance since transfer function
does not take into account the initial condition.
– No inferences can be drawn about the physical structure of a
system from its transfer function.
8 EPCE3204
Transfer Function
Example
1. Find the transfer function represented by
𝑑𝑐 𝑡
𝐶 𝑠 1 𝐶 𝑠 𝑠 2 + 4𝑠 + 3
a. + 2𝑐(𝑡) = 𝑟(𝑡) = = 3
𝑑𝑡 𝑅 𝑠 𝑠+2 𝑅 𝑠 𝑠 + 3𝑠 2 + 7𝑠 + 5
𝑑 3 𝑐(𝑡) 𝑑 2 𝐶(𝑡) 𝑑𝑐 𝑡 𝑑 2 𝑟(𝑡) 𝑑𝑟 𝑡
b. + 3 + 7 +5𝑐 𝑡 = +4 +3𝑟 𝑡
𝑑𝑡 3 𝑑𝑡 2 𝑑𝑡 𝑑𝑡 2 𝑑𝑡
𝑑𝑥 2 (𝑡) 𝑑𝑥(𝑡) 𝐹 𝑠
c. 𝑓(𝑡) = + 5 +10𝑥(𝑡) = 𝑠 2 + 5𝑠 + 10
𝑑𝑡 2 𝑑𝑡 𝑋 𝑠
2. Find the differential equation corresponding to the transfer
function.
2𝑠 + 1
𝐺(𝑠) = 2
𝑠 + 6𝑠 + 1
𝑑 2 𝐶(𝑡) 𝑑𝑐 𝑡 𝑑𝑟 𝑡
+6 +𝑐 𝑡 = 2 +𝑟 𝑡
𝑑𝑡 2 𝑑𝑡 𝑑𝑡
9 EPCE3204
Electrical system - Modeling
10 EPCE3204
Electrical Systems Modeling
11 EPCE3204
Electrical System Modeling - Example
12 EPCE3204
Electrical System Modeling - Example
1
𝑒𝑖 = 𝑅1 𝑖1 + න(𝑖1 − 𝑖2 ) 𝑑𝑡
𝐶1
1
𝑒0 = න 𝑖2 𝑑𝑡
𝐶2
1 1
න(𝑖2 − 𝑖1 ) 𝑑𝑡 + 𝑅2 𝑖2 + න 𝑖2 𝑑𝑡 = 0
𝐶1 𝐶2
• Find the transfer function relating the current 𝐼2 (𝑠) to the input
voltage, 𝑉(𝑠), (𝐶 = 1, 𝑅1 = 1, 𝑅2 = 1, 𝐿1 = 2, 𝐿2 = 4, 𝐿3 = 3)
• Find the transfer function relating the resistor voltage 𝑉𝑜 (𝑠) to the
input voltage, 𝑉(𝑠)
14 EPCE3204
Modeling of Mechanical System
16 EPCE3204
Translational Mechanical System
17 EPCE3204
Translational Mechanical System
• Where
– 𝑓(𝑡) is the spring force in Newtons
– 𝐾 is the spring constant called stiffness in N/m
– 𝑥(𝑡) is the deformation of the spring in meters
18 EPCE3204
Translational Mechanical System
19 EPCE3204
Translational Mechanical System
20 EPCE3204
Translational Mechanical System - Exercise
• We assume the mass is traveling toward the right. Thus, only the
applied force points to the right; all other forces impede the motion
and act to oppose it. Hence, the spring, viscous damper, and the
force due to acceleration point to the left.
• First draw the free body diagram. Then, make the sum of forces
acting on the system is equal to zero
21 EPCE3204
Translational Mechanical System - Example
𝑓 𝑡 = 𝑓𝑖 + 𝑓𝑑 + 𝑓𝑠
𝑑2 𝑥 𝑡 𝑑𝑥 𝑡
𝑓 𝑡 =𝑀 + 𝑓𝑣 + 𝐾𝑥 𝑡
𝑑𝑡 2 𝑑𝑡
2
𝑋 𝑠 1
𝐹 𝑠 = 𝑀𝑠 𝑋 𝑠 + 𝑓𝑣 𝑠𝑋 𝑠 + 𝐾𝑋 𝑠 ⇒ 𝐺 𝑠 = =
𝐹 𝑠 𝑀𝑠 2 + 𝑓𝑣 𝑠 + 𝐾
22 EPCE3204
Translational Mechanical System - Exercise
• This system has two masses. For the system containing two or more
masses, we use superposition principle. i.e
– Treat mass one fixed and the other moving.
– Draw the free body diagram for fixed mass.
– Treat the fixed one moving and the moving mass fixed.
– Draw the free body diagram for the moving.
– Draw the free body diagram sum on targeted mass.
•
23 EPCE3204
Translational Mechanical System - Exercise
24 EPCE3204
Rotational Mechanical System
Translation Rotational
25 EPCE3204
Rotational Mechanical System
26 EPCE3204
Rotational Mechanical System - Exercise
• For 𝐽1
𝐽1 𝑠 2 + 𝐷1 𝑠 + 𝐾 𝜃1 𝑠 − 𝐾𝜃2 𝑠 = 𝑇 𝑠
• For 𝐽2
𝐽2 𝑠 2 + 𝐷2 𝑠 + 𝐾 𝜃2 𝑠 − 𝐾𝜃1 𝑠 = 0
𝜃2 𝑠 𝐾
=
𝑇 𝑠 𝐽1 𝑠 2 + 𝐷1 𝑠 + 𝐾 𝐽2 𝑠 2 + 𝐷2 𝑠 + 𝐾 − 𝐾 2
27 EPCE3204
Analogous Mechanical and Electrical system elements
28 EPCE3204
Analogous Mechanical and Electrical system elements
29 EPCE3204
Analogous Mechanical and Electrical system elements
30 EPCE3204
Fluid System Components
• The basic building blocks of fluid systems are the volumetric rate of
flow q and the pressure difference.
Input Output
𝑝1 − 𝑝2 = 𝑅 ∗ 𝑞
31 EPCE3204
Fluid System Components
𝐹1 − 𝐹2 = 𝑝1 − 𝑝2 𝐴 = 𝑚𝑎
𝑑𝑣
𝑝1 − 𝑝2 𝐴 = 𝜌𝐴𝐿
𝑑𝑡
𝑞
𝑑 𝜌𝐿 𝑑𝑞 𝑑𝑞
𝐹𝑟𝑜𝑚 𝑞 = 𝑣𝐴 , 𝑝1 − 𝑝2 = 𝜌𝐿 𝐴 = =𝐼
𝑑𝑡 𝐴 𝑑𝑡 𝑑𝑡
• Hydraulic inertance, 𝐼, is defined as
𝜌𝐿
𝐼=
𝐴
33 EPCE3204
Fluid System Components - Example
34 EPCE3204
Fluid System Components - Example
35 EPCE3204
Thermal System Components
36 EPCE3204
Thermal System Components
38 EPCE3204
Electro Mechanical System
39 EPCE3204
Electro Mechanical System - Exercise
40 EPCE3204
Block Diagram Representation
41 EPCE3204
Block Diagram Representation
42 EPCE3204
Block Diagram Representation
43 EPCE3204
Block Diagram Representation
• Example: Consider this closed loop system with unity feedback gain
block
44 EPCE3204
Block Diagram Representation
𝐵 𝑠
𝑂𝑝𝑒𝑛 𝑙𝑜𝑜𝑝 𝑡𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 = = 𝐺(𝑠)𝐻(𝑠)
𝐸 𝑠
𝐶 𝑠
𝐹𝑒𝑒𝑑𝑓𝑜𝑟𝑤𝑎𝑟𝑑 𝑡𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 = = 𝐺(𝑠)
𝐸 𝑠
• Closed-Loop Transfer Function
𝐶 𝑠 𝐺 𝑠
=
𝐸 𝑠 1 + 𝐺 𝑠 𝐻(𝑠)
45 EPCE3204
Block Diagram Representation
46 EPCE3204
Block Diagram Representation
47 EPCE3204
Block Diagram Representation
48 EPCE3204
Block Diagram Representation
𝐸𝑖 𝑠 − 𝐸𝑜 𝑠 𝐼 𝑠
𝐼 𝑠 = 𝐸𝑜 𝑠 =
𝑅 𝐶𝑠
49 EPCE3204
Block Diagram Reduction
50 EPCE3204
Block Diagram Reduction
51 EPCE3204
Block Diagram Reduction
52 EPCE3204
Block Diagram Reduction
53 EPCE3204
Block Diagram Reduction
54 EPCE3204
Block Diagram Reduction
55 EPCE3204
Block Diagram Reduction - Example
57 EPCE3204
Block Diagram Reduction - Example
𝐺1 𝐺4 (𝐺2 + 𝐺3 )
𝐶 𝑠 1 − 𝐺1 𝐺4 𝐻1
=
𝑅 𝑠 𝐺 𝐺 𝐺 + 𝐺3 𝐻2
1+ 1 4 2
1 − 𝐺1 𝐺4 𝐻1
58 EPCE3204
Block Diagram Reduction - Example
59 EPCE3204
Block Diagram Reduction - Example
𝐶 𝑠 𝐺1 𝐺2 𝐺3
=
𝑅 𝑠 1 − 𝐺1 𝐺2 𝐻1 + 𝐺2 𝐺3 𝐻2 + 𝐺1 𝐺2 𝐺3
60 EPCE3204
Signal Flow Graphs
𝑹 𝒔 𝑮 𝒔 𝑪 𝒔 𝑮 𝒔
𝑹 𝒔 𝑪 𝒔
61 EPCE3204
Signal Flow Graphs
62 EPCE3204
Signal Flow Graphs
63 EPCE3204
Signal Flow Graphs
64 EPCE3204
Signal Flow Graphs
65 EPCE3204
Signal Flow Graphs - Example
66 EPCE3204
Signal Flow Graphs - Exercise
67 EPCE3204
Signal Flow Graphs
68 EPCE3204
Signal Flow Graphs
𝑃𝐾 Δ𝐾
𝑇=
Δ
𝐾
– Where,
𝑃𝐾 = 𝐹𝑜𝑟𝑤𝑎𝑟𝑑 𝑝𝑎𝑡ℎ 𝑔𝑎𝑖𝑛 𝑜𝑓 𝐾 𝑡ℎ 𝑓𝑜𝑟𝑤𝑎𝑟𝑑 𝑝𝑎𝑡ℎ
Δ = 𝑑𝑒𝑡𝑒𝑟𝑚𝑖𝑛𝑎𝑛𝑡 𝑜𝑓 𝑔𝑟𝑎𝑝ℎ = 1 − 𝐿𝑎 + 𝐿𝑏 𝐿𝑐 − 𝐿𝑑 𝐿𝑒 𝐿𝑓 + ⋯
𝑎 𝑏,𝑐 𝑑,𝑒,𝑓
ΔK = 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑡ℎ𝑒 𝛥 𝑓𝑜𝑟 𝑡ℎ𝑎𝑡 𝑝𝑎𝑟𝑡 𝑜𝑓 𝑡ℎ𝑒 𝑔𝑟𝑎𝑝ℎ 𝑛𝑜𝑡 𝑡𝑜𝑢𝑐ℎ𝑖𝑛𝑔 𝑡ℎ𝑒 𝐾 𝑡ℎ 𝑓𝑜𝑟𝑤𝑎𝑟𝑑 𝑝𝑎𝑡ℎ
– Note that the summations are taken over all possible paths from input to output.
69 EPCE3204
Signal Flow Graphs
70 EPCE3204
Signal Flow Graphs - Example
71 EPCE3204
Signal Flow Graphs - Example
• In this system there is only one forward path between the input R(s)
and the output C(s). The forward path gain is
𝑃1 = 𝐺1 𝐺2 𝐺3 𝐺4 𝐺5
• There are three individual loops. The gains of these loops are
𝐿1 = 𝐺1 𝐺2 𝐻1 𝐿2 = −𝐺2 𝐺3 𝐻2 𝐿3 = −𝐺1 𝐺2 𝐺3
• Note that since all three loops have a common branch, there are no
non touching loops. Hence, the determinant Δ is given by
Δ = 1 − 𝐿1 + 𝐿2 + 𝐿3 = 1 − 𝐺1 𝐺2 𝐻1 + 𝐺2𝐺3𝐻2 + 𝐺1𝐺2𝐺3
72 EPCE3204
Signal Flow Graphs - Example
Δ = 1 − 𝐿1 + 𝐿2 + 𝐿3 = 1 − 𝐺1 𝐺2 𝐻1 + 𝐺2𝐺3𝐻2 + 𝐺1𝐺2𝐺3
• The cofactor Δ1 of the determinant along the forward path
connecting the input node and output node is obtained from Δ by
removing the loops that touch this path. Since path P1 touches all
three loops, we obtain
Δ1 = 1
𝐶 𝑠 𝑃1 Δ1 𝐺1 𝐺2 𝐺3
=𝑃= =
𝑅 𝑠 Δ 1 − 𝐺1 𝐺2 𝐻1 + 𝐺2 𝐺3 𝐻2 + 𝐺1 𝐺2 𝐺3
73 EPCE3204
Signal Flow Graphs - Example
• There are three forward paths between the input 𝑅(𝑠) and the
output 𝐶(𝑠) The forward path gains are
𝑃1 = 𝐺1 𝐺2 𝐺3 𝐺4 𝐺5 𝑃2 = 𝐺1 𝐺6 𝐺4 𝐺5 𝑃3 = 𝐺1 𝐺2 𝐺7
74 EPCE3204
Signal Flow Graphs - Example
76 EPCE3204