Beruflich Dokumente
Kultur Dokumente
Chapter 2
Mathematical Models
of
Systems
Outline
Introduction
Differential Equations of Physical Systems
Linear Approximation of Physical Systems
The Laplace Transform
The Transfer Function of Linear Systems
Block Diagram Models
Signal-Flow Graphs Models
Introduction
To understand and control complex physical systems,
we need their mathematical models.
To obtain mathematical models, we need the
relationship between the system variables.
As the systems under consideration are dynamic in
nature, then this relationship is in the form of
differential equations.
Differential Equations
In general, the linear differential equation of an nthorder system is written:
n
d y (t )
dt
a n 1
n 1
dt
y (t )
n 1
a1
dy ( t )
dt
a o y (t ) f (t )
a o y (t ) f (t )
d y (t )
dt
a1
dy ( t )
dt
a o y (t ) f (t )
ext
Ma
f (t )
f ( t ) Ma ( t ) M
d y (t )
dt
dv ( t )
dt
Dr. Shaukat Ali
Viscous Damper:
f (t ) B
dy ( t )
Bv
dt
f ( t ) Ky ( t ) B
dy ( t )
dt
d y (t )
dt
ext
d (t )
2
(t ) J (t ) J
dt
ME464-Sys Dyn & Ctrl Spring-2013
d (t )
dt
Dr. Shaukat Ali
Viscous damper:
(t ) B
d (t )
dt
ext
(t ) s (t ) d (t ) J (t )
(t ) K (t ) B
d (t )
dt
d (t )
2
dt
v (t )
I (t )
v (t )
R
L
Inductor:
I (t )
v ( t )dt
Capacitor:
I (t ) C
dv ( t )
I (t )
v (t )
C
I (t )
v (t )
dt
ME464-Sys Dyn & Ctrl Spring-2013
Voltage law:
The algebraic sum of all voltage drops around a complete closed loop
is zero.
r (t )
v (t )
R
dv ( t )
dt
v ( t ) dt
L
Dr. Shaukat Ali
Analogy
Spring-Mass-Damper system:
dv ( t )
f ( t ) K v ( t ) dt Bv ( t ) M
dt
RLC circuit:
r (t )
v ( t ) dt
v (t )
R
dv ( t )
dt
Rotational motion:
( t ) K ( t ) dt B ( t ) J
d (t )
dt
Linearization
(Linear Approximation)
Linearization
A linear system satisfies the following properties:
Superposition
Homogeneity
Linear
system
a1u 1 ( t ) a 2 u 2 ( t )
a1 y1 ( t ) a 2 y 2 ( t )
Example:
Test whether
f(x) 5x
is linear.
Linearization
Examples of physical systems
RC
dy ( t )
LC
d y (t )
dt
dt
d y (t )
dt
dy ( t )
y (t ) u (t )
u (t )
dt
dy ( t )
dt
d y (t )
dt
dy ( t )
f ( y ( t )) u ( t )
dt
B
Linearization
Examples of physical systems
2
d y (t )
dt
dy ( t )
f ( y ( t )) u ( t )
dt
Linearization
To find the linear model of a nonlinear system f(y)
We expand f(y) into a Taylor series around the operating
point or equilibrium point (yo, f(yo)):
f ( y ) f ( yo )
y o df
1!
dy
y yo
yo d f
2!
dy
2
y yo
Linearization
Linearization of differential equations
Example: Pendulum oscillator model
T ( ) MgL sin
dT
d
( o )
o
T ( ) MgL
This approximation is reasonably accurate for
ME464-Sys Dyn & Ctrl Spring-2013
f t e
st
dt
t0
Theorem 3: Differentiation
df ( t )
sF ( s ) f ( 0 )
dt
d 2 f (t )
df ( t )
2
s F ( s ) sf ( 0 )
2
dt
dt
t0
0
f (t )
c
t0
F (s)
f t e
st
dt
t0
F (s)
ce
t0
st
dt
c
s
st
c
s
c
s
1
s
t0
t0
F (s)
c
s
Exponential function:
0
f ( t ) at
e
t0
t0
F (s)
1
sa
Sinusoidal function:
0
f (t )
sin t
t0
t0
F (s)
s
2
Table of LTs
a o y (t ) f (t )
Let f ( t ) 0 , y ( 0 ) y o ,
Now, as:
y ( t ) Y ( s )
(1)
ao
dy ( t )
sY ( s ) y ( 0 )
dt
Y s
yo
s
d y (t )
dt
dy ( t )
Ky ( t ) f ( t )
(1)
dt
Let
f (t ) 0 ,
y (0) yo ,
dy ( t )
dt
0
t0
Ms
B yo
Ms Bs K
F s f t
1
2 j
F s e
st
ds
Partial-Fraction Expansion
Consider the following Laplace Transform function:
N s
Ms B y o
G s
Y s
2
D s
Ms Bs K
n 1
an2 s
n2
a1 s a o
1
Characteristic equation: D s 0
Roots (s1, s2, sn) of this characteristic equation are called
the poles of the system.
Distinct poles
Repeated poles
Partial-Fraction Expansion
Case 1: Distinct poles
G s
N s
D s
s2
s 1 s 3
k1
k2
s 1 s 3
k 2 s 3
N s
D s
D s
s 1
N s
s 3
1
2
Partial-Fraction Expansion
The simplified function is:
G s
1
2 s 1
1
2 s 3
0 .5 e
3t
Partial-Fraction Expansion
Case 2: Repeated poles
Consider the function
G s
N s
D s
s2
s 1 2
k1
k2
s 1 s 12
N s
D s
1
s 1
d
2 N s
k1
s 1
ds
D s
1
s 1
Partial-Fraction Expansion
The simplified function is:
G s
s 1 s 12
te
Example
Solve the following 2nd order linear ODE
d y t
2
dt
dy t
dt
2 y t 5 u s t
dy t
dt
2
t0
Transfer Function
Transfer Function
The ratio of the Laplace Transform of the output variable to
the Laplace Transform of the input variable, with all initial
conditions to be zero.
G s
Output
Input
s
s
dt
dy t
dt
r t
Ky t r t
G s
Ms Y s BsY s KY s R s
2
Y s
R s
1
Ms Bs K
2
Transfer Function
Write the transfer function of the following circuit,
where:
Input: source voltage v1
Output: voltage drop across capacitor v2
voltage
v f t field voltage
t rotor displaceme nt
i f t field current
i a t armature current
G s
s
V s
Armature control
(variable armature voltage and fixed field voltage)
s
V f s
angular displaceme nt
field voltage
s G s V f s
Km
s Js B L f s R f
V f s
Tm s K m I f s
v f t R f i f t L f
dt
In s-domain
I f s
L f s
V f s
Km
f
L f s
V f s
d t
dt
B t
d t
dt
In s-domain:
T L s s Js B s
Now:
G s
Tm s T L s Td s
s
V f s
Km
s Js B L f s R f
L f s
Tm s
I f s
Km
T L s Tm s Td s
TL s
Js B
s
s
1
s
Block diagram
s
V a s
angular displaceme nt
Armature voltage
s G s V a s
Km
s R a L a s Js B K b K m
V a s
Tm s K m I a s
di a t
dt
v b t
In s-domain
I a s
V a s K b s
Ra La s
Km
Ra La s
V a s K b s
s
V a s
Km
s R a L a s Js B K b K m
N1
N2
Tm
TL
N1
N2
V 2 s
Kt
density of fluid
q o (t ) :
h (t ) :
qi :
volumetric
H s
Q i s
head
inflow
Mass balance:
mass flow in mass flow out = accumulation rate of mass in tank
ME464-Sys Dyn & Ctrl Spring-2013
density of fluid
C:
specific heat
volumetric
q:
Ti :
To :
G s
To s
Ti s
Outlet Temperatur e
Inlet Temperatur e
Energy balance:
energy in energy out = accumulation of energy in tank
ME464-Sys Dyn & Ctrl Spring-2013
Introduction
So far:
Dynamic systems are represented by mathematical models:
Set of simultaneous differential equations in time domain.
Set of linear algebraic equations in the s-domain.
Transfer function:
Mathematically relating the output variable to the input variable in the
s-domain.
Output
Input
s
s
Input s
G s
Output s
Dr. Shaukat Ali
Introduction
Block Diagram Model Usage
BDM provides a better understanding of the composition
and interconnection of the components of a system.
BDM describes the input-output relationship throughout the
system with the help of transfer functions.
Ref. +
Input
Error
Actuating
Controller
signal
Measured output
Actuator
Process
or
Plant
Actual
Output
Feedback
Introduction
Linear spring
Transfer function:
G s
X s
F s
X s
Introduction
Field control DC motor
Transfer function: G s
V f s
s
V f s
Km
s Js B L f s R f
Km
s Js B L f s R f
Signals
Arrowed lines from one block to another representing input/output
variables.
Error
_
Controller
Actuating
signal
Measured output
ME464-Sys Dyn & Ctrl Spring-2013
Actuator
Process
or
Plant
Actual
Output
Feedback
Dr. Shaukat Ali
+
_
E s R s Y s
Y s
R s
+
+
E s R s Y s
Y s
ME464-Sys Dyn & Ctrl Spring-2013
G s
U s
Y s
Y s G s U s
Transfer function
G s
Y s
U s
X 3 s G 1 s G 2 s X 1 s
X 2 s
X 1 s
X 2 s G1 s G 2 s X 1 s
X 1 s
ME464-Sys Dyn & Ctrl Spring-2013
G 1 s G 2 s
X 2 s
G a s
G p s
H s
Transfer function:
Y s
R s
G s
1 G s H s
Forward-path TF:
G s G c s G a s G p s
Loop TF: L s G s H s
ME464-Sys Dyn & Ctrl Spring-2013
X2
X1
ME464-Sys Dyn & Ctrl Spring-2013
1 G
X2
Dr. Shaukat Ali
X 3 G X 1 X 2
X 3 GX 1 GX
X 3 GX 1 X 2
X3
G
X1
X2
G
X 2 GX
X1
X2
G
Introduction
Signal-flow graphs (SFG)
A graphical representation of control systems (a simplified
version of Block diagram model)
The cause-and-effect relationship among the variables of a
set of linear algebraic equations (like we have in case of linear
control systems)
A diagram consisting of nodes that are connected by several
directed branches.
s G s V f s
V f s
G s
s
Dr. Shaukat Ali
Y 3 s G 23 s Y 2 s G 43 s Y 4 s
Y 4 s G 24 s Y 2 s G 34 s Y 3 s
N
For N equations; Y j s G kj s Y k s ,
j 1 N
k 1
Path
A branch or a continuous sequence of branches that can be
traversed from one node to another node
Forward path
A path that starts at an input node and ends at an output node with
no node traversed more than once (example: Y1 to Y2 to Y3 )
Loop
A path that originates and terminates on the same node with no
other node traversed more than once. (four loops in example)
ME464-Sys Dyn & Ctrl Spring-2013
Forward-path gain
The path gain of a forward path
Loop gain
The path gain of a loop
Non-Touching loops
Two loops are non-touching if they do not have a common
node
ME464-Sys Dyn & Ctrl Spring-2013
P2 G 5 G 6 G 7 G 8
4 Loops:
L1 G 2 H 2
L3 G 6 H 6
L2 G 3 H 3
L4 G 7 H 7
Non-touching loops:
L1 and L3, L1 and L4, L2 and L3, L2 and L4
ME464-Sys Dyn & Ctrl Spring-2013
output
P
k
k 1
input
P1 1 P2 2 PN N
L
n ,m
nontoching
Lm
Lm L p
n ,m , p
nontoching
D s
P P P
Y s
N
T s
R s
k 1