Lecture-2- Mathematical Modeling of Dynamic Systems
Lecture-2- Mathematical Modeling of Dynamic Systems
2
Types of Systems
• Static System: If a system does not change
with time, it is called a static system.
• Dynamic System: If a system changes with
time, it is called a dynamic system.
3
Dynamic Systems
• A system is said to be dynamic if its current output may depend on
the past history as well as the present values of the input variables.
• Mathematically,
My u
Ways to Study a System
System
Analytical Solution
Simulation
5
Model
• A model is a simplified representation or
abstraction of reality.
• Reality is generally too complex to copy
exactly.
• Much of the complexity is actually irrelevant
in problem solving.
6
What is Mathematical Model?
A set of mathematical equations (e.g., differential eqs.) that
describes the input-output behavior of a system.
Input Output
• Easy to Model
8
Grey Box Model
• When input and output and some information
about the internal dynamics of the system is
known.
u(t) y(t)
y[u(t), t]
9
White Box Model
• When input and output and internal dynamics
of the system is known.
11
Basic Elements of Electrical Systems
V-I Relation
V-I Relation
Component Symbol (Frequency
(Time Domain)
Domain)
Resistor v R (t ) i R (t )R VR ( s ) I R ( s ) R
Capacitor 1 1
vc (t ) ic (t )dt Vc ( s ) Ic (s)
C Cs
diL (t )
Inductor v L (t ) L VL ( s ) LsI L ( s )
dt 12
Example#1
• The two-port network shown in the following figure has vi(t) as
the input voltage and vo(t) as the output voltage. Find the
transfer function Vo(s)/Vi(s) of the network.
1
v i ( t ) i( t ) R i( t )dt
C
1
vo ( t ) i( t )dt
C
13
Example#1
1 1
v i ( t ) i( t ) R i( t )dt vo ( t ) i( t )dt
C C
• Taking Laplace transform of both equations, considering initial
conditions to zero.
1 1
Vi ( s ) I ( s )R I (s) Vo ( s ) I (s)
Cs Cs
1
Vi ( s ) I ( s )( R ) CsVo ( s ) I ( s )
Cs
14
Example#1
1
Vi ( s ) I ( s )( R ) CsVo ( s ) I ( s )
Cs
• Substitute I(s) in equation on left
1
Vi ( s ) CsVo ( s )( R )
Cs
Vo ( s ) 1
Vi ( s ) 1
Cs( R )
Cs
Vo ( s ) 1
Vi ( s ) 1 RCs
15
Example#1
Vo ( s ) 1
Vi ( s ) 1 RCs
16
Example#2
• Find the transfer function G(S) of the following
two port network.
17
Example#2
• Simplify network by replacing multiple components with
their equivalent transform impedance.
Z
Vi(s) I(s) C Vo(s)
18
Transform Impedance (Resistor)
iR(t) IR(S)
+ +
Transformation
vR(t) ZR = R VR(S)
- -
19
Transform Impedance (Inductor)
IL(S)
iL(t)
+ +
20
Transform Impedance (Capacitor)
ic(t) Ic(S)
+ +
- -
21
Equivalent Transform Impedance (Series)
• Consider following arrangement, find out equivalent
transform impedance.
L
ZT Z R Z L Z C
C
1
Z T R Ls R
Cs
22
Equivalent Transform Impedance (Parallel)
1 1 1 1
ZT Z R Z L ZC L
1 1 1 1 C
ZT R Ls 1
R
Cs
23
Equivalent Transform Impedance
• Find out equivalent transform impedance of
following arrangement.
L2
L2
R1 R2
24
Back to Example#2
L
Z
1 1 1
Z R Ls
RLs
Z
1 RLs
25
Example#2
RLs
Z
1 RLs
L
Z
1 1
Vi ( s ) I ( s )Z I (s) Vo ( s ) I (s)
Cs Cs
26
Modeling of Electronic Systems
27
Operational Amplifiers
Vout Z2
Vout
1
Z2
Vin Z1 Vin Z1
28
Example#3
• Find out the transfer function of the following
circuit.
Vout Z2
Vin Z1
29
Example#4
• Find out the transfer function of the following
circuit.
v1
30
Example#5
• Find out the transfer function of the following
circuit.
v1
31
Example#6
• Find out the transfer function of the following
circuit and draw the pole zero map.
100kΩ
10kΩ
32
Modeling of Mechanical Systems
• Part-I: Translational Mechanical System
33
Basic Types of Mechanical Systems
• Translational
– Linear Motion
• Rotational
– Rotational Motion
34
Part-I
35
Basic Elements of Translational Mechanical Systems
Translational Spring
i)
Translational Mass
ii)
Translational Damper
iii)
36
Translational Spring
• A translational spring is a mechanical element that
can be deformed by an external force such that the
deformation is directly proportional to the force
applied to it.
Translational Spring
i)
Circuit Symbols
Translational Spring
37
Translational Spring
• If F is the applied force
x1
x2
• Or ( x1 x 2 ) is the deformation. F
F k ( x1 x2 )
• Where k is stiffness of spring expressed in N/m
38
Translational Mass
• Translational Mass is an inertia Translational Mass
element. ii)
F Mx
39
Translational Damper
• When the viscosity or drag is not
negligible in a system, we often
model them with the damping
force.
Bridge Suspension
Flyover Suspension
41
Translational Damper
F Cx F C ( x1 x 2 )
k
x
F
M
F fk fM
• Then the differential equation of the system is:
F Mx kx
• Taking the Laplace Transform of both sides and ignoring
initial conditions we get
F ( s ) Ms 2 X ( s ) kX ( s )
44
Example-7
F ( s ) Ms 2 X ( s ) kX ( s )
• The transfer function of the system is
X (s) 1
F(s) Ms 2 k
• if
M 1000 kg
k 2000 Nm 1
X (s) 0.001
2
F(s) s 2
45
Example-7
X (s) 0.001
2
F(s) s 2
• The pole-zero map of the system is
46
Example-8
• Consider the following system
k
x
F
M
C
• Free Body Diagram
fk fC
M fM
F
F f k f M fC
47
Example-8
Differential equation of the system is:
F Mx Cx k x
Taking the Laplace Transform of both sides and ignoring
Initial conditions we get
F ( s ) Ms 2 X ( s ) CsX ( s ) kX ( s )
X (s) 1
F(s) Ms 2 Cs k
48
Example-8
X (s) 1
F(s) Ms 2 Cs k
• if 2
Pole-Zero Map
1.5
M 1000 kg 1
k 2000 Nm 1
Imaginary Axis
0.5
1
C 1000 N / ms
0
-0.5
-1
2 -2
F (s) s s 2 -1 -0.5 0
Real Axis
0.5 1
49
Example-9
• Consider the following system
x2
x1 k B
F M
• Mechanical Network
x1 k x2
F ↑ M B
50
Example-9
• Mechanical Network
x1 k x2
F ↑ M B
At node x1
F k ( x1 x 2 )
At node x2
0 k ( x2 x1 ) Mx2 Bx
2
51
Example-10
x1 x2
k B3 B4
M1 M2
f (t )
B1 B2
x1 B3 x2
f (t ) ↑ k M1 B1 B2 M2 B4
52
Part-I
53
Basic Elements of Rotational Mechanical Systems
Rotational Spring
1
2
T k (1 2 )
54
Basic Elements of Rotational Mechanical Systems
Rotational Damper
C
1
2 T
T C(1 2 )
55
Basic Elements of Rotational Mechanical Systems
Moment of Inertia
J T
T J
56
Example-11
B1
1 k1 2 3 k2
T J1 J2
1 k1 2 B1 3
T ↑ J1 J2 k2
57
Example-12
1 k1 2 B2
3 B4
T J1 J2
B1 B3
1 k1 2 B2 3
T ↑ J1 B1 B3 J2 B4
58
Example-13
1
k1 2
T k2
B1 J1 J2
B2
59
Part-III
MECHANICAL LINKAGES
60
Gear
• Gear is a toothed machine part, such
as a wheel or cylinder, that meshes
with another toothed part to
transmit motion or to change speed
or direction.
61
Fundamental Properties
• The two gears turn in opposite directions: one clockwise and
the other counterclockwise.
62
Gear Ratio
• You can calculate the gear ratio by using
the number of teeth of the driver
divided by the number of teeth of the
follower.
N11 N 2 2
64
Mathematical Modeling of Gear Trains
• In the system below, a torque, τa, is applied to gear 1 (with
number of teeth N1, moment of inertia J1 and a rotational friction
B1).
• It, in turn, is connected to gear 2 (with number of teeth N2,
moment of inertia J2 and a rotational friction B2).
• The angle θ1 is defined positive clockwise, θ2 is defined positive
clockwise. The torque acts in the direction of θ1.
• Assume that TL is the load torque applied by the load connected
to Gear-2.
N2
N1
B1
B2 65
Mathematical Modeling of Gear Trains
• For Gear-1
• For Gear-2
B1
• Since
B2
N11 N 2 2
• therefore
N1
2 1 Eq (3)
N2 66
Mathematical Modeling of Gear Trains
• Gear Ratio is calculated as
T2 N2 N1
T1 T2
T1 N1 N2
N2
• Put this value in eq (1) N1
B1
N1
a J11 B11 T2
N2 B2
• Put T2 from eq (2)
N1
a J11 B11 ( J 22 B22 TL )
N2
• Substitute θ2 from eq (3)
N1 N1 N1
a J11 B11 (J2 1 B2 2 TL )
N2 N2 N2 67
Mathematical Modeling of Gear Trains
N1 N1 N1
a J11 B11 (J2 1 B2 2 TL )
N2 N2 N2
• After simplification
2 2
N1 N1 N
a J11 J 21 B11 B21 1 TL
N2 N2 N2
N1
2 N1
2 N1
a J1
J 2 1 B1
B2 1 TL
N2 N2 N2
2 2
N N
J eq J1 1 J 2 Beq B1 1 B2
N2 N2
N1
a J eq1 Beq1 TL
N2 68
Mathematical Modeling of Gear Trains
2 2 2
N1 N1 N3
J eq J1 J 2 J 3
N2 N2 N4
2 2 2
N1 N1 N3
Beq B1 B2 B3
N2 N2 N4
69
Modeling of Electromechanical
Systems
70
D.C Drives
dia
u Ra ia La eb , where eb back-emf voltage
dt
Mechanical Subsystem
Tmotor Jω Bω
72
Example-14: Armature Controlled D.C Motor
Ra La
Power Transformation: B
ia
u eb T J
Torque-Current: Tmotor K t ia
Voltage-Speed: eb K b ω
dia
La Ra ia K b ω u
dt
Jω
B-K t ia 0
73
Example-14: Armature Controlled D.C Motor
Ω(s) Kt
U(s) La Js 2 JRa BLa s BRa K t K b
74
Example-14: Armature Controlled D.C Motor
Reduced Order Model
Assuming small inductance, La 0
Ω(s) Kt
U(s) JRa s ( BRa K t K b )
75
Example-14: Armature Controlled D.C Motor
Ra La
d B
or ( s ) s ( s ) ia
dt u eb T J
θ
(s) Kt
U(s) s[ JRa s ( BRa K t K b )]
76
Example-15: Field Controlled D.C Motor
Rf Ra La
if
ef Lf Tm J ea
B ω
di f
ef i f Rf Lf
dt
Mechanical Subsystem
Tm Jω Bω
77
Example-15: Field Controlled D.C Motor
Power Transformation:
Torque-Current: Tm K f i f
E f ( s ) R f I f ( s ) sL f I f ( s )
Js( s ) B( s ) K f I f ( s )
78
Example-15: Field Controlled D.C Motor
Eliminating If(S) yields
Ω(s) Kf
E f (s) Js B ( L f s R f )
if
ef Lf Tm J ea
B θ
(s) Kf
E f (s) sJs B ( L f s R f )
79
Example-16: Angular Position Control System
Ra La N1
+
JM
+ + + BM
ia BL
kp
e ea e b T θ JL
r c
_ _ _
N2
-
if = Constant
80
Numerical Values for System constants
r = angular displacement of the reference input shaft
c = angular displacement of the output shaft
θ = angular displacement of the motor shaft
K1 = gain of the potentiometer shaft = 24/π
Kp = amplifier gain = 10
ea = armature voltage
eb = back emf
Ra = armature winding resistance = 0.2 Ω
La = armature winding inductance = negligible
ia = armature winding current
Kb = back emf constant = 5.5x10-2 volt-sec/rad
Kt = motor torque constant = 6x10-5 N-m/ampere
Jm = moment of inertia of the motor = 1x10-5 kg-m2
Bm=viscous-friction coefficients of the motor = negligible
JL = moment of inertia of the load = 4.4x10-3 kgm2
BL = viscous friction coefficient of the load = 4x10-2 N-m/rad/sec
n= gear ratio = N1/N2 = 1/10 81
Example-16: Angular Position Control System
• Transfer function of the armature controlled D.C motor with load connected to it
is given by
𝜃(𝑠) 𝐾𝑡
=
𝐸𝑎 (𝑠) 𝑠 𝐽𝑒𝑞 𝑅𝑎 + 𝐵𝑒𝑞 𝐿𝑎 𝑠 + 𝐵𝑒𝑞 𝑅𝑎 + 𝐾𝑡 𝐾𝑏
• Where
2 2
𝑁1 −5
1
𝐽𝑒𝑞 = 𝐽𝑚 + 𝐽𝐿 = 1 × 10 + × 4.4 × 10−3 = 5.4 × 10−5
𝑁2 10
2 2
𝑁1 1
𝐵𝑒𝑞 = 𝐵𝑚 + 𝐵𝐿 = × 4 × 10−2 = 4 × 10−4
𝑁2 10
𝜃(𝑠) 6
=
𝐸𝑎 (𝑠) 𝑠(1.08𝑠 + 8.33)
82
Example-16: Angular Position Control System
• Error is difference between reference input 𝒓 𝒕 and out calculated 𝒄 𝒕 and can be
calculated as
𝑒 𝑡 = 𝐾1 𝑟 𝑡 − 𝑐(𝑡)
24
E 𝑠 = 𝑅 𝑆 − 𝐶(𝑆) = 7.64 𝑅 𝑆 − 𝐶(𝑆) (a)
𝜋
• Output of amplifier is
𝐸𝑎 𝑠 = 𝐾𝑝 𝐸 𝑠 = 10𝐸(𝑠) (b)
• Merging eq (a) and eq (b) yields
𝐸𝑎 𝑠 = 76.4 𝑅 𝑆 − 𝐶(𝑆)
• Relation between angular position of motor 𝜽 and angular position of load 𝒄 is given as
1
𝐶 𝑠 = 𝜃(𝑠)
• or 10
10𝐶 𝑠 = 𝜃(𝑠)
83
Example-16: Angular Position Control System
𝜃(𝑠) 6
=
𝐸𝑎 (𝑠) 𝑠(1.08𝑠 + 8.33)
• Final Closed loop transfer function of the system can now be written as
10𝐶(𝑠) 6
=
76.4 𝑅 𝑆 − 𝐶(𝑆) 𝑠(1.08𝑆 + 8.33)
𝐶(𝑠) 42.3
= 2
𝑅 𝑆 𝑠 + 7.69𝑠 + 42.3
84
To download this lecture visit
http://imtiazhussainkalwar.weebly.com/
END OF LECTURE-2
85