Professional Documents
Culture Documents
Models of systems
Chapter 3
Models of systems
Dynamic models
Electrical circuits
Mechanical systems
Electromechanical systems
Linearized models of nonlinear physical systems
Block diagram models
Signal-flow graph models
Masons gain formula
32
Models of systems
Dynamic models
most physical systems are complex, so we need models to represent the physical
systems
33
Models of systems
LCCODEs
usually the systems of interest can be represented by linear constant coefficient
ordinary differential equations
example:
system
through-variable across-variable
electrical
current, i
voltage, v
translational
force, F
velocity, v
rotational
torque, T
angular velocity,
fluid
flow rate, Q
pressure, P
thermal
heat flow, q
temperature, T
although v is used for voltage in electrical circuits, and velocity in translational
mechanical systems, it can be distinguished within the context
34
Models of systems
the following systems and variables are analogous having parameters as follows
1
1
1
C1 = M1, C2 = M2, L = , R1 = , R2 =
K
b1
b2
k
b2
v2
R2
b1
m1
v2
v1
m2
v1
C1
R1
C2
35
Models of systems
Electrical circuits
Mathematical model of electrical circuit is derived using Kirchhoffs laws
loop or mesh analysis
node analysis
example:
L
+
R
+
vS
vC
36
Models of systems
+ R + Ls I(s) = VS (s)
Cs
1
I(s) = VC (s)
Cs
thus, transfer function VC (s)/VS (s) is
1
1
VC (s)
LC
=
=
R
1
VS (s) LCs2 + RCs + 1 s2 + L s + LC
37
Models of systems
38
Models of systems
example:
111111111111
000000000000
000000000000
111111111111
p
k
kx
m
m
b
bx
111111111111
000000000000
000000000000
111111111111
000000000000
111111111111
39
Models of systems
Ti = J
3 10
Models of systems
J
b
T b k = J J + b + k = T
1
(s)
=
T (s) Js2 + bs + k
3 11
Models of systems
Tm
Jl
k
m
Motor
Load
A motor has torque Tm, inertia Jm, and damper bm. It is connected to a load via
torsional spring k
Jmm = Tm bmm k(m l )
The load has inertia Jl and is connected to motor via spring k
Jl l = k(m l )
3 12
Models of systems
Forcecurrent analogy
A mass-spring-damper system is modeled using the Newtons laws
m
x + bx + kx = f
A parallel RCL circuit is described by KCL
iC + iL + iR = iS
v
1Z
C v + +
vdt = iS
R L
magnetic flux relates to induced voltage v by
= v
Hence, we obtain the dynamic model
1 1
C + + = iS
R
L
3 13
Models of systems
Forcevoltage analogy
A mass-spring-damper system is modeled using the Newtons laws
m
x + bx + kx = f
A series RCL circuit is described by KVL
vL + vR + vC = vS
1Z
di
L dt + Ri +
idt = vS
C
Electrical charge q relates to current i by
dq
=i
dt
Hence, we obtain the dynamic model
1
L
q + Rq + q = vS
C
3 14
Models of systems
compare physical parameters and variables between mechanical and electrical systems
force-current analogy
mechanical system
force, f
mass, m
damper, b
spring, k
displacement, x
velocity, x
electrical system
current, i
capacitance, C
resistance1, R1
inductance1, L1
magnetic flux,
voltage, v
force-voltage analogy
mechanical system electrical system
force, f
voltage, v
mass, m
inductance, L
damper, b
resistance, R
spring, k
capacitance1, C 1
displacement, x
charge, q
velocity, x
current, i
3 15
Models of systems
Electromechanical systems
the dynamic model of a DC motor system is divided into the following components
air-gap flux linearly varies with field current
(t) = Kf if (t)
motor torque linearly relates to air-gap flux and armature current
tm(t) = K1(t)ia(t) = K1Kf if (t)ia(t)
load torque varies with and
d2
d
tl (t) = J 2 (t) + b (t)
dt
dt
Tl (s) = (Js2 + bs)(s)
by the Newtons laws, motor torque is equal to load torque
Tm(s) = Tl (s)
3 16
Models of systems
Km
Tm
1
Js+b
1
s
3 17
Models of systems
3 18
Models of systems
1
Ra +La s
ia
Tm
Km
Kb
notice that this system is with feedback
1
Js+b
1
s
3 19
Models of systems
Models of sensors
Potentiometers are position sensors. the outputs are in the form of voltage signal.
+
R1
v1
R
R2
+
v2
Tachometers are velocity sensors. the outputs are in the form of voltage signal.
Encoders are position sensors. the outputs are in the form of digital signal.
3 20
Models of systems
Accelerometers are acceleration sensors. the outputs are in the form of voltage
signal.
1111
0000
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
1111
0000
0000 x
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000 y
1111
0000
1111
0000
1111
i
M
k
define xo = y xi
2
v
u
u
u
u
t
Xo(s)
s
s
k
= 2
, s = j j
Xi(s) s + (b/m)s + (k/m) (k/m)
m
3 21
Models of systems
Models of interconnections
Gear trains, levers, timing belts
111
000
000
111
000
000
111
N111
1
000
111
000
111
000
111
000 Gear 1
111
000
T1 1 111
000
111
000
111
000
111
000
111
000
111
T2 2
000
111
000
111
000
111
000
111
000
111
000
Gear 2111
000
111
N
000
111
000 2
111
N1
Gear Ratio n = N
2
N22 = N11 or 2 = n1
T22 = T11 or T2 = (1/n)T1
11111
00000
00000
11111
0000
1111
r
0000
1111
x
1111111
0000000
00000000000000000000000000000000000
11111111111111111111111111111111111
00000000000000000000000000000000000
11111111111111111111111111111111111
x = r
3 22
Models of systems
Backlash, deadzone
y
x
b
x
y
b
3 23
Models of systems
111
000
000
111
000
111
000
000
111
1 111
000
111
000
111
000
111
000
111
000
111
000
N2111
000
111
000
111
000
111
000 T2
111
1111
0000
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
3 24
Models of systems
where
Jeq = Jn2,
T1
Beq = Bn2,
Keq = Kn2
Beq
Jeq
Keq
1111
0000
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
0000
1111
3 25
Models of systems
H +h
Q + qo
given Q is steady state liquid flow rate and H is steady state head, for laminar flow,
the resistance Rl is obtained as
Rl = H/Q
this is analogous to electrical resistance. for turbulent flow, the resistance Rt is
obtained as
Rt = 2H/Q
when there are small deviations of inflow rate and outflow rate, the dynamic is given by
1
Ogata, Modern Control Engineering, Prentice Hall, 4th edition, 2002, pp. 152.
3 26
Models of systems
3 27
Models of systems
State equations
11
00
00
11
00
11
00
11
00
11
00
11
00
11
00
11
f
m
3 28
Models of systems
0
1 x1 0
+ 1 f
x2
mk mb
m
x
y = 1 0 1
x2
x 1
=
x 2
3 29
Models of systems
Y (s)/F (s) = 1 0
s
k
m
1
s + mb
0
1
m
1
ms2 + bs + k
3 30
Models of systems
Nonlinearities
Linear model is described by state space equation and transfer function
x(t)
y = Cx
xmin
xmax
saturation
x
xmin
xmax
deadzone
3 31
Models of systems
1
g
= b
sin + 2 Ti
l
ml
v
u
u
u
t
3 32
Models of systems
v
u
u
u
t
g
1
+ 2 Ti
l
ml
3 33
Models of systems
+v
S
20 V
+
vL
3 34
Models of systems
i
+
i
d(ie + i)
e
+ 20 + vS (t)
= 10 log
dt
2
ie is constant, thus
die
dt
10 log
+ + 20 + vS (t)
dt
2
ie
10
= i + vS (t)
ie
3 35
Models of systems
di
dt
3 36
Models of systems
3 37
Models of systems
f
(x,
u)
f
(x,
u)
x(t)
x
+
u
x (xe,ue)
u (xe,ue)
x(t)
Ax + Bu
A=
f (x, u)
=
x
f1
x1
f2
x1
..
fn
x1
f1
x2
f2
x2
f1
xn
f2
xn
.. .. ,
fn
fn
x2
xn
B=
f (x, u)
=
u
f1
u
f2
u
..
fn
u
3 38
Models of systems
Magnetic levitation
consider magnetic levitation system (used in electric train)
u
+
f=
m
i2
y
dynamic state equations using the Newtons laws for the mass
i2
d2 y
Mg
= M 2
y
dt
and using KVL for the circuit loop
di
L + Ri = u
dt
3 39
Models of systems
x2 = y,
x3 = i
1 x23
x 2 =
+g
M x1
1
R
x 3 = x3 + u
L
L
suppose the system has an equilibrium point at the chosen height, ye
x1,e = ye,
x2,e = 0,
x3,e = M gye
0 1
0
dx
g
g
0
2
0
= ye
x
+
u
Mye
dt
1
R
0 0 L
L
3 40
Models of systems
u
G
for linear time-invariant (LTI) systems, we use
transfer functions represent the components
arrows indicate the flow of signals
the input-output relationship is given by
Y (s) = G(s)U (s)
t
0 g(t
)u( )d
3 41
Models of systems
x3
x1
x3
+
x2
x2
1
G
x1 +
+
x2
x1
x2
x3
+
+
3 42
Models of systems
x2
x1
x2
x2
x2
x1
x2
x1
G
x1
G
x1
1
G
3 43
Models of systems
x2
x1
G
1+GH
H
example: determine transfer function from R to Y
G3
R +
G1
G2
H2
H1
+ + Y
x2
3 44
Models of systems
G1
G2
++
Y
G2
H2
H1
add parallel blocks and eliminate inner feedback loop
R
1
1+G2 H2
G1 G2 + G3
H1
3 45
Models of systems
T (s) =
G1 G2 + G3
1 + G2 H 2 + G1 G2 H 1 + G3 H 1
3 46
Models of systems
G1
G2
H2
H1
+ + Y
3 47
Models of systems
first, we rewrite the block diagram representation to Signal-flow graph (SFG) , i.e.,
a directed line segment representation
G3
R
E1
G1
E2
G2
H2
H1
E3
3 48
Models of systems
Elements of SFG
branch: a uni-directional path segment relating the dependency of input and
output variable
a branch is equivalent to block of a block diagram
node: (point or junction) input or output signal
input node: node having only outgoing branches
output node: node having only incoming branches
node variable: sum of all signals entering node
path: a branch or continuous sequence of branches starting from one node to
another node
loop: a closed path originates and terminates on the same node without passing a
node twice
Models of systems
3 49
forward path: starts at an input node, ends at the output node, and touches no
node more than once.
path or loop gain: product of branch gains for the path or loop
3 50
Models of systems
Then, the closed-loop transfer function from input variable R(s) to output variable
Y (s) is given by
Y (s)
=
T (s) =
R(s)
P k k
3 51
Models of systems
Example 1
G3
R
E1
G1
E2
G2
E3
H2
H1
there are five nodes including input R and output Y and there are three loops with
loop gains as follows.
1. E2 E3 E2 : L1 = G2H2
2. E1 E2 E3 E1 :
L2 = G1G2H1
3. E1 E3 E1 : L3 = G3H1
there are two forward paths with forward gain as follows
1. R E1 E2 E3 Y : P1 = G1G2
2. R E1 E3 Y :
P 2 = G3
3 52
Models of systems
1 (L1 + L2 + L3)
1 + G2 H 2 + G1 G2 H 1 + G3 H 1
1
1
2
X
k=1
P k k
G1 G2 + G2
1 + G2 H 2 + G1 G2 H 1 + G3 H 1
3 53
Models of systems
Example 2
G3
R +
+
G1
G2
H3
H2
H1
+ +
3 54
Models of systems
E1
E 2 G1
E 3 G2
H3
H1
E4
E5
H2
there are seven nodes including input R and output Y and there are four loops with
loop gains as follows
1. E1 E2 E3 E4 E5 E1 :
2. E2 E3 E4 E2 :
3. E1 E5 E1 :
L1 = G1G2H1
L2 = G1G2H3
L3 = G3H1
4. E3 E4 E5 E3 :
L4 = G2H2
P 2 = G3
P 1 = G1 G2
3 55
Models of systems
2
X
k=1
P k k
3 56
Models of systems
Summary
models represent the physical systems and describe the system behavior, and the
input/output relationship
mathematical models of electrical circuits and mechanical systems are derived using
Kirchhoffs laws and the Newtons laws, respectively
we use linearization technique to approximate nonlinear systems around the
equilibrium points which result in linear models
block diagram models can be represented by a directed line segment called
signal-flow graph (SFG)
Masons gain formula is used to compute the closed-loop transfer function of
complex block diagrams