Process Dynamics and Control Seborg 2nd
Process Dynamics and Control Seborg 2nd
7.1
T '( s ) Ke −θs
=
Qi '( s ) τs + 1
T (∞) − T (0) (124.7 − 120) o
F
K= = = 0.118
∆qi 540 − 500 gal/min
θ = 3:09 am – 3:05 am = 4 min
Assuming that the operator logs a 99% complete system response as “no
change after 3:34 am”, 5 time constants elapse between 3:09 and 3:34 am.
Therefore,
T '( s ) 0.188e−4 s
=
Qi '( s ) 5s + 1
To obtain a better estimate of the transfer function, the operator should log
more data between the first change in T and the new steady state.
7.2
7-1
(0.8 − 0.6)
τ = 0.6 + (6.145 − 6.07) min = 0.74 min
(6.18 − 6.07)
b)
ti zi ti zi
0.0 0.00 1.4 -1.92
0.2 -0.28 1.6 -2.14
0.4 -0.55 1.8 -2.43
0.6 -0.82 2.0 -2.68
0.8 -1.10 3.0 -3.93
1.0 -1.37 4.0 -4.62
1.2 -1.63 5.0 -∞
1 13Stz − St S z
slope = − = (1)
τ 13Stt − ( St )
2
Using definitions,
Substituting in (1),
1
− = −1.213 τ = 0.82 min
τ
7-2
d)
6.8
6.6
6.4
6.2
Experimental data
Model a)
5.8 Model b)
Model c)
5.6
5.4
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Figure S7.2. Comparison between models a), b) and c) for step response.
7.3
a)
T1′( s ) K1 T2′( s ) K2
= =
Q′( s ) τ1s + 1 T1′( s ) τ2 s + 1
T2′( s ) K1 K 2 K1 K 2 e −τ2 s
= ≈ (1)
Q′( s ) (τ1s + 1)(τ2 s + 1) (τ1s + 1)
where the approximation follows from Eq. 6-58 and the fact that τ1>τ2 as
revealed by an inspection of the data.
Let z1, z2 be the natural log of the fraction incomplete response for T1,T2,
respectively. Then,
7-3
T (50) − T1 (t ) 18 − T1 (t )
z1 (t ) = ln 1 = ln
T1 (50) − T1 (0) 8
T (50) − T2 (t ) 26 − T2 (t )
z2 (t ) = ln 2 = ln
T2 (50) − T2 (0) 6
A graph of z1 and z2 versus t is shown below. The slope of z1 versus t line
is –0.333 ; hence (1/-τ1)=-0.333 and τ1=3.0
T1 ' ( s ) 2.667
= (2)
Q ' ( s ) 3s + 1
T2 ' ( s ) 0.75
= (3)
T1 ' ( s ) 1.15s + 1
0.0
0 5 10 15 20
-1.0
-2.0
-3.0
z 1,z 2
-4.0
-5.0
-6.0
-7.0
-8.0
time,t
26
24
22
20
T1 , T2
18
16
14 T1
T2
12 T1 (experimental)
T2 (experimental)
10
0 2 4 6 8 10 12 14 16 18 20 22
time
Figure S7.3b. Comparison of experimental data and models for step change
7-4
7.4
2 1.5
Y (s) = G( s) X ( s) = ×
(5s + 1)(3s + 1)( s + 1) s
y (t ) = -75/8*exp(-1/5*t)+27/4*exp(-1/3*t)-3/8*exp(-t)+3 (1)
y (t )
z (t ) = ln 1 −
3
0.0
-1.0 0 10 20 30 40 50
-2.0
-3.0
-4.0
z(t)
-5.0
-6.0
-7.0
-8.0 z(t) = -0.1791 t + 0.5734
-9.0
time,t
Hence,
θ = 3.2
2e −3.2 s
G (s) =
5.6s + 1
Using either Eq. 1 or the plot of this equation, t20 = 4.2 , t60 = 9.0
Using Fig. 7.7 for t20/ t60 = 0.47
ζ= 0.65 , t60/τ= 1.75, and τ = 5.14
7-5
2
G (s) ≈
26.4 s + 6.68s + 1
2
1.5
Third-order model
y(t)
0.5
0
0 5 10 15 20 25 30 35 40
time,t
7.5
Thus a straight line tangent to the point of inflection will approximate the
step response. Two parameters must be found: K and θ (See Fig. S7.5 a)
1.- The process gain K is found by calculating the slope of the straight
line.
1
K= = 0.074
13.5
2.- The time delay is evaluated from the intersection of the straight line
and the time axis (where y = 0).
θ = 1.5
7-6
0.074 −1.5 s
Therefore the model is G(s) = e
s
y(t)
Slope = KM
Table.- Output values from Fig. E7.5 and predicted values by model
1
0.9
0.8
0.7
0.6
Output
0.5
0.4 Experimental data
Integrator plus time delay model
0.3
0.2
0.1
0
0 5 10 15 20 25 30
Time
Figure S7.5b. Comparison between experimental data and integrator plus time
delay model.
7-7
7.6
b) Smith’s method
From the graph, t20 = 3.9 , t60 = 9.6 ; using Fig 7.7 for t20/ t60 = 0.41
1
G (s) ≈
(4.8s + 1) 2
Nonlinear regression
In accounting for Eq. 5-48, the time constants were selected to minimize
the sum of the squares of the errors between data and model predictions.
Use Excel Solver for this Optimization problem:
1
G (s) ≈
(6.95s + 1)(6.76s + 1))
7-8
1
0.9
0.8
0.7
0.6
Output 0.5
0.4
0.3
0.2
7.7
10e −4 s
G (s) = , τ1 > τ2
(τ1s + 1)(τ2 s + 1)
7-9
−θ p s 3 1
G pipe ( s ) = e , θp = × = 0.1min
0.5 60
Assuming that the thermocouple has unit gain and no time delay
1
GTC ( s ) = since τ2 << τ1
(τ2 s + 1)
Then
10e −3 s
GHE ( s ) = , so that
(τ1s + 1)
10e −3 s −0.1s 1
G ( s ) = GHE ( s )G pipe ( s )GTC ( s ) = (e )
τ1s + 1 τ2 s + 1
7.8
K K M K M
Y (s) = U ( s) = =
s (τs + 1) s (τs + 1) s (τs + 1) s 2
A B C
Y(s) = + 2+ hence y(t) = -KMτ + KMt − KMτe-t/τ
s s τs + 1
In order to evaluate the parameters K and τ, important properties of the
above expression are noted:
These equations imply that after an initial transient period, the ramp input
yields a ramp output with slope equal to KM. That way, the gain K is
7-10
obtained. Moreover, the time constant τ is obtained from the intercept in
Fig. S7.8
y(t)
Slope = KM
−ΚΜτ
7.9
1 − ζ2 ζ 1 − ζ2
y (t ) = KM 1 − e − ζt / τ cos t + sin t (5-51)
τ
1 − ζ2 τ
ζ 1 − ζ2 ζ 1− ζ2
dy
= KM e −ζ t / τ cos t+ sin t
dt τ τ
1 − ζ2 τ
1− ζ2 1− ζ2 ζ 1 − ζ2
−e −ζt / τ − sin t + cos t = 0
τ τ τ τ
Since KM ≠ 0 and e − ζt / τ ≠ 0
ζ ζ 1− ζ ζ2 1 − ζ2 1 − ζ2
2
0 = − cos t + + sin t
τ τ τ τ 1 − ζ2
τ τ
7-11
1− ζ2 πτ
0 = sin t = sin nπ , t= n
τ 1 − ζ2
where n is the number of peak.
πτ
Time to the first peak, tp =
1 − ζ2
b) Graphical approach:
Process gain,
a 9970 − 9890
Overshoot = = = 0.333
b 9890 − 9650
K 80
G (s) = =
τ s + 2ζτs + 1 0.29s + 0.36s + 1
2 2 2
Analytical approach
lb
The gain K doesn’t change: K = 80
hr
psig
To obtain the ζ and τ values, Eqs. 5-52 and 5-53 are used:
a 9970 − 9890
Overshoot = = = 0.333 = exp(-ζπ/(1-ζ2)1/2)
b 9890 − 9650
Resolving, ζ = 0.33
7-12
πτ
tp = = 1.754 hence τ = 0.527 hr
1− ζ2
K 80
G (s) = =
τ s + 2ζτs + 1 0.278s + 0.35s + 1
2 2 2
c) Graphical approach
Analytical approach
1 ± 0.05 = 1 – e(0.633 ts) cos(1.793 ts) + 0.353e (-0.633 ts) sin(1.7973 ts)
7.10
T '( s ) K
a) = 2 2
W '( s ) τ s + 2ζτ + 1
a 161.5 − 156
Overshoot = = = 0.344 = exp(-ζπ (1-ζ2)1/2
b 156 − 140
By either solving the previous equation or from Figure 5.11, ζ= 0.322
(dimensionless)
7-13
There are two alternatives to find the time constant τ :
33
Hence τ ≈ ≈ 9.5 − 10 min
3 .5
2πτ
Period = P = = 67 min and hence τ =10 min
1− ζ2
b) After an initial period of oscillation, the ramp input yields a ramp output
with slope equal to KB. The MATLAB simulation is shown below:
160
158
156
154
152
Output
150
148
146
144
142
140
0 10 20 30 40 50 60 70 80 90 100
time
7-14
We know the response will come from product of G(s) and Xramp = B/s2
KB
Then Y ( s ) = 2 2 2
s (τ s + 2ζτs + 1)
From the ramp response of a first-order system we know that the response
will asymptotically approach a straight line with slope = KB. Need to find
the intercept. By using partial fraction expansion:
KB α α α s + α4
Y (s) = = 1 + 22 + 2 2 3
s (τ s + 2ζτs + 1) s s
2 2 2
τ s + 2ζτs + 1
s: 0 = α1+α22ζτ → α1 = -KB2ζτ
and we see that the intercept with the time axis is at t = 2ζτ. Finally,
presuming that there must be some oscillatory behavior in the response,
we sketch the probable response (See Fig. S7.10)
7.11
∆t ∆t
y (k ) = (1 − ) y (k − 1) + 6u (k − 1)
5 5
In the integrated results tabulated below, the values for ∆t = 0.1 are shown
only at integer values of t, for comparison.
7-15
y(k) y(k) y(k)
t
(exact) (1t=1) (1t=0.1)
0 3 3 3
1 2.456 2.400 2.451
2 5.274 5.520 5.296
3 6.493 6.816 6.522
4 6.404 6.653 6.427
5 5.243 5.322 5.251
6 4.293 4.258 4.290
7 3.514 3.408 3.505
8 2.877 2.725 2.864
9 2.356 2.180 2.340
10 1.929 1.744 1.912
Table S7.11. Integrated results for the first order differential equation
Thus ∆t = 0.1 does improve the finite difference model bringing it closer
to the exact model.
7.12
To find a1′ and b1 , use the given first order model to minimize
10
J = ∑ ( y (k ) −a1′ y (k − 1) − b1 x(k − 1)) 2
n =1
∂J 10
= ∑ 2( y (k ) −a1′ y (k − 1) − b1 x(k − 1))(− y (k − 1) = 0
∂a1′ n =1
∂J 10
= ∑ 2( y (k ) −a1′ y (k − 1) − b1 x(k − 1))(− x(k − 1)) = 0
∂b1 n =1
Solving simultaneously for a1′ and b1 gives
10 10
∑ y (k )y (k − 1) − b1 ∑ y (k − 1)x(k − 1)
a1′ = n =1
10
n =1
∑ y (k − 1)
n =1
2
10 10 10 10
n =1
2
7-16
Using the given data,
10 10
10 10
∑ x(k − 1) 2 = 14
n =1
, ∑ y(k − 1)
n =1
2
= 198.112
10
∑ y (k − 1) x(k − 1) = 24.409
n =1
Y ( s) K
=
X ( s ) τs + 1
τ=5 and K = 6
7-17
8
actual data
fitted model
5
y(t)
0 1 2 3 4 5 6 7 8 9 10
time,t
Figure S7.12. Response of the fitted model and the actual data
7.13
y (k ) = a1′ y (k − 1) + b1 x(k − 1)
Using the expressions for a1′ and b1 from the solutions to Exercise 7.12,
with the data in Table E7.12 gives
The response to unit step change for the first-order model given by
e −0.68 s
is y (t ) = 1 − e −( t −0.68) / 6.8
6.8s + 1
7-18
1
0,9
0,8
0,7
y(t) 0,6
0,5
0,4 actual data
0,3 fitted model
0,2 graphical method
0,1
0
0 2 4 time,t 6 8 10
Figure S7.13- Response of the fitted model, actual data and graphical method
7-19