Fundamental of Process Control - Chapter 3 - Original
Fundamental of Process Control - Chapter 3 - Original
Chapter 3
Process Modeling
Fundamental Of Process Control
Sensor
2
Fundamental Of Process Control
Content in Chapter 3
2-1 Introduction
2-2 Establishment of differential
equation and linearization
2-3 Transfer function
2-4 Structure diagram
2-5 Signal-flow graphs
3
Fundamental Of Process Control
4
Fundamental Of Process Control
System model
Definition:
Mathematical expression of dynamic relationship
between input and output of a control system.
Process Dynamics
Dynamics is the time varying behavior of
processes.
Chemical processes are dynamically changing
continuously.
Steady-state change indicates where the
process is going and the dynamic characteristics
of a system indicates what dynamic path it will
take.
6
Fundamental Of Process Control
Three models
Differential equation
Transfer function
Frequency characteristic
Modeling methods
Analytic method
According to
A. Newton’s Law of Motion
B. Law of Kirchhoff - Electric engineer
C. System structure and parameters
the mathematical expression of system input
and output can be derived.
Thus, we build the mathematical model
( suitable for simple systems).
9
Fundamental Of Process Control
Modeling methods
System identification method
Building the system model based on the system
input—output signal
This method is usually applied when there are little
information available for the system.
10
Fundamental Of Process Control
u1 (t ) y1 (t )
system
system
u 2 (t ) y 2 (t )
1u1 (t ) + 2u2 (t ) 1 y1 + 2 y2
system
• What is time-invariant
system?
– A system is called
time-invariant if the
parameters are
stationary with
respect to time
during system
operation
– Examples?
13
Fundamental Of Process Control
14
Fundamental Of Process Control
Differential equation
Linear ordinary differential equations
Time-domain model 15
Fundamental Of Process Control
16
Fundamental Of Process Control
17
Fundamental Of Process Control
18
Fundamental Of Process Control
dm d ( V )
Total mass balance : or
dt dt
dmi d ( xi m)
Component mass balance: or
dt dt
19
Fundamental Of Process Control
20
Fundamental Of Process Control
21
Fundamental Of Process Control
22
Fundamental Of Process Control
24
Fundamental Of Process Control
m Displacement
F = ma
F2 = fv ( t ) x(t)
ma = F − F1 − F2
friction dx(t ) d 2 x (t )
f
v= , a=
dt dt
27
Fundamental Of Process Control
mx (t ) + f x (t ) + kx (t ) = F (t )
28
Fundamental Of Process Control
d 2
ML 2 + Mg sin (t ) = 0 L
dt
• It is difficult to analyze nonlinear systems,
however, we can linearize the nonlinear
system near its equilibrium point under Mg
certain conditions.
d 2
ML 2 + Mg (t ) = 0 (when is small)
dt
29
Fundamental Of Process Control
0 input 0 input
30
Fundamental Of Process Control
Methods of linearization
(1)Weak nonlinearity neglected
If the nonlinearity of the component is not within its
linear working region, its effect on the system is
weak and can be neglected.
(2)Small perturbation/error method
Assumption: In the system control process, there are just
small changes around the equilibrium point in the input
and output of each component.
This assumption is reasonable in many practical control
system: in closed-loop control system, once the deviation
occurs, the control mechanism will reduce or eliminate it.
Consequently, all the components can work around the
equilibrium point.
31
Example y Fundamental of Process Control
y=f(x) A(x0,y0) is equilibrium point.
y0 Expanding the nonlinear
A(x0,y0)
function y=f(x) into a Taylor
series about A(x0,y0) yields
0 x0 x
dy 1 d2y
y = f ( x) = y 0 + ( x − x0 ) + 2
( x − x 0 ) 2 +
饱和(放大器)
Saturation dx
(Amplifier) x0 2! dx x0
The input and output only have small
variance around the equilibrium point. x = ( x − x0 ), ( x ) n
→0
dy
y = y0 + ( x − x0 )
dx x0
This is linearized model of
y = kx the nonlinear component.
32
Fundamental Of Process Control
Note:this method is only suitable for systems
with weak nonlinearity.
0 0
继电特性
Relay 饱和特性
Saturation
33
Fundamental Of Process Control
• Flash toilet
Water Q1
flow piston
Q1: inflow per unit time
Q2: outflow per unit time float
Q10=Q20=0
H(t)
Initial water level: H0
Define: Input—Q1,Output—H
Problem: Derive the differential equation valve
of water tank (the cross-sectional area Q2
of the water tank is C).
34
Fundamental Of Process Control
H R ' is a scale
Q2 =
R coefficent.
It is obvious that this formula is nonlinear, On the basis of the
Taylor Series expansion of functions around operation points
(Q10,H0 ),We have
1 H
Q2 = H = ,
2 H 0 R R
35
Fundamental Of Process Control
dH
RC + H = RQ1
dt
36
Fundamental Of Process Control
dm mi mo
= −
dt dt dt
d ( Ah)
= Fi − Fo
dt
d ( h)
A = Fi − Fo
dt
dh Fi − Fo 1
dt
=
A
=
A
(
Fi − Cv Ao h )
37
Fundamental Of Process Control
Exercise
E1. Please build the differential equations of the
following two systems.
x i
Input
C
K1
R1
Input Output A
f
ur (t ) R2 uc (t )
x
Output
B
x o
K2
38
Fundamental Of Process Control
Solutions.
(1) RC circuit
1
R1i1 = C i2 dt
duc dur
i = i1 + i2 R1 R2C + ( R1 + R2 )uc = R1 R2C + R2ur
uc = R2i dt dt
ur = R1i1 + uc
(2) Mass-spring system
K1 ( xi − x ) = f ( x − xo ) dxo dx
f ( K1 + K 2 ) + K1 K 2 xo = K1 f i
K 2 xo = f ( x − xo ) dt dt
39
Fundamental Of Process Control
40
Fundamental Of Process Control
41
Fundamental Of Process Control
Inverse
Solutions of time- Solutions of algebra
domain problems problems
LT
42
Fundamental Of Process Control
Laplace Transform
F ( s) = f (t )
= f (t )e dt − st
0
Examples
Step signal: f(t)=A
F ( s ) = f ( t ) e dt = 0 − st − st
Ae dt = − A e − st =
A
0
s 0
s
44
Fundamental Of Process Control
45
Fundamental Of Process Control
d nf (t ) n n −2 (1)
n
= s F (s ) − s f (0) − s f (0) −
n −1
− f (n −1) (0)
dt
46
Fundamental Of Process Control
(3) Integration
Using Integration
By Parts method
t f ( )d = F (s )
0
to prove )
s
t1 t2 tn
F (s )
o o f ( )d dt1dt2 dtn −1 =
o sn
47
Fundamental Of Process Control
(4)Final-value Theorem
The final-value theorem
relates the steady-state
lim f (t ) = lim sF ( s ) behavior of f(t) to the
t → s →0 behavior of sF(s) in the
neighborhood of s=0
lim f (t ) = lim sF ( s )
t →0 s →
48
Fundamental Of Process Control
(6)Shifting Theorem:
a. shift in time (real domain)
[ f (t − )] =
− s
e F ( s)
50
Fundamental Of Process Control
Examples:
(s − 1)(s + 2)
poles: -3, -4; zeros: 1, -2
(s + 3)(s + 4)
s +1
s 2 + 2s + 2 poles: -1+j, -1-j; zeros: -1
52
Fundamental Of Process Control
− p1t − p2t − pn t
f (t ) = c1e + c2 e + ... + cn e
Parameters pk give shape and numbers ck give magnitudes. 53
Fundamental Of Process Control
1 1
c2 = ( s − 2) =
( s + 1)( s − 2)( s + 3) s =2 15
1 1
c3 = ( s + 3) =
( s + 1)( s − 2)( s + 3) s =−3 10
1 1 1 1 1 1
F (s) = − + +
6 s + 1 15 s − 2 10 s + 3
1 −t 1 2t 1 −3t
f (t ) = − e + e + e 54
6 15 10
Fundamental Of Process Control
Case 2: F(s) has simple complex-conjugate poles
Example 2
Laplace transform
d l
b l = F ( s ) ( s − pi )
l
, bl −1 = F ( s) ( s − pi ) , ,
s = p1
ds s = pi
1 dm N ( s) l 1 d l −1 N ( s) l
bl −m = D( s) ( s − pi ) , b1 = ( s − pi )
m ! ds s = p1 (l − 1)! ds D( s) s = pi
56
Fundamental Of Process Control
Example 3
Laplace transform:
s 3Y ( s) − s 2 y (0) − sy (0) − y(0) + 3s 2Y ( s) − 3sy (0) − 3 y (0)
1
+ 3sY ( s) − 3 y (0) + Y ( s ) =
s
Applying initial conditions: s= -1 is a 3-
1 order pole
Y (s) =
s ( s + 1)3
Partial-Fraction Expansion
c1 b3 b2 b1
Y ( s) = + + +
s ( s + 1) ( s + 1) s + 1
3 2 57
Fundamental Of Process Control
1
Determining coefficients: c1 = s =1
s ( s + 1) s = 0
3
1 1
b3 = [ ( s + 1) 3
]s =−1 = −1 b1 = (2 s −3 ) = −1
s ( s + 1) 3
2! s =−1
d 1 3 d 1 −2
b2 = [ ( s + 1) ] = [ ( )] s =−1 = ( − s ) = −1
ds s ( s + 1) =−
3
s =−1 ds s s 1
1 1 1 1
Y ( s ) = − − −
s ( s + 1) ( s + 1) s + 1
3 2
1 2 −t
y (t ) = 1 − t e − te −t − e −t
2
58
Fundamental Of Process Control
59
Fundamental Of Process Control
Transfer function
Input LTI Output
u(t) system y(t)
TF = G ( s ) =
output y (t )
input u (t ) zero initial condition
Y ( s ) bm s m + bm −1s m −1 + ... + b1s + b0
= = n
U (s) s + an −1s n −1 + ... + a1s + a0 60
Fundamental Of Process Control
Exercise
Find the transfer function of the following
system :
d 2 y (t ) dy (t )
2
+5 + 4 y (t ) = u (t )
dt dt
62
Fundamental Of Process Control
v (t ) i (t )
V ( s)
R v(t ) = Ri(t ) G( s) = =R
I ( s)
i (t )
v (t ) di (t ) V ( s)
L
v (t ) = L G( s) = = sL
dt I ( s)
v (t ) i (t ) V ( s) 1
1 t
C
v (t ) =
C 0 i( )d G( s) = I ( s) = sC
63
Fundamental Of Process Control
64
Fundamental Of Process Control
65
Fundamental Of Process Control
Transfer function Time-domain impulse
response
A
X ( s) = x (t ) = Ae − at
s+a
Position of poles
and zeros
j
-a 0 i
0
66
Fundamental Of Process Control
Time-domain
Transfer function
impulse response
A1 s + B1
X ( s) = x(t ) = Ae− at sin(bt + )
( s + a )2 + b2
-a 0 i
0
67
Fundamental Of Process Control
Time-domain
Transfer function
impulse response
A1 s + B1
X ( s) = 2 x(t ) = A sin(bt + )
s + b2
68
Fundamental Of Process Control
Time-domain impulse
Transfer function
response
A
X ( s) = x(t ) = Aeat
s−a
Position of poles
and zeros
j
0 -a i
69
Fundamental Of Process Control
Time-domain
Transfer function:
dynamic response
A1 s + B1
X ( s) = x(t ) = Aeat sin(bt + )
( s − a )2 + b2
70
Fundamental Of Process Control
71
Fundamental Of Process Control
Characteristic equation
s n + an −1s n −1 + + a1s + a0 = 0
72
Fundamental Of Process Control
num = b m , b m −1 ,..., b0
Descending
den = 1, a n −1 ,..., a 0 power of s
TF in polynomial form
>> Sys = tf(num,den)
>> [num, den] = tfdata (sys)
73
Fundamental Of Process Control
TF in zero-pole form
>> sys = zpk(z, p, k)
>> [z, p,k] = tfdata (sys)
74
Fundamental Of Process Control
Review questions
What is the definition of “transfer function”?
When defining the transfer function, what happens
to initial conditions of the system?
Does a nonlinear system have a transfer function?
How does a transfer function of a LTI system
relate to its impulse response?
Define the characteristic equation of a linear
system in terms of the transfer function.
75
Fundamental Of Process Control
76
Fundamental Of Process Control
Block diagram
The transfer function relationship
Y (s) = G(s)U (s)
U(s) Y(s)
G(s)
77
Fundamental Of Process Control
U(s) Y(s)
G(s)
G( s) = ?
Y ( s)
G ( s) = = G1 ( s) G2 ( s)
U ( s) 78
Fundamental Of Process Control
2.Connection in parallel
U(s) Y1(s)
G1(s)
Y(S) U(s)
G(s) Y(s)
G2(s)
+
Y2(s)
G( s) = ?
Y (s)
G(s) = = G1 ( s) + G2 ( s)
U (s)
79
Fundamental Of Process Control
3. Negative feedback
R(s) U(s) Y(s)
_ G(s)
R(s) Y(s)
M(s)
H(s)
Y ( s) = U ( s)G( s) Y ( s) = R( s) − Y ( s) H ( s) G ( s)
U ( s) = R( s) − Y ( s) H ( s)
Transfer function of a negative feedback system:
G( s) gain of the forward path
M ( s) = =
1 + G ( s) H ( s) 1 + gain of the loop 80
Fundamental Of Process Control
H(s) 81
-H(s)
Fundamental Of Process Control
U r ( s) I1 ( s ) - U1 ( s) 1
1 1 1 U c ( s)
R1 sC1 R2 sC2
- - I 2 ( s)
-1
1 1 1 1
1 R1 1 sC1 1 R2 sC2
U r ( s) I1 ( s ) U1 ( s) I 2 ( s) U c ( s)
-1 -1
82
Fundamental Of Process Control
Note
A signal flow graph and a block diagram
contain exactly the same information
(there is no advantage to one over the
other; there is only personal preference)
83
Fundamental Of Process Control
Mason’s rule
Y ( s) 1 N
M (s) = = M k k
U ( s) k =1
N = total number of forward paths between output Y(s) and input U(s)
M k =path gain of the kth forward path.
=1 − ( all individual loop gains)
+ ( gain products of all possible two loops that do not touch)
−( gain products of all possible three loops that do not touch)
+
k = value of ∆ for that part of the block diagram that does not
touch the kth forward path.
84
Fundamental Of Process Control
Example 1 Find the transfer function for the following block diagram
b1
+ + ⑥ Y(s)
b2
+
① + ② ③ ④ ⑤
U(s) _ 1/s 1/s 1/s b3
_
_
a1
a2
Solution. a3
Forward path Path gain and the determinates are
1
1236 M 1 = 1 (b1 )(1) a a a
s = 1 − − 1 − 22 − 33 + 0
s s s
12346
1 1
M 2 = 1 (b2 )(1) 1 = 1 − 0
s s
1 1 1 2 = 1 − 0
123456 M 3 = 1 (b3 )(1) = 1 − 0
s s s 3 85
Fundamental Of Process Control
Example 1 Find the transfer function for the following block diagram
b1
+ + ⑥ Y(s)
b2
+
① + ② ③ ④ ⑤
U(s) _ 1/s 1/s 1/s b3
_
_
a1
a2
a3
Solution.
Applying Mason’s rule, we find the transfer function to be
Y ( s) N M k k
M ( s) = =
U ( s ) k =1
b1s 2 + b2 s + b3
= 3
s + a1s 2 + a2 s + a3 86
Fundamental Of Process Control
Example 2 Find the transfer function for the following SFG
H4
H6
① 1 ② H1 ③ ④ H3 ⑤ 1 ⑥
U ( s) H2 Y ( s)
H5 H7
Solution.
Forward path Path gain
and the determinates are
123456 M 1 = H1 H 2 H 3
= 1 − ( l1 + l2 + l3 + l4 ) + (l1l3 )
1256 M 2 = H4
Loop path Path gain 1 = 1 − 0
232 l1 = H1 H 5 2 = 1 − H 2 H6
343 l2 = H 2 H 6
454 l3 = H 3 H 7
87
25432 l4 = H 4 H 7 H 6 H 5
Fundamental Of Process Control
Example 2 Find the transfer function for the following SFG
H4
H6
① 1 ② H1 ③ ④ H3 ⑤ 1 ⑥
U ( s) H2 Y ( s)
H5 H7
Solution.
Applying Mason’s rule, we find the transfer function to be
Y ( s) N M k k
M ( s) = =
U ( s ) k =1
H1 H 2 H 3 + H 4 − H 4 H 2 H 6
=
1 − H1 H 5 − H 2 H 6 − H 3 H 7 − H 4 H 7 H 6 H 5 + H 1 H 5 H 3 H 88