Lecture 3-_mathematical_modeling_of_dynamic_systems-
Lecture 3-_mathematical_modeling_of_dynamic_systems-
Instrumentation
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 ) I c (s )
C Cs
Inductor
diL (t )
v L (t ) L VL (s ) LsI L (s )
dt 12
Transfer function for Electrical Systems
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
vi (t ) i(t )R i(t )dt
C
1
vo (t ) i(t )dt
C
14
Example#1
1 1
vi (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
15
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
16
Example#1
Vo (s ) 1
Vi (s ) 1 RCs
17
Example#2
• Find the transfer function G(S) of the following
two port network.
18
Example#2
• Simplify network by replacing multiple components with
their equivalent transform impedance.
Z
Vi(s) I(s) C Vo(s)
19
Transform Impedance (Resistor)
iR(t) IR(S)
+ +
Transformation
vR(t) ZR = R VR(S)
- -
20
Transform Impedance (Inductor)
IL(S)
iL(t)
+ +
21
Transform Impedance (Capacitor)
ic(t) Ic(S)
+ +
- -
22
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
23
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
24
Equivalent Transform Impedance
• Find out equivalent transform impedance of
following arrangement.
L2
L2
R1 R2
25
Back to Example#2
L
Z
1 1 1
Z R Ls
RLs
Z
1 RLs
26
Example#2
RLs
Z
1 RLs
L
Z
1 1
Vi (s ) I (s )Z I (s ) Vo (s ) I (s )
Cs Cs
27
Modeling of Electronic Systems
28
Operational Amplifiers
Vout Z2 Vout Z2
1
Vin Z1 Vin Z1
29
Example#3
• Find out the transfer function of the following
circuit.
Vout Z2
Vin Z1
30
Example#4
• Find out the transfer function of the following
circuit and draw the pole zero map.
100kΩ
10kΩ
31
Modeling of Mechanical Systems
32
Basic Types of Mechanical Systems
• Translational
– Linear Motion
• Rotational
– Rotational Motion
33
TRANSLATIONAL MECHANICAL SYSTEMS
34
Basic Elements of Translational Mechanical Systems
Translational Spring
i)
Translational Mass
ii)
Translational Damper
iii)
35
Transfer function for Mechanical
Systems
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 x2 ) is the deformation. F
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 ( x 1 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 1000kg
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 kx
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
Pole-Zero Map
2
1.5
M 1000kg 1
k 2000 Nm 1 0.5
Imaginary Axis
1 0
C 1000 N / ms
-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 ( x 2 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
ROTATIONAL MECHANICAL SYSTEMS
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 B4
3
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
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
N1 Number of Teeth of Driving Gear
T2 N2 N1
T1 T2
T1 N1 N2 64
Transfer Function of Mechanical Systems with Lossless Gears
Each gear is assumed lossless, which implies that the gear has
negligible inertia and the friction is minimal and can be ignored if
compared to the applied torque. Also =
N2
( Js 2 Ds K ) 2 ( s ) T2 ( s ) T1 ( s )
N1
Equivalent system at the
output after reflection of
2 N1 N2 input torque
( Js Ds K ) 1 ( s ) T1 ( s )
N2 N1
Modeling of Electromechanical
Systems
67
D.C Drives
Tmotor Jω Bω
69
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 ω
t
stan
n
=co
Vf
dia
La Ra i a K b ω u
dt
Jω
B-K t ia 0
70
Example-14: Armature Controlled D.C Motor
Ω(s) Kt
U(s) La Js 2 JRa BLa s BRa K t K b
71
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 )
72
Example-14: Armature Controlled D.C Motor
If output of the D.C motor is angular position θ then we know
Ra La
d B
or (s ) s (s ) ia
dt u eb T J
θ
t
stan
= con
Vf
Which yields following transfer function
(s) Kt
U(s) s[ JRa s ( BRa K t K b )]
73
Example-15: Field Controlled D.C Motor
Rf Ra La
if
ef Lf Tm J ea
B ω
di f
e f i f R f L f
dt
Mechanical Subsystem
Tm Jω Bω
74
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 )
75
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) s Js B ( L f s R f )
76
Example-16: Angular Position Control System
Ra La N1
+
JM
+ + + BM
ia BL
kp
r
e ea e b T θ JL
c
_ _ _
N2
if = Constant
-
77
Numerical Values for System constants
ngular displacement of the reference input shaft
ngular displacement of the output shaft
ngular displacement of the motor shaft
gain of the potentiometer shaft = 24/π
amplifier gain = 10
armature voltage
back emf
armature winding resistance = 0.2 Ω
armature winding inductance = negligible
rmature winding current
back emf constant = 5.5x10-2 volt-sec/rad
motor torque constant = 6x10-5 N-m/ampere
moment of inertia of the motor = 1x10-5 kg-m2
iscous-friction coefficients of the motor = negligible
moment of inertia of the load = 4.4x10-3 kgm2 78
-2
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
𝑁1
( )
2
1
𝐽 𝑒𝑞= 𝐽 𝑚 + 𝐽 𝐿 =1 ×10− 5+ × 4.4 ×10− 3=5.4 ×10− 5
𝑁2 10
( )
2
𝑁1
( )
2
1
𝐵𝑒𝑞 =𝐵𝑚 + 𝐵 𝐿= × 4 × 10− 2=4 ×10 −4
𝑁2 10
𝜃 ( 𝑠) 6
=
𝐸𝑎 ( 𝑠) 𝑠 (1.08 𝑠+ 8.33)
79
Example-16: Angular Position Control System
• Error is difference between reference input and out calculated and can be calculated as
𝑒 (𝑡 )=𝐾 1 [ 𝑟 (𝑡 ) − 𝑐 (𝑡 ) ]
E (a)
• Output of amplifier is
𝐸 ( 𝑠 ) =𝐾 𝑝 𝐸 ( 𝑠 )=10 𝐸 (𝑠)
𝑎
• Merging eq (a) and eq (b) yields
(b)
𝐸 ( 𝑠 ) =76.4
𝑎 of motor and angular position of load is given as
• Relation between angular position
1
• or 𝐶 ( 𝑠 )= 𝜃 (𝑠 )
10
10 𝐶 ( 𝑠 )=𝜃(𝑠)
80
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
81
END
82