Beruflich Dokumente
Kultur Dokumente
2.1
d (ρV )
= w1 + w2 − w3 (1)
dt
Energy balance:
w3 = w1 + w2 (3)
d (T3 − Tref ) dT
ρCV = ρCV 3= w1C (T1 − Tref ) + w2C (T2 − Tref )
dt dt (4)
− ( w1 + w2 ) C (T3 − Tref )
dT3
ρV = w1T1 + w2T2 − ( w1 + w2 )T3 (5)
dt
2-1
Degrees of freedom for the simplified model:
Parameters : ρ, V
Thus, NF = 5 – 1 = 4
w1 = w1(t)
w2 = w2 (t)
T1 = T1(t)
T2 = T2(t)
Thus, NF is reduced to 0.
2.2
Energy balance:
d ρV (T − Tref )
Cp = wC p (Ti − Tref ) − wC p (T − Tref ) − UAs (T − Ta ) + Q
dt
Simplifying
dT
ρVC p = wC p Ti − wC p T − UAs (T − Ta ) + Q
dt
dT
ρVC p = wC p (Ti − T ) − UAs (T − Ta ) + Q
dt
2-2
2.3
a) Mass Balances:
dh1
ρA1 = w1 − w2 − w3 (1)
dt
dh2
ρA2 = w2 (2)
dt
Flow relations:
P1 − P2 ρg
Then w2 = = (h1 − h2 ) (3)
R2 g c R2
P1 − Pa ρg
w3 = = h1 (4)
R3 g c R3
Four equations
Thus NF = 5 – 4 = 1
2-3
2.4
Assume constant liquid density, ρ . The mass balance for the tank is
d (ρAh + m g )
= ρ(qi − q )
dt
dh
A = qi − q (1)
dt
1/ 2
ρgh
q = C v Pg + − Pa (2)
gc
(m g / M ) RT
Pg = (3)
A( H − h)
Equation 1 gives the unsteady-state model upon substitution of q from Eq. 2 and
of Pg from Eq. 3:
1/ 2
dh (mg / M ) RT ρ gh
A = qi − Cv + − Pa (4)
dt A( H − h) gc
Because the model contains Pa, operation of the system is not independent of Pa.
For an open system Pg = Pa and Eq. 2 shows that the system is independent of Pa.
2-4
2.5
Pd − P1 P − P2 P2 − Pf
wa = , wb = 1 , wc = (1)
Ra Rb Rc
Mass balances for the surge tanks
dm1 dm2
= wa − wb , = wb − wc (2)
dt dt
m1 m2
P1V1 = RT1 , P2V2 = RT2 (3)
M M
Substituting for m1 and m2 from Eq. 3 into Eq. 2, and noticing that V1, T1,
V2, and T2 are constant,
γ γ
V V
P1 1 = P2 2 = C , a constant (5)
m1 m2
1/ γ 1/ γ
P1V1 γ P2V2 γ
or m1 =
and m2 =
(6)
C C
1/ γ
1 V1 γ dP1
P1
(1− γ ) / γ
= wa − wb
γ C dt
2-5
1/ γ
1 V2 γ dP2
P2
(1− γ ) / γ
= wb − wc
γ C dt
as the new dynamic model. If the ideal gas law were not valid, one would
use an appropriate equation of state instead of Eq. 3.
2.6
a) Assumptions:
Compartment 1:
Overall balance (No accumulation of mass):
dT1
V1ρC = ρqC (Ti − T1 ) − UA(T1 − T2 ) (2)
dt
Compartment 2:
Overall balance:
Energy balance:
dT2
V2ρC = ρqC (T1 − T2 ) + UA(T1 − T2 ) − U c Ac (T2 − Tc ) (4)
dt
2-6
Thus NF = 5 – 2 = 3
2 outputs = T1, T2
3 inputs = Ti, Tc, q (specify as functions of t)
2.7
dV 1
= ( wi − w)
dt ρ
dT wi Q
= (Ti − T ) +
dt V ρ ρVC
Results:
dV 1 V
= wi − Cv
dt ρ A
dT wi Q
= (Ti − T ) +
dt ρV ρVC
5 variables: V , T , wi , Ti , Q
4 parameters: C , ρ , Cv , A
2 equations
2 output variables: T , V
2-7
2 manipulated variables: Q, wi
1 disturbance variable: Ti
(b) In this part, two controllers have been added to the system. Each controller
provides an additional equation. Also, the flow out of the tank is now a
manipulated variable being adjusted by the controller. So, we have
2 output variables: T , V
2 manipulated variables (determined by controller equations): Q, w
2 disturbance variables: Ti , wi
2.8
Additional assumptions:
(i) Density of the liquid, ρ, and density of the coolant, ρJ, are constant.
(ii) Specific heat of the liquid, C, and of the coolant, CJ, are constant.
dV
ρ = q F − q = 0 ; thus q = qF
dt
dT
ρVC = q F ρC (TF − T ) − Kq J A(T − TJ )
0.8
(1)
dt
dTJ
ρ J VJ C J = q J ρ J C J (Ti − TJ ) + Kq J A(T − TJ )
0.8
(2)
dt
where A is the heat transfer area (in ft2) between the process liquid and the
coolant.
2-8
Eqs.1 and 2 comprise the dynamic model for the system.
2.9
Assume that the feed contains only A and B, and no C. Component balances for
A, B, C over the reactor give.
dc A
V = qi c Ai − qc A − Vk1e − E1 / RT c A (1)
dt
dcB
V = qi cBi − qcB + V (k1e − E1 / RT c A − k2e − E2 / RT cB ) (2)
dt
dcC
V −qcC + Vk2e − E2 / RT cB
= (3)
dt
An overall mass balance over the jacket indicates that qc = qci because the volume
of coolant in jacket and the density of coolant are constant.
dTc
ρ j S jV=
j ρ j S j qci (Tci − Tc ) + UA(T − Tc ) (5)
dt
where:
ρj, Sj are density and specific heat of the coolant.
Vj is the volume of coolant in the jacket.
2-9
2.10
Notice that the functions are only good for t = 0 to t = 18, at which point the tank
is completely drained. The concentration function blows up because the volume
function is negative.
2-10
2.11
a)
dm d (ρAh) dh
= =
ρA =+w1 w2 − w (1)
dt dt dt
ρg
Valve equation: w = C v′ h = Cv h (2)
gc
ρg
where C v = C v′ (3)
gc
dh 1
= ( w1 + w2 − C v h ) (4)
dt ρA
Steady-state model:
0 = w1 + w2 − C v h (5)
c) Feedforward control
2-11
Rearrange Eq. 5 to get the feedforward (FF) controller relation,
w2 = C v hR − w1 where hR = 2.25 m
3
or h= = 1.408 and h = 1.983 m (instead of 2.25 m)
2.13
2.25 − 1.983
Error in desired level = × 100% =
11.9%
2.25
2-12
The sensitivity does not look too bad in the sense that a 10% error in flow
measurement gives ~12% error in desired level. Before making this
conclusion, however, one should check how well the operating FF
controller works for a change in w1 (e.g., ∆w1 = 0.4 kg/s).
2.12
dh
ρA = w1 + w2 − w3 (Below the leak point)
dt
π (2) 2
A= = π= 3.14 m 2
4
dh
(800)(3.14) = 120 + 100 − 200 = 20
dt
dh 20
= = 0.007962 m/min
dt (800)(3.14)
dh
ρA =20 − d q4 =20 − ρ(0.025) h − 1 = 20 − 20 h − 1 , h ≥ 1
dt
To check for overflow, one can simply find the level hm at which dh/dt =
0. That is the maximum value of level when no overflow occurs.
0 = 20 − 20 hm − 1 or hm = 2 m
Thus, overflow does not occur for a leak occurring because hm < 2.25 m.
2-13
2.13
Model of process
dh
ρAT = w1 + w2 − w3 = w1 + w2 − C v h (1)
dt
Component:
d (hx3 )
ρAT = w1 x1 + w2 x 2 − w3 x3
dt
dx3 dh
ρAT h + ρAT x3 = w1 x1 + w2 x 2 − w3 x3
dt dt
dx3
ρAT h + x3 ( w1 + w2 − w3 ) = w1 x1 + w2 x 2 − w3 x3
dt
dx3
ρAT h = w1 ( x1 − x3 ) + w2 ( x 2 − x3 ) (2)
dt
or
dx3
=
1
[w1 ( x1 − x3 ) + w2 ( x2 − x3 )] (3)
dt ρAT h
dx3 1
= [120(0.6 − x3 ) + 100(0.5 − x3 )]
dt (800)(1.75)π
2-14
1
= [(72 + 50) − 220 x3 )]
(800)(1.75)π
= 0.027738 − 0.050020x3
Integrating,
x3 f t
dx3
∫
x3 o
0.027738 − 0.050020 x3 ∫0
= dt
Solving,
t = 47.42 min
dh
800π = 100 + 100 − Cv h
dt
dh 1
= 200 − 166.3 h
dt 800π
= 0.079577 − 0.066169 h
t = 122.79 min
2-15
1.8
1.7
h(m)
1.6
1.5
1.4
0 50 100 150 200 250 300
time (min)
Figure S2.13. Numerical solution of the ode for part c)
2.14
dX dX F
Cells: V = Vrg − FX or = rg − X (1)
dt dt V
dP dP F
Product: V = Vrp − FP or = rp − P (2)
dt dt V
dS 1
Substrate: V = F (S f − S ) − Vrg
dt YX / S
or
dS F 1 1
= ( S f − S ) − rg − rP (3)
dt V YX / S YP / S
b) At steady state,
2-16
dX
=0 ∴ rg = DX
dt
then,
µ X = DX ∴ D= µ (4)
rg − DX < 0 or D>µ
0 = rg - DX DX = rg (5)
0 = rp - DP DP = rp (6)
1
0 = 𝐷𝐷�𝑆𝑆𝑓𝑓 − 𝑆𝑆� − 𝑌𝑌 𝑟𝑟𝑔𝑔 (7)
𝑋𝑋/𝑆𝑆
From Eq. 5,
DX = rg (8)
From Eq. 7
rg = Y X / S ( S f − S ) D (9)
DX = Y X / S ( S f − S ) D (10)
From Eq. 4
DK S
S=
mmax − D
2-17
Substituting these two equations into Eq. 10,
DK S
=
DX YX / S S f − D (11)
m max − D
For Yx/s = 0.5, Sf = 10, Ks = 1, X = 2.75, μmax = 0.2, the following plot can be
generated based on Eq. 11.
From Figure S2.14, washout occurs at D = 0.18 h-1 while the maximum
production occurs at D = 0.14 h-1. Notice that maximum and washout points
are dangerously close to each other, so special care must be taken when
increasing cell productivity by increasing the dilution rate.
2-18
2.15
dM
rd = − = kAc s (1)
dt
Notice that:
dM dV
M = ρV ∴ =ρ (2)
dt dt
dV dr dr
V = πr 2 h ∴ = (2πrh) =A (3)
dt dt dt
Substituting (3) into (2) and then into (1),
dr dr
− rA = kAc s ∴ −r = kc s
dt dt
Integrating,
r kcs t kc s
∫r
o
dr = −
ρ ∫0
dt ∴ r (t ) = ro −
r
t (4)
Finally,
M = rV = rπhr 2
then
2
kc
M (t ) = ρπh ro − s t
ρ
b) The time required for the pill radius r to be reduced by 90% is given by
Eq. 4:
kc s 0.9ρo ρ (0.9)(0.4)(1.2)
0.1ro = ro − t ∴ t= = = 54 min
r kc s (0.016)(0.5)
Therefore, t = 54 min .
2-19
2.16
dP S
= rp = YP / X µ µax X
dt Ks + S
dS 1 1
=− rg − rP
dt YX / S YP / X
dX SX
= 0.2
dt 1+ S
dP SX
= (0.2)(0.2)
dt 1+ S
dS SX 1 0.2
= 0.2 − 0.5 − 0.1
dt 1+ S
By using MATLAB, this system of differential equations can be solved. The time
to achieve a 90% conversion of S is t = 22.15 h.
2-20
2.17
(a) Using a simple volume balance, for the system when the drain is closed
(q = 0)
𝑑𝑑ℎ
𝐴𝐴 = 𝑞𝑞1 (1)
𝑑𝑑𝑑𝑑
Solving this ODE with the given initial condition gives a height that is increasing
at a rate of 0.25 ft/min.
(b) the drain is opened for 15 mins; assume a time constant in a linear
transfer function of 3 mins, so a steady state is essentially reached. (3 < t < 18).
Assume that the process will return to its previous steady state in an exponential
manner, reaching 63.2% of the response in three minutes.
2-21
(c) the inflow rate is doubled for 6 minutes (18 < t < 24)
The height should rise exponentially towards a new steady state value double that
of the steady state value in part b), but it should be apparent that the height does
not reach this new steady state value at t = 24 min.. The new steady state would
be 1 ft.
(d) the inflow rate is returned to its original value for 16 minutes (24 < t < 40)
2-22
The graph should show an exponential decrease to the previous steady state of 0.5
ft. The initial value should coincide with the final value from part (c).
2-23
2.18
The three input variables (w, Ti, Q) are assigned and the resulting system has zero
degrees of freedom.
2-24
2.19
(a) First we simulate a step change in the vapor flow rate from 0.033 to 0.045
m3/s.
The resulting plots of xD and xB are shown below.
Figure: Plot of xD, xB, and V versus time for a step change in V from 0.033 to 0.045
m3/s.
By examining the resulting data, we can find the steady-state values of xD and xB
before and after the step change in V.
(b) Next we simulate a step change in the feed composition (zF) from 0.5 to 0.55.
Note that the vapor flow rate, V, is still set at 0.045 m3/s.
2-25
Figure: Plot of xD, xB, and zF versus time for a step change in zF from 0.5 to 0.55
By examining the resulting data, we can find the steady-state values of xD and xB
before and after the step change in zF.
2-26
2.20
(a) First we simulate a step change in the Fuel Gas Purity (FG_pur) from 1 to
0.95.
The resulting plots of Oxygen Exit Concentration (C_O2) and Hydrocarbon
Outlet Temperature (T_HC) are shown below.
Figure: Plot of C_O2, T_HC, and FG_pur versus time for a step change in FG_pur from 1
to 0.95.
By examining the resulting data, we can find the steady-state values of C_O2 and
T_HC before and after the step change in FG_pur.
(b) Next we simulate a step change in the Hydrocarbon Flow Rate (F_HC_sp)
from 0.035 to 0.0385. Note that the Fuel Gas Purity, FG_pur, is still set at
0.95.
2-27
Figure: Plot of C_O2, T_HC, and F_HC_sp versus time for a step change in F_HC_sp
from 0.035 to 0.0385.
By examining the resulting data, we can find the steady-state values of C_O2 and
T_HC before and after the step change in F_HC_sp.
2-28
2.21
The key to this problem is solving the mass balance of the tank in each part.
Mass balance:
d
( ρ Ah
= ) ρ qi − ρ qo
dt
dh
A = qi − qo
dt
1
qo = h
R
dh 1
A = qi − h
dt R
- Next, we can obtain R (valve constant) from the steady state information in the
problem
dh
= 0 at steady state
dt
1
0= qi − h
R
1
0= 2 − (1)
R
1 ft 2
∴ = 2 R= 0.5
R min
2-29
( 4 ) =
1
τ AR
= = 2 min
2
Part a
dh
A = qi − qo (Mass Balance)
dt
dh
4 =2 (Separable ODE)
dt
1
∫ dh = ∫ 2 dt
1
h(t ) = t +C h(0) =
1
2
1
h(t ) = t +1 0≤t <3
2
2-30
Part b
dh 1
A = qi − h (Mass Balance)
dt R
dh
4 = 2 − 2h
dt
dh 1 1
+ h= (Solution by integrating factor = et / 2 )
dt 2 2
1 t/2
∫ d (e h) = ∫
t/ 2
e dt
2
het / 2 =
1et / 2 + c h(3) =
2.5
h = 1 + ce − t / 2
2.5 = 1 + ce −3/ 2
c = 1.5e3/ 2
Part c
dh
4 = 4 − 2h (Mass balance)
dt
dh 1
+ h=
1 (Solution by integrating factor)
dt 2
∫ d (e h )
= ∫ 1e dt h(18) 1
=
t/2 t/2
2-31
Part d
h(t ) = 1 + e − (t −33) / 2 33 ≤ t ≤ 50
2-32
2.22
To solve the problem, we start by writing the mass balance for each tank 1-4.
To write the mass balance for each tank, we start with the most general form,
where the change in mass in the tank over time is equal to the mass flowing into
the tank minus the mass flowing out of the tank. The general form of the
equations are shown below, where i represents the tank number (1, 2, 3, 4). The
mass can be written as the density multiplied by the tank volume, and the mass
flow rates can be written as the density multiplied by the volumetric flow rate.
d ( ρVi )
= ρ qin ,i − ρ qout ,i
dt
With density assumed constant over time, it can be pulled out of the derivative.
Also, we write the volume of the tank as the height of liquid in the tank, hi,
multiplied by the cross-sectional tank area, Ai.
ρ Ai d (hi )
= ρ qin ,i − ρ qout ,i
dt
Ai d (hi )
= qin ,i − qout ,i
dt
The flow exiting each tank through the bottom can be written as:
qexit ,i = Ci hi
Results:
a) The final equations for the height of liquid in each tank are shown below.
2-33
dh1 C C γ
=
− 1 h1 + 3 h3 + 1 F1 (1)
dt A1 A1 A1
dh2 C C γ
=
− 2 h2 + 4 h4 + 2 F2 (2)
dt A2 A2 A2
dh3 C (1 − γ 2 )
=
− 3 h3 + F2 (3)
dt A3 A3
dh4 C ( 1 − γ1 )
=
− 4 h4 + F1 (4)
dt A4 A4
dh1 C C 0.5
=
− 1 h1 + 3 h3 + F1
dt A1 A1 A1
dh2 C C 0.5
=
− 2 h2 + 4 h4 + F2
dt A2 A2 A2
dh3 C 0.5
=
− 3 h3 + F2
dt A3 A3
dh4 C 0.5
=
− 4 h4 + F1
dt A4 A4
The differential equations for the tank heights are coupled, so the heights
cannot be solved for or controlled independently. F1 and F2 can be used to
control h3 and h4 independently, but h1 and h2 will be affected in an
uncontrolled manner.
dh1 C C
=
− 1 h1 + 3 h3
dt A1 A1
dh2 C C
=
− 2 h2 + 4 h4
dt A2 A2
dh3 C F
=
− 3 h3 + 2
dt A3 A3
dh4 C F
=
− 4 h4 + 1
dt A4 A4
These equations make sense with the process diagram because now F1 and
F2 only affect tanks h3 and h4 directly (they no longer flow into tanks 1
and 2 at all). However, F1 and F2 indirectly affect tanks 1 and 2 through h3
and h4.
2-34
Chapter 3 ©
3.1
(a)
f (t ) 5 e3t te4t
Transform each term using rules 2, 5, and 7 from Table 3.1, respectively.
5 1 1
F ( s)
s s 3 ( s 4)2
(b)
5
f (t ) sin(4t ) (t 3) S (t 3) e (t 3) S (t 3)
t
To transform sin(4t), use rule 14 from Table 3.1
To transform (t-3)S(t-3) use rules 3 and 26 together. To use rule 26,
set f(t) = t and t0 =3.
To transform e-(t-3)S(t-3) use rules 5 and 26 together. To use rule
26, set f(t) = e-t and t0 =3.
Note that there is no Laplace transform for 1/t.
4 e 3 s e 3 s 1
F (s) 2 2 5
s 16 s s 1 t
(c)
t
f (t ) e t cos(4t )
5
To transform the first term, use rule 18 from Table 3.1
To transform the second term, use rule 3 from Table 3.1
s 1 1
F ( s) 2
( s 1) 16 5s
2
(d)
f (t ) S (t 1) cos(4(t 1)) t 2
To transform the first term, use rules 15 and 26 together. To use rule
26, set f(t) = cos(4t) and t0 = 1.
To transform the second term, use rule 4 of Table 3.1.
s 2
F ( s) e s 2 3
s 16 s
Break the pulse into three step functions. First, a step up to 10 at t=0. Then, a step
down by 8 at t=1. Finally, a step down by 2 at t=3:
F (s ) =
1
s
10 - 8e-s - 2 e-3s
3.3
t : h at = 0 or t = h/a
b)
slope = -a slope = a
x(t) x(t)
slope = -a
3.4
d2y dy
( 2
) 6 ( ) 8 ( y) 3b (e2t )
dt dt
1
s 2Y ( s) sy (0) y '(0) 6sY ( s) 6 y(0) 8Y ( s) 3b
s2
3-2
3b
s 2Y ( s) 6sY ( s) 8Y ( s )
s2
Thus:
3b 3b a1 a2 a3
Y ( s)
( s 2)( s 6s 8) ( s 2) ( s 4) ( s 2) ( s 2) ( s 4)
2 2 2
Regardless of the numerical values of a1, a2 and a3, the inverse Laplace transform
indicates that y(t) includes e2t , te2t , and e 4t .
3c
s 2Y ( s ) 6sY ( s ) 8Y ( s )
s2
3c a a a3 a4
Y ( s) 1 22
s ( s 2)( s 4) s s
2
( s 2) ( s 4)
Regardless of the numerical values of a1, a2, a3, and a4, the inverse Laplace
transform indicates y(t) includes a1 , t , e2t , and e4t .
3.5
55 55
T(t) = 20 S(t) + t S(t) – (t-30) S(t-30)
30 30
T ( s)
20 55 1
s 30 s 2
55 1 30s 20 55 1
30 s 2
e
s 30 s 2
1 e 30s
3.6
s( s 1)
a) X ( s) 1 2 3
( s 2)( s 3)( s 4) s 2 s 3 s 4
s( s 1)
1 1
( s 3)( s 4) s 2
s( s 1)
2 6
( s 2)( s 4) s 3
3-3
s( s 1)
3 6
( s 2)( s 3) s 4
1 6 6
X ( s) and x(t ) e2t 6e3t 6e4t
s2 s3 s4
s2 2
b) X ( s) 1 (1)
( s 1) 2
s 1 ( s 1)2
2 (s 2) s 1 1
In Eq. 1, substitute any s-1 to determine 1. Arbitrarily using s=0, Eq. 1
gives
2 1 1
or 1 1
12 1 12
1 1
X ( s) and x( t ) et tet
s 1 ( s 1) 2
1 1 1
c) X ( s) 2
s s 1 1 3 s b 2 2
2
s
2 4
1 3
where b and
2 2
t
1 2 2 3
x(t ) e bt sin t e sin t
3 2
s 1
d) X(s) = e0.5 s
s( s 4)( s 3)
To invert, first ignore the time delay term. Using the Heaviside expansion
with the partial fraction expansion,
s 1 A B C
Xˆ ( s)
s( s 4)( s 3) s s 4 s 3
3-4
1 1
A=
(4)(3) 12
4 1 3 3
B=
(4)(4 3) (4)(1) 4
3 1 2 2
C=
(3)(3 4) (3)(1) 3
Then
1 12 3 / 4 2 3
Xˆ ( s )
s s4 s3
1 3 4t 2 3t
xˆ (t ) e e
12 4 3
for t 0.5
3.7
6( s 1) 6
Y ( s) 2 1 22
a) s ( s 1) s
2
s s
6
2 s2 6 1 0
s2 s 0
6
Y (s) 2
s
3-5
12( s 2) s 3
b) Y ( s ) 1 22
s ( s 9)
2
s s 9
12( s 2) 1 ( s 2 9) ( 2 s 3 )( s) or
12s 24 (1 2 ) s 3 s 91 2
s2: 1 + 2 = 0
s1: 3 = 12
0
s : 91 = 24
Solving simultaneously,
8 8
1 , 2 , 3 12
3 3
8
s 12
8 1 3
Y ( s)
3s s 9
2
( s 2)( s 3)
c) Y (s) 1 2 3
( s 4)( s 5)( s 6) s 4 s 5 s 6
( s 2)( s 3)
1 1
( s 5)( s 6) s 4
( s 2)( s 3)
2 6
( s 4)( s 6) s 5
( s 2)( s 3)
3 6
( s 4)( s 5) s 6
1 6 6
Y (s)
s4 s5 s6
1 1
Y ( s)
(s 1)
d)
2 2
1 ( s 2) ( s 2s 2) 2 ( s 2)
2
3-6
1 s 2 s 4
= 2 3 5
s 2 s 2 ( s 2 s 2)
2 2
s2
1 = 1s4 + 41s3 + 61s2 +41s + 2s3 +42s2 +62s +42 + 3s2 +23s +
4s + 24 + 5s4 + 45s3 + 85s2 + 85s + 45
s4 : 1 + 5 = 0
s3 : 41 + 2 + 45 = 0
Solving simultaneously:
1 / 4s 1 / 2s 1/ 4
Y ( s) 2
s 2s 2 ( s 2s 2)
2 2
s2
3.8
2
s2X(s) + 4X(s) + 3X(s) =
s( s 1)
3-7
2
or (s2 + 4s + 3) X(s) =
s( s 1)
2
X(s) =
s( s 1)2 ( s 3)
2 e3t et
x(t ) tet
3 6 2
b) Applying the Final Value Theorem (note that the theorem is applicable here)
2 2
lim x(t ) lim sX ( s) lim
t s 0 s 0 ( s 1) ( s 3) 3
2
3.9
2 2 A B C
i) Y(s) = 2 2
s( s 4s) s ( s 4) s
2
s s4
2 2 A B C
ii) Y(s) =
s( s 4s 3) s( s 1)( s 3) s s 1 s 3
2
2 2 A B C
iii) Y ( s)
s( s 4s 4) s( s 2)
2 2
s ( s 2) 2
s2
2
iv) Y (s)
s( s 4s 8)
2
s 2 4s 8 (s 2 4s 4) (8 4) (s 2) 2 2 2
2
Y ( s)
s[( s 2) 2 2 2 ]
3-8
2( s 1) 2( s 1) A Bs C
v) Y ( s) 2 2
s( s 4) s( s 2 ) s s 2 s 2 2
2 2 2 2
2( s 1) 1
A = lim 2
s 0 ( s 4) 2
1 1 2
y(t) = cos 2t sin 2t
2 2 2
1
y(t) = (1 cos 2t ) sin 2t
2
3.10
3
s 3 X ( s ) 2s 2 X ( s ) 2sX ( s ) X ( s )
s
3 3
X (s)
s ( s 2s 2 2s 1)
3
1 3 1 3
s ( s 1)( s j )( s j)
2 2 2 2
The denominator of [sX(s)] contains complex factors so that x(t) is
oscillatory, and the denominator vanishes at real values of s= 1 and -½
which are all <0; thus x(t) is converges. See Fig. S3.10a.
2
b) s 2 X ( s) X ( s)
s 1
2 2
X ( s)
( s 1)( s 1) ( s 1) 2 (s 1)
2
3-9
The denominator contains no complex factors; thus x(t) is not oscillatory.
The denominator vanishes at s=1 0; x(t) is divergent. See Fig. S3.10b.
1
c) s 3 X (s) X (s)
s 12
1 1
X (s)
( s 1)( s 3 1)
2
1 3 1 3
( s j )( s j )( s 1)( s j )( s j)
2 2 2 2
2.5
2
x(t)
1.5
0.5
-0.5
0 1 2 3 4 5 6 7 8 9 10
time
3-10
700
600
500
400
x(t) 300
200
100
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time
60
40
x(t)
20
-20
-40
0 1 2 3 4 5 6 7 8 9 10
time
3-11
18
16
14
12
10
x(t)
8
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time
3.11
Since the time function in the solution is not a function of initial conditions, take
the Laplace transform with:
dx(0)
x(0) 0
dt
K
X (s) U ( s)
(1 s 1)( 2 s 1)
a
a) If u(t) = a S(t) then U(s)=
s
Ka
X a (s) 1 2
s(1 s 1)( 2 s 1)
3-12
b
b) If u(t) = be-t/ then U(s) =
s 1
Kb
X b ( s) 1 2
(s 1)( 1 s 1)( 2 s 1)
c
c) If u(t) =ce-t/ where = 1 , then U(s) =
1 s 1
Kc
X c ( s)
(1 s 1) 2 ( 2 s 1)
d
d) If u(t) = d sin t then U(s) =
s 2
2
Kd
X d ( s)
( s )( 1 s 1)( 2 s 1)
2 2
3.12
1
s 3 X(s) 4 X(s)
s 1
1 1
X ( s)
( s 1)( s 4) ( s 1)( s 1.59)( s 0.79 1.37 j )( s 0.79 1.37 j )
3
1 2 3 j 3 3 j 3
s 1 s 1.59 s 0.79 1.37 j s 0.79 1.37 j
3-13
1 1
1
( s 4)
3
s 1
5
1 1
2
( s 1)( s 0.79 1.37 j )( s 0.79 1.37 j ) s 1.59
19.6
1
3 j 3 0.74 0.59 j
( s 1)( s 1.59)( s 0.79 1.37 j ) s 0.791.37 j
1 1
0.074 0.059 j 0.074 0.059 j
X(s) 5 19.6
s 1 s 1.59 s 0.79 1.37 j s 0.79 1.37 j
1 1 1.59t
x(t ) e t e 2e 0.79t (0.074 cos1.37t 0.059 sin 1.37t )
5 19.6
dx
b) 12 x sin 3t with x(0) 0
dt
3
sX (s) 12 X(s)
s 92
3 3
X ( s)
( s 9)( s 12) ( s 3 j )( s 3 j )( s 12)
2
1 j1 1 j1 3
s 3j s 3j s 12
3 3 1 4
1 j1 j
( s 3 j )( s 12) s 3 j
18 72 j 102 102
3 1
3
( s 9 ) s 12 51
2
1 4 1 4 1
j j
X (s) 102 102 102 102 51
s3j s 3j s 12
1 1
x(t ) (cos 3t 4 sin 3t ) e12 t
51 51
3-14
d 2x dx dx(0)
c) 2
6 25 x et with x(0) 0
dt dt dt
1 1
s 2 X( s ) 6sX( s ) 25X( s ) X( s ) or X( s )
s 1 ( s 1 )( s 6s 25 )
2
1 2 j 2 2 j
X (s) 1 2
( s 1)( s 3 4 j )( s 3 4 j ) s 1 s 3 4 j s 3 4 j
1 1
1
( s 6 s 25)
2
s 1
20
1 1 1
2 j 2 j
( s 1)( s 3 4 j ) s 3 4 j
40 80
1 1 1 1 1
j j
X (s) 20 40 80 40 80
s 1 s 3 4 j s 3 4 j
1 t 1 1
x(t ) e e 3t ( cos 4t sin 4t )
20 20 40
3.13
d 2 y(t ) dy(t ) d ( x 2)
2
3 y(t ) 4 x(t 2)
dt dt dt
Take the Laplace transform assuming zero initial conditions:
Rearranging,
Y (s) (1 4 s )e 2 s
G (s) 2 (1)
X (s) s 3s 1
b) Steady-state gain
3-15
K lim G ( s) 1 (from (1))
s 0
0.5
-0.5
-1
-1.5
0 5 10 15 20 25 30
3.14
d2y 2
2 s Y ( s ) sy (0) y '(0) s Y ( s ) s
2
dt
dy
5 5( sY ( s ) y (0)) 5sY ( s ) 5
dt
6 y 6Y ( s)
7
7
s
3-16
7
Y ( s 2 5s 6) s 5
s
s 5s 7
2
Y ( s 2 5s 6)
s
s 5s 7
2
Y
s ( s 2)( s 3)
s 2 5s 7 A B C
s ( s 2)( s 3) s s 2 s 3
7 1 1
A , B ,C
6 2 3
7 1 1
X ( s)
6 s 2( s 2) 3( s 3)
7 1 1
x(t ) e 2t e 3t
6 2 3
3.15
f (t ) hS (t ) hS (t 1 / h)
4 x hS (t ) S (t 1 / h)
dx
, x(0)=0
dt
h 1 1
X ( s) (1 e s / h )
4 s s 4
h 1 e s / h 1 e s / h
4 s s s 4 s 4
3-17
0 t <0
h
x(t ) (1 e 4t ) 0 < t < 1/h
4
4
h 4 ( t 1 / h )
e e 4t t > 1/h
1
h=1
h=10
0.9 h=100
0.8
0.7
0.6
x(t)
0.5
0.4
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
time
3.16
s
(s2 + 6s + 9)Y(s) s(1) 2 –(6)(1)=
s 1
2
s
(s2 + 6s + 9)Y(s) = +s+8
s 1
2
2 s s 3 s 8s 2 8
(s + 6s + 9)Y(s) =
s2 1
3-18
s 3 8s 2 2 s 8
Y(s) =
( s 3) 2 ( s 2 1)
A B Cs D
Y ( s) 2 2
( s 3) s 3 s 1 s 1
2
s 1
b) Y(s) =
s( s 4s 8)
2
42
Since 8 , there are complex factors.
4
s2 + 4s + 8 = s2 + 4s + 4 + 84
A B( s 2) C s 1
Y ( s) 2 2
s s 4s 8 s 4s 8 s( s 4s 8)
2
A=1/8
Multiply by s(s2+4s+8)
A(s2+4s+8) + B(s+2)s + Cs = s + 1
1
s2 : A+B=0 B = A =
8
1 1 3
s1 : 4A + 2B + C = 1 C = 1 + 2 4 =
8 8 4
1
s0 : 8A = 1 A= (This checks with above result)
8
3-19
1 / 8 1 / 8( s 2) 3/ 4
Y ( s)
s ( s 2) 2
2 2
( s 2) 2 2 2
1 1 3
y(t) = e-2t cos 2t + e-2t sin 2t
8 8 8
3.17
dy1
y2 e
t
dt
dy2
3 y2 2 y1
dt
1
sY1 Y2 (1)
s 1
sY2 3Y2 2Y1 (2)
Y2 ( s 3) 2Y1
2Y1
Y2 (3)
s3
Substitute equation 3 into equation 1 and solve for Y1
2Y1 1
sY1
s 3 s 1
2 1
Y1 s
s 3 s 1
1
Y1
2
( s 1)( s )
s3
Expand using partial fractions:
s3 1 1 2
Y1
( s 1) ( s 2) s 2 s 1 ( s 1)2
2
3-20
Now go back and substitute into equation 3 to get Y2 and expand using partial
fractions:
2Y1 2 2 2 2
Y2
s 3 ( s 1) ( s 2) s 2 s 1 ( s 1) 2
2
Finally, get both time-domain solutions using the inverse Laplace transform:
y1 (t ) e 2t e t 2te t
y2 (t ) 2(e 2t e t te t )
3.18
dc
V qc qci
dt
Also, ci(t) = 0 , t 0
ci(t) = c i , t>0
ci
Ci ( s )
s
so that
ci qci
sVC(s) + qC(s) = q or C(s) =
s ( sV q)s
ci
C(s) =
V
s 1 s
q
3-21
t
q
c(t) = c i 1 e V
50
45
40
35
30
c(t)
25
20
15
10
0
0 5 10 15 20 25 30
Time
3.19
(a) Take the Laplace transform of each term, taking into account that all initial
conditions are zero:
Now use symbolic mathematical software (ex. Mathematica) to solve for y(t).
InverseLaplaceTransform[(8*s+1)/(s*(s^2+5*s+1)),s,t]
3-22
1
5 21
t
5 21
t
21 5
t 21 5
t
g[t_]:= 21e 2
11 21e 2 21e 2
11 21e
42 2
41
Plot[g[t],{t,0,100},AxesLabel{time,Y},PlotRange{{0,100},{0 ,2}}]
y
4
0 t
0 2 4 6 8 10
Figure S3.19a: Tank level response to a unit step change in flow rate.
(b) Define the time when y(t) reaches its maximum as tmax. This time occurs
when y′(t)=0. Solve for this time using Mathematica and find that tmax=0.877
and y(tmax)=1.558. Therefore, the tank will not overflow.
(c) Now find the general solution for any input step size, M (the solution is
denoted in this case as YM(s) and yM(t) for clarity). The input U(s) is M/s.
M
U (s)
s
M (8s 1)
YM ( s 2 5s 1)
s
M (8s 1)
YM MY
s ( s 2 5s 1)
yM (t ) My(t )
3-23
yM (tmax ) 2.5 My (tmax ) M (1.558)
2.5
M 1.605
1.558
The maximum step change in the flow rate into the tank that will not overflow the
tank is 1.605.
y
4
0 t
0 2 4 6 8 10
Figure S3.19b: Tank level response to a 1.605 step change in flow rate.
3.20
a) Given constant volumes, overall balances on the three tanks indicate that
the flow rate out of each tank is equal to q
dc1
V1 q (ci c1 )
dt
dc2
V2 q (c1 c 2 )
dt
dc3
V3 q (c2 c3 )
dt
3-24
b) Taking Laplace transform of above equations and eliminating
C1 (s) and C2 (s) gives
q q q
C3 ( s ) V1 V2 V3 C ( s)
s q / V1 s q / V2 s q / V3 i
Since ci (t ) (t ), Ci (s) 1
1.
V1 V2 V3 V
( q / V )3 1 2 3
C3 ( s )
(s q / V ) 3
(s q / V ) (s q / V ) 2
( s q / V )3
2.
V1 V2 V3 V1
3.21
Start with the Laplace version of the equations from Exercise 3.20:
q q q
C3 ( s ) V1 V2 V3 C ( s)
s q / V1 s q / V2 s q / V3 i
Since V1=V2=V3, this equation reduces to:
3
q
C3 ( s ) 3 Ci ( s )
V
(1)
s q /V
3-25
where ci(t) is a pulse of magnitude A and width tw. A pulse can be described by the
sum of two step functions. The first will be a step function of magnitude A at time
0. The second will be a step function of –A at t=tw.
ci (t ) AS (t ) AS (t t w )
A A tw s 1 e tw s
Ci ( s )
e A (2)
s s s
Now substitute Equation (2) into Equation (1). For simplicity, define a new variable
f=q/V.
A f (1 etw s )
3
C3 ( s)
ss f
3
Now use a symbolic mathematics software to find the inverse Laplace transform,
giving c3(t). The solution is formulated as a function of t, f, A, and tw. Then as an
example, we plot c3(t) for f=1/20, A=10, and tw=1.
InverseLaplaceTransform[𝐴 ∗ 𝑓^3
∗ (1 − Exp[−tw ∗ 𝑠])⁄(𝑠 ∗ (𝑠 + 𝑓)^3) , 𝑠, 𝑡]
The solution:
c3(t) =
½ 𝐴(ⅇ −𝑓𝑡 (−2 + 2ⅇ 𝑓𝑡 − 2𝑓𝑡 − 𝑓 2 𝑡 2 )
− ⅇ 𝑓(−𝑡+tw) (−2 + 2ⅇ 𝑓(𝑡−tw) − 2𝑓(𝑡 − tw)
− 𝑓 2 (𝑡 − tw)2 )HeavisideTheta[𝑡 − tw])
Then plot the concentration over time, assuming f=1/20, A=10, and tw=1.
3-26
C3
0.12
0.10
0.08
0.06
0.04
0.02
time
50 100 150 200
Figure S3.21: Plot of c3 over time in response to a pulse in ci of amplitude 10 and
width 1, with f=1/20.
3.22
Solve this problem using a symbolic software program such as Mathematica. The
following script will solve the problem (note that only 4 of the 5 possible initial
conditions on y and its derivatives are included, otherwise the problem is over-
specified).
Use the Expand[ ] command to expand this solution into its individual terms.
3-27
Chapter 4 ©
4.1
Y (s) d
U (s) bs c
a) Gain K can be obtained by setting s = 0
d
K
c
Alternatively, the transfer function can be placed in the standard gain/time
constant form by dividing the numerator and denominator by c:
Y ( s) K d b
, where K and .
U ( s) s 1 c c
b) In order to determine the boundedness of the output response, consider a step
input of magnitude M. Then use U(s) = M/s and
K M
Y ( s)
s 1 s
From Table 3.1, the step response is:
y(t ) KM (1 et / )
By inspection, this response will be bounded only if τ > 0, or equivalently,
only if b/c > 0.
4.2
a) K=3
b) =10
c) We use the Final Value Theorem to find the value of y(t) when t.
12e s
Y (s)
s (10 s 1)
12e s
sY ( s )
(10 s 1)
12e s
lim 12
s 0 (10 s 1)
f)
3e s
Y (s) 1
(10 s 1)
3se s
sY ( s )
(10 s 1)
3se s
lim 0
s 0 (10 s 1)
3e s 10 30e s
g) Y (s) then
(10 s 1) ( s 2 4) (10 s 1)( s 2 4)
10 (10t 1) 1
y (t ) 30 S (t 1) e (sin(2(t 1)) 20 cos(2(t 1)))
401 802
The sinusoidal input produces a sinusoidal output and y(t) does not have a
limit when t.
4-2
y
y
12
10 0.25
8 0.20
6 0.15
4 0.10
2 0.05
time time
10 20 30 40 50 10 20 30 40 50
Fig. S4.2a. Output for parts c) and d). Fig. S4.2b. Output for part e).
y
0.30 y
0.25
2
0.20
0.15 1
0.10
time
0.05 10 20 30 40 50
time 1
10 20 30 40 50
Fig. S4.2c. Output for part f). Fig. S4.2d. Output for part g).
4.3
and P( s) 15 / s for the step change from 35 to 50 psi. Substituting (1) and
rearranging gives:
1 15
Pm ( s)
10s 1 s
From item #13 in Table 3.1, the step response is given by:
Pm (t ) 15 (1 et /10 ) (2)
Substituting (3) and t=ta into (2) and solving gives ta = 11s. Thus, the alarm will
sound 11 seconds after 1:30PM.
4-3
4.4
Y (s) 3e s
U ( s ) 10s 1
Rearrange,
Y ( s )[10s 1] 3e sU ( s ) (2)
dy
10 y 3 u (t 1) (3)
dt
Take L of (3) for y (0)=4,
10[ sY ( s ) 4] Y ( s ) 3e sU ( s )
6e s
10sY-40+Y=
s
6e s
Y (10 s 1) 40
s
Partial fraction expansion:
6 40
Y (s) e s
s (10 s 1) (10 s 1)
6 a a2
1
s (10 s 1) s 10 s 1
Find 1: Multiply by s and set s 0 1 6
6 6 4
Y (s) e s
s s 0.1 ( s 0.1)
Take L-1 ,
4-4
4.5
dy1
a) 2 = -2y1 – 3y2 + 2u1 (1)
dt
dy 2
= 4y1 – 6y2 + 2u1 + 4u2 (2)
dt
Solving Eqs. (3) and (4) simultaneously for Y1(s) and Y2(s),
Therefore,
Y1 ( s ) 1 Y1 ( s ) 6
,
U1 ( s ) s 4 U 2 ( s ) ( s 3)( s 4)
Y2 ( s ) 2 Y2 ( s ) 4( s 1)
,
U1 ( s ) s 4 U 2 ( s ) ( s 3)( s 4)
4.6
a)
Taking the L-1 gives,
4-5
x
x(0) x 0.3
4.7
dx1
H L( x 0 x1 ) V ( y 2 y1 ) (1)
dt
y1 = a0 + a1x1 + a2x12 +a3x13 (2)
4-6
a) Let the right-hand side of Eq. 1 be denoted as f(L, x0, x1, V, y1, y2)
dx1 f f f
H f ( L, x0 , x1 , V , y1 , y 2 ) L x0 x1
dt L s x0 s x1 s
f f f
V y1 y 2
V s
1 s
y
2 s
y
dx1 dx1
Substituting for the partial derivatives and noting that :
dt dt
dx1
H ( x0 x1 ) L L x0 L x1 ( y 2 y1 )V V y 2 V y1 (3)
dt
Similarly,
g
y1 g ( x1 ) x1 (a1 2a 2 x1 3a3 x1 2 ) x1 (4)
x1 s
L V
X 1 ( s ) H X 1 ( s ) H
,
X 0 ( s ) s 1 Y2 ( s ) s 1
L
(a1 2a 2 x1 3a3 x1 )
2
Y1( s ) H
X 0 ( s ) s 1
V
(a1 2a 2 x1 3a3 x1 )
2
Y1( s ) H
Y2 ( s ) s 1
where:
H
L V (a1 2a 2 x1 3a3 x1 )
2
4-7
4.8
d (Ah)
wi Rh 1.5
dt
or
dh 1 R 1.5
wi h
dt A A
dh 1 1.5 Rh 0.5
wi h
dt A A
Rearranging
A dh 1
0.5
h wi
1.5Rh dt 1.5Rh 0.5
Thus,
H ( s ) K
Wi( s) s 1
where,
1 h h height
K
1.5Rh 0.5
1.5Rh 1.5
1.5w flowrate
A
Ah
V
mass time
1.5Rh 0.5
1.5Rh 1.5
1.5w mass / time
4-8
4.9
dT
mC wC (Ti T ) h p A p (Tw T ) (2-51)
dt
dT
mw C w w hs As (Ts Tw ) h p A p (Tw T ) (2-52)
dt
Assume that m, mw, C, Cw, hp, hs, Ap, As, and w are constant. Rewriting the
above equations in terms of deviation variables, and noting that
dT dT dTw dTw
,
dt dt dt dt
dT
mC wC (Ti T ) h p A p (Tw T )
dt
dT
m w C w w hs As (0 Tw ) h p A p (Tw T )
dt
T ( s ) wC (m w C w s hs As h p A p )
Ti( s ) (mCs wC h p A p )( m w C w s hs As h p A p ) (h p A p ) 2
T ( s) wC (hs As h p A p )
b) The gain is
Ti( s) s 0 wC (hs As h p A p ) hs As h p Ap
c) No, the gain would be expected to be one only if the tank were insulated so
that hpAp= 0. For the heated tank, the gain is not one because heat input
changes as T changes.
4-9
4.10
Additional assumptions
dT
VC wC (Ti T ) Q (U bv 2 ) A(T Ta )
dt
dT f f
VC f (T , v) T v (1)
dt T s v s
f
wC (U bv ) A
2
T s
f
2vbA(T Ta )
v s
dT dT
Substituting for the partial derivatives in Eq. 1 and noting that =
dt dt
dT
VC wC (U bv 2 ) A T 2vbA(T Ta )v
dt
dT
VC wC (U bv 2 ) A T 2vbA(T Ta )v
dt
Taking the Laplace transform and rearranging
4-10
4.11
dm1
w1 w2 (1)
dt
dm 2
w2 w3 (2)
dt
Degrees of freedom:
number of parameters : 8 (V1, V2, M, R, T, R1, R2, R3)
number of variables : 9 (m1, m2, w1, w2, w3, P1, P2, Pc, Ph)
number of equations : 7
number of degrees of freedom that must be eliminated = 9 7 = 2
b) Model Development
MV1 dP1
Substitute (3) into (1) : w1 w2 (8)
RT dt
MV2 dP2
Substitute (4) into (2) : w2 w3 (9)
RT dt
4-11
Substitute (5) and (6) into (8):
MV1 dP1 1 1
( Pc P1 ) ( P1 P2 )
RT dt R1 R2
MV1 dP1 1 1 1 1
Pc (t ) ( ) P1 P2 (10)
RT dt R1 R1 R2 R2
MV2 dP2 1 1
( P1 P2 ) ( P2 Ph )
RT dt R2 R3
MV2 dP2 1 1 1 1
P1 ( ) P2 Ph (t ) (11)
RT dt R2 R2 R3 R3
dP1
Note that f 1 ( P1 , P2 ) from Eq. 10
dt
dP2
f 2 ( P1 , P2 ) from Eq. 11
dt
This system has the following characteristics:
(i) 2nd-order denominator (2 differential equations)
(ii) Zero-order numerator (See Example 4.7 in text)
W ( s )
(iii) The gain of 3 is not equal to unity. (It cannot be because the
Pc( s )
units for the two variables are different).
4.12
0 wC (Ti T ) he Ae (Te T )
0 Q he Ae (Te T )
Now subtract the steady-state equations from the dynamic equations
dT
mC wC (Ti Ti ) (T T ) he Ae (Te Te ) (T T ) (1)
dt
dT
meCe e (Q Q ) he Ae (Te Te ) (T T ) (2)
dt
Note that dT / dt dT '/ dt and dTe / dt dTe '/ dt. Substitute
deviation variables; then multiply (1) by 1/wC and (2) by 1/(h e Ae ).
4-12
m dT ' hA
(T ' T 'i ) e e (T 'e T ') (3)
w dt wC
meCe dT 'e Q'
(T 'e T ') (4)
he Ae dt he Ae
Eliminate one of the output variables, T'(s) or T'e ( s ), by solving
(4) for it, and substituting into (3). Because T'e ( s ) is the intermediate
variable, remove it. Then rearranging gives:
mmeCe 2 meCe meCe m
s s 1 T '( s )
whe Ae he Ae wC w
mC 1
e e s 1 T 'i ( s ) Q '( s )
he Ae wC
Because both inputs influence the dynamic behavior of T', it is necessary to
develop two transfer functions for the model. The effect of Q' on T' can be
derived by assuming that Ti is constant at its nominal steady-state value, Ti .
Thus, T'i = 0 and the previous equation can be rearranged as:
T '( s ) 1/ wC
G1 ( s ) (T 'i ( s ) 0)
Q '( s ) b2 s 2 b1s 1
Similarly, the effect of T'i on T' is obtained by assuming that Q=Q
(that is, Q'=0):
meCe
s 1
T '( s ) he Ae
G2 ( s ) (Q '( s ) 0)
T 'i ( s ) b2 s 2 b1s 1
where
meCe meCe m
b1 is defined to be
he Ae wC w
mmeCe
b2 is defined to be
whe Ae
By the superposition principle, the effect of simultaneous changes in both
inputs is given by
T '( s ) G1 ( s )Q '( s ) G2 ( s )T 'i ( s )
(b)
The limiting behavior of m eCe going to zero has b 2 0
and b1 m / w and simplifies the last equation to
1/ wC 1
T '( s ) Q '( s ) T 'i ( s )
m m
s 1 s 1
w w
4-13
4.13
where wtL represents the changing surface are of the liquid. Substituting (2) into
(1) and simplifying gives:
dh
wt L qi q (3)
dt
The geometric construction indicates that wt/2 is the length of one side of a right
triangle whose hypotenuse is R. Thus, wt/2 is related to the level h by
A mass balance yields:
wt
R 2 ( R h) 2
2
After rearrangement,
wt 2 ( D h)h (4)
with D = 2R (diameter of the tank). Substituting (4) into (3) yields a nonlinear
dynamic model for the tank with qi and q as inputs:
dh 1
(qi q )
dt 2 L ( D h)h
To linearize this equation about the operating point (h h ) , let
qi q
f
2 L ( D h) h
Then
f 1
qi s 2 L ( D h )h
f 1
q s 2 L ( D h )h
f 1
q q 0
h s h 2 L ( D h )h
i
s
4-14
The last partial derivative is zero, because qi q from the steady-state relation, and
the derivative term in brackets is finite for all 0<h<D. Consequently, the linearized
model of the process, after substitution of deviation variables, is
dh ' 1
(q 'i q ')
dt 2 L ( D h )h
Recall that the term 2L ( D h)h in the previous equation represents the variable
surface area of the tank. The linearized model treats this quantity as a constant that
depends on the nominal (steady-state) operating level. Consequently, operation of
the horizontal cylindrical tank for small variations in level around the stead-state
value would be much like that of any tank with equivalent but constant liquid
surface. For example, a vertical cylindrical tank with diameter D’ has a surface are
of liquid in the tank equal to ( D ')2 / 4 2 L ( D h )h . Note that the coefficient
1
L ( D h )h is infinite for h 0 or for h D and is a minimum at h D / 2 .
2
Thus, for large variations in level, this equation would not be a good approximation,
because dh/dt is independent of h in the linearized model. In these cases, the
horizontal and vertical tanks would operate very differently.
4.14
Assumptions
1. Perfectly mixed reactor
2. Constant fluid properties and heat of reaction.
dc A 20000
V qc Ai (q Vk (T ))c A Vc A k (T ) T (3)
dt T2
dT 20000
VC qC HVc A k (T ) T + (H )Vk (T )cA (4)
dt T2
4-15
Taking the Laplace transforms and rearranging,
Substituting for CA (s) from Eq. 5 into Eq. 6 and rearranging,
T ( s ) HVk (T )q (7)
(s)
C Ai 20000 20000
Vs q Vk (T ) VCs qC (H )Vc A k (T ) (H )c AV 2 k 2 (T )
T 2 T2
c A is obtained from the steady-state version of Eq.1,
qcAi
cA 0.001155 mol/cu.ft.
q Vk (T )
Substituting the numerical values of T , , C, ( H), q, V, c A into Eq. 7 and
simplifying gives,
T ( s) 11.38
C Ai ( s) (0.0722s 1)(50s 1)
T ( s)
b) The gain K of the above transfer function is equal to ,
C Ai ( s) s 0
0.15766 q
K (8)
q c q c
3.153 106 A2 13.84 4.364.107 A2
1000 T 1000 T
dK K K2 q cA 4
2 10 6 0.01384 3153 T 2 6.50 10
dq q 0.15766q
dK K 2 q 3.153 10 c A 2 2 4.364 10 c A
6 7
13.84
dT 3.153 1000 T3
T3
2.57 10 5
dK dK dc A
dc Ai dc A dc Ai
4-16
K2 q 3.153 10
6
4.364 10 7 q
13.84
0.15766q 1000 T2 T 2
q 13840
8.87 10 3
4.15
Assumptions:
1. Constant physical properties
2. Perfect mixing
dX m ( K s S ) m S S
X S ' m D X ' X D (3)
dt (Ks S ) 2
Ks S
dS f f 2 f 2 f 2
2 S' X ' D' S f
dt S ss X ss D ss S f
ss
dS 1 m ( K s S ) m S 1 m S
X D S ' X ' ( S f S ) D ' D S f
dt YX / S (Ks S ) 2
YX / S K s S
(4)
4-17
Substituting the numerical values gives:
dX '
0.113S ' 2.25D '
dt
dS '
0.326 S ' 0.2 X ' 9 D ' 0.1S f
dt
Taking Laplace transforms, assuming steady state initially:
0.2 9
S '( s) X '( s) D '( s) (6)
s 0.326 s 0.126
X '( s ) K ( s 1)
2 2 a
D '( s ) s 2 s 1
where:
K 77.4 g h /L
a 0.778 h
6.65 h
1.08
4-18
Chapter 5
5.1
No, the time required for the output Y(s) to reach steady state does not depend on
the magnitude of the step input in U, it only depends on the time constant 𝜏𝑖 and
delay θ . Since the Laplace transform of a step change is M/s, we have:
KM
Y s G s U s e s
s 1s 1 2 s 1 3 s 1 4 s 1
As shown in above equation, the settling time is not related to the magnitude of
input signal M.
5.2
y t KM 1 e t / y 0
This maximum rate of change will occur as soon as the transient has died out, i.e.,
after 5 2.89 min 15 min have elapsed.
Solution Manual for Process Dynamics and Control, 4th edition
Copyright © 2016 by Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellichamp,
and Francis J. Doyle III
5-1
1500
1000
T'
500
0
0 1 2 3 4 5 6 7 8 9 10
Time(/min)
Figure S5.2. Temperature response for a ramp input of magnitude 0.5 Kw/min.
5.3
c(t) = 5 + 0.2t
0.2
c(t ) 0.2t or C ( s)
s2
Hence
1 0.2
C m ( s) 2
10s 1 s
5-2
The time at which the actual concentration exceeds the limit (t = 10 s) is
subtracted from the previous result to obtain the requested t .
2.5
1.5
c'm
0.5
0
0 2 4 6 8 10 12 14 16 18 20
time
Figure S5.3. Concentration response for a ramp input of magnitude 0.2 Kw/min.
5.4
0 t<0
c F = 2 0t<2
0 2t
CF' ( s)
2
s
1 e2s
The input is then given by
8 8e2 s
C ' ( s)
s(2s 1) s(2s 1)
5-3
6
3
C'
0
0 2 4 6 8 10 12 14 16 18 20
time
b) By inspection of Eq. 1, the time at which this function will reach its
maximum value is 2, so maximum value of the output is given by
c (2) 8(1 e 1 ) 8(1 e 0 / 2 ) S (0)
c) By inspection, the steady state value of c (t ) will be zero, since this is a
first-order system with no integrating poles and the input returns to zero.
To obtain c() , simplify the function derived in a) for all time greater
than 2, yielding
Substituting c(t ) 0.05 in the previous equation and solving for t gives
t = 9.233
5-4
5.5
dT
mC hA(Ts T )
dt
dT dT
Ts T and ,
dt dt
dT
15 Ts T
dt
T ( s ) 1
Taking Laplace transform,
Ts( s) 15s 1
Ts T 23
From t = 0 to t = 20,
57
Ts(t ) 57 S(t) , Ts( s )
s
1 57
T ( s ) Ts( s )
15s 1 s (15s 1)
T (t ) 57(1 e t / 15 )
Then
T (t ) T (t ) T 23 57(1 e t / 15 )
5-5
Maximum T(t) = T(20) = 23 + 57 (1-e-20/15) = 64.97 C
c)
50
45
41.97 º
40
35
30
25
T'
20
15
10
0
0 5 10 15 20 25 30 35 40 45 50
time
5.6
(a)
10 M
Y ( s) G ( s )U ( s )
(5s 1)(3s 1) s
a a a
Y ( s) ( 1 2 3 ) M
5s 1 3s 1 s
Inverse Laplace:
y (t ) (25e t / 5 15e t / 3 10) M
Then,
5-6
lim y(t ) lim(25e t / 5 15e t / 3 10) M 10M
t t
(b)
10
Y ( s ) G ( s)U ( s )
(5s 1)(3s 1)
a1 a
Y (s) 2
5s 1 3s 1
Inverse Laplace:
y (t ) 5e t / 5 5e t / 3
Then,
lim y(t ) lim 5e t / 5 5e t / 3 0
t t
(c)
10 1
Y ( s ) G ( s )U ( s )
(5s 1)(3s 1) s 1
2
a a a b3 j a3 b3 j
Y (s) 1 2 3
5s 1 3s 1 s j s j
Inverse Laplace:
y (t ) 125 / 26e t / 5 9 / 2e t / 3 7 / 13sin t 4 / 13 cos t
5-7
Then, lim y (t ) does not converge.
t
(d)
10 1
Y ( s) G ( s)U ( s ) (1 e t w s )
(5s 1)(3s 1) s
Then,
lim y(t ) lim(25e t / 5 15e t / 3 10) (25e (t 10) / 5 15e (t 10) / 3 10) 0
t t
5.7
Assume that at steady state the temperature indicated by the sensor Tm is equal to
the actual temperature at the measurement point T. Then,
Tm ( s ) K 1
T ( s ) s 1 1.5s 1
Tm T 350 C
Tm (t ) 15sin t
At large times when t/ >>1, Eq. 5-26 shows that the amplitude of the sensor
signal is
A
Am
2 2 1
5-8
= (3 370.6)(2 200) = 711.8C
Therefore, the catalyst will not sinter instantaneously, but will sinter if operated
for several hours.
5.8
dh
A q1 q 2 q
dt
As H ( s ) Q1 ( s ) Q2 ( s )
H ( s ) 1
Q1 ( s ) As
5 5 12 s
Q1 ( s) e
s s
1 5/ A 5/ A
H ( s) Q1( s) 2 2 e12 s
As s s
5 5
h(t ) t S(t) (t 12) S(t-12)
A A
5
4+ t 4 0.177t 0 t 12
A
h(t) =
5
4 + 12 6.122 12 < t
A
5-9
2.5
1.5
h'(t)
0.5
0
0 5 10 15 20 25 30 35 40 45 50
time
d) q1(t ) 10S t 5S t 12
10 5 12 s
Q1( s) e
s s
10 / A 5 / A
H ( s) 2 2 e12 s
s s
10
4 t 4 0.354t 0 t 12
h t A
6.122 0.177t t 12
The liquid level will keep increasing and there will be no steady-state
value of liquid level h .
5-10
11
10
h(t)/ft
7
4
0 5 10 15 20 25
Time/min
5.9
dh
A C (qi 8.33h)
dt
ft 3 /min
C = 0.1337
USGPM
H ( s ) 0.12
Qi( s ) 11.28s 1
For tank 2,
dh
A C (qi q )
dt
5-11
H ( s ) 0.011
As H ( s ) CQi( s ) ,
Qi ( s ) s
b) Qi( s ) 20 / s
h(t) = 6 + 0.22t
h = 8 ft at t = 20.1 min
For tank 2, 8 = 6 + 0.22t
h = 8 ft at t = 9.4 min
5
h'(t)
1
Tank 1
Tank2
0
0 5 10 15 20 25 30 35 40
time
5-12
5.10
d 2 h dh
A Bh C p (t )
dt dt
where
6 3g 3
A= B= and C =
R 2 2L 4L
s 2 H ( s) As H ( s) BH ( s) C P ( s)
C/B
or H ( s) P ( s)
1 2 A
s s 1
B B
K
H ( s ) P ( s)
s 2s 1
2 2
1
Hence K = C/B =
2g
1/ 2
1 2L
2 then 1 / B
B 3g
1/ 2
A 3 2 L
2 then 2
B R 3g
5-13
5.11
KM K K2
Y(s) = 21
s (s 1) s
2
s(s 1)
K1s + K1 + K2s = KM
K1 = KM
K2 = K1 = KM
Hence
KM KM
Y(s) =
s 2
s (s 1)
or
y(t) = KMt KM (1-e-t/)
slope = KM
intercept = KM
y(t)
Slope = KM
5-14
5.12
a) y Ky 4 y x
Y (s) 1 0.25
2
X ( s) s Ks 4 0.25s 0.25Ks 1
2
b) Characteristic equation is
s2 + Ks + 4 = 0
K K 2 16
The roots are s =
2
Response will converge in region 0 < K 10, and will not converge in
region –10 K 0
5-15
5.13
t
y(t) = KM 1 1 e t /
Rearranging
y t t /
1 1 e
KM
t t / y
1 e 1
KM
When y/KM = 0.95, the response is 0.05 KM below the steady-state value.
KM
0.95KM
0 ts time
t s t /
1 e 1 0.95 0.05
t t
ln1 s s ln(0.05) 3.00
5-16
t t
Let E = ln1 s s 3
t
and find value of s that makes E 0 by trial-and-error.
ts/ E
4 0.6094
5 -0.2082
4.5 0.2047
4.75 -0.0008
Ka a a a a4
b) Y(s) = 1 22 3
s (s 1)
2 2
s s s 1 (s 1) 2
We know that the a3 and a4 terms are exponentials that go to zero for large
values of time, leaving a linear response.
Ka
a2 = lim Ka
s 0 (s 1) 2
Ka
Define Q(s) =
(s 1) 2
dQ 2 Ka
ds (s 1) 3
1 2 Ka
Then a1 = lim
1! s 0 (s 1) 3
a1 = 2 Ka
and we see that the output lags the input by a time equal to 2.
5-17
2
y x=at yl =a(t-2)
(c) .
1
Output
0.9 95% threshold
0.8
0.7
0.6
0.5
Y
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6
Time
5-18
4
u(t)
3.5 y(t)
2.5
2
Y
1.5
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4
Time
5.14
11.2mm 8mm
a) Gain = 0.20mm / psi
31psi 15psi
12.7mm 11.2mm
Overshoot = 0.47
11.2mm 8mm
Overshoot = exp 0.47 , = 0.234
1 2
2
Period = 2.3 sec
1 2
1 0.2342
= 2.3 sec 0.356 sec
2
R ( s ) 0.2
(1)
P ( s ) 0.127s 0.167s 1
2
5-19
R
R R R R R-8 P P-15
0.167 R R 0.2 P 5
0.127 R
5.15
P ( s ) 3
C / kW
T ( s ) (3) s 2(0.7)(3) s 1
2 2
Since K is 3 C/kW, the output change in going to the new steady state
will be
25
20
15
T'(t)
10
0
0 5 10 15 20 25 30 35 40 45 50
time
5-20
b) The overshoot can obtained from Eq. 5-53 or Fig. 5.11. From Figure 5.11
we see that OS 0.05 for =0.7. This means that maximum temperature is
5.16
1 2 1 2
y (t ) KM 1 e t / cos t sin t (5-51)
1 2
dy
1 2 1 2
KM e t / cos t sin t
dt
1 2
1 2 1 2 1 2
et / sin t cos t 0
1 2 1 2 1 2
2
0 cos t sin t
1 2
1 2
0 sin t sin n , t n
1 2
where n is the number of the peak.
5-21
Time to the first peak, tp
1 2
y (t p ) KM
b) Overshoot, OS =
KM
t
OS = exp cos() sin( )
1 2
exp exp
1 1
2 2
y (t 3 p ) KM
c) Decay ratio, DR =
y (t p ) KM
3
where y (t 3 p ) is the time to the third peak.
1 2
KM e
t 3 p /
2
DR = exp (t 3 p t p ) exp
t p /
2
KM e 1
2
exp (OS) 2
1
2
1 2
Let B = t , sin A = 1 2 , cos A =
y (t ) KM 1 e t /
1
1 2
1 2 cos B sin B
e t /
KM 1 sin( A B)
1 2
e t /
1 2
0.05 , or
t ln 0.05 1 2
5-22
20
Therefore, ts ln
1 2
5.17
Δoutput 15 10 ft ft
K 1/ 6
Δinput 210 180 gal/min gal/min
16.5 15 1.5
Fraction overshoot = 0.3
15 10 5
1/ 6 0.17
G p (s)
(1.19) s 2(0.35)(1.19)s 1 1.42s 0.83s 1
2 2 2
b) 4 minutes might not be the first peak (as shown in Figure 5.8); thus, the
solution may be not unique.
5.18
(a)
τ=1,ζ=0.5 .
Roots of denominator are: s 2 s 1 0 , s = -0.50+0.87j and -0.50-0.87j.
Imaginary roots suggest oscillation.
2 2 4
lim y (t ) lim sY ( s) lim s 2 lim 2 4.
t s 0 s 0 s s 1 s s 0 s s 1
Time to first peak: πτ/ 1-ζ 2 =3.6
Overshoot: 2 2 exp(-πζ/ 1-ζ 2 )=0.652
5-23
2
Period: 7.25
1-ζ 2
Figure can be sketched using Figure S5.8 in Chapter 5 for 1,ζ 0.5 .
(b)
Decay Ratio: exp(2 ζ/ 1-ζ 2 ) 0.106
5.19
dh1 h
A1 Cqi 1
dt R1
dh h h
A2 2 1 2
dt R1 R2
5-24
ft 3 /min
C = 0.1337
gpm
h 2.5 ft
R1 = R2 = 1 0.187 3
Cqi 0.1337 100 ft /min
H 1 ( s) C CR1 0.025
Qi( s) 1 A1 R1 s 1 1.32s 1
A1 s
R1
H 2 ( s) 1 / R1 R2 / R1 1
H 1 ( s ) 1 A2 R2 s 1 1.32s 1
A2 s
R2
H 2 ( s) 0.025
Qi( s) (1.32s 1) 2
h1max 0.025M
h2 max 0.025M since the second-order transfer function
0.025
is critically damped (=1), not underdamped
(1.32s 1) 2
2.5 ft
Hence Mmax = 100 gpm
0.025 ft/gpm
dh h
A Cqi
dt R
A (4) 2 / 4 12.6 ft 2
V = V1 + V2 = 2 7.07ft 2 5ft = 70.7ft3
hmax = V/A = 5.62 ft
h 0.5 5.62 ft
R= 0.21 3
Cqi 0.1337 100 ft /min
5-25
H ( s ) C CR 0.0281
Qi( s ) 1 ARs 1 2.64s 1
As
R
0.0281M
hmax
2.81 ft
Mmax = 100 gpm
0.0281 ft/gpm
Hence, both systems can handle the same maximum step disturbance in qi.
M
b) For step change of magnitude M, Qi( s)
s
1 1 0.025 M
Q2 ( s) H 2 ( s)
R2 0.187 (1.32s 1) 2 s
1 1.32 1.32
0.134M 2
s (1.32s 1) (1.32s 1)
t t / 1.32
q2 (t ) 0.134M 1 1 e
1.32
1 1 0.0281 M 1 2.64
Q ( s ) H ( s) 0.134M
R 0.21 (2.64s 1) s s 2.64s 1
q (t ) 0.134M 1 e t / 2.64
Original system provides better damping since q 2 (t ) < q(t ) for t < 3.4.
c) Computer simulation result
5-26
0.14
Original
Modified
0.12
0.1
q/M 0.08
0.06
0.04
0.02
0
0 1 2 3 4 5 6 7 8 9 10
Time/min
5.20
dC
V w1c1 w2 c 2 wc
dt
Vs C ( s ) w1C1 ( s ) w2 C 2 ( s ) wC ( s )
C ( s) w1 5 0.5
C1 ( s) Vs w (70)(7) s 10 49s 1
C m ( s) K
, K = (3-0)/3 = 1 , 6 sec = 0.1 min
C ( s) s 1
(from the graph)
C m ( s) 1 0.5 0.5
C1 ( s) (0.1s 1) (49s 1) (0.1s 1)(49s 1)
5-27
3
b) C1 ( s)
s
1 .5
C m ( s )
s (0.1s 1)(49s 1)
1
cm (t ) 1.51 (0.1e t / 0.1 49e t / 49 )
(49 0.1)
0.5 3 1.5
c) C m ( s )
(49s 1) s s (49s 1)
cm (t ) 1.5 1 e t / 49
d) The responses in b) and c) are nearly the same. Hence the dynamics of the
conductivity cell are negligible.
1.5
1
Cm'(t)
0.5
Part b)
Part c)
0
0 20 40 60 80 100 120 140 160 180 200
time
5.21
5-28
dc A
V q(c A i c A ) Vk (T )c A (1)
dt
dT
VC qC (Ti T ) (H R )Vk (T )c A (2)
dt
Since a transfer function with respect to cAi is desired, assume the other
inputs, namely q and Ti, are constant. Linearize (1) and (2) and note that
dc A dc A dT dT
, ,
dt dt dt dt
dcA 20000
V qcA i (q Vk (T ))cA Vc A k (T ) T (3)
dt T2
dT 20000
VC qC H RVc A k (T ) T H RVk (T )c A (4)
dt T2
T ( s) (H R )Vk (T )q
C Ai ( s) 20000 20000
Vs q Vk (T ) VCs qC (H R )VcA k (T ) (H R )V 2c Ak 2 (T )
T
2
T2
(7)
c A is obtained from Eq. 1 at steady state,
qc Ai
cA = 0.01159 lb mol/cu.ft.
q Vk (T )
5-29
T ( s) 12.69
C A i ( s) (0.082s 1)(5s 1)
12.69
T ( s )
(0.082s 1)(5s 1) s
1
T (t ) 12.691 (0.082e t / 0.082 5e t / 5 )
(50 0.082)
T ( s) 12.69
C A i ( s) 5s 1
Figure S5.21 Step responses for the ODE system, 2nd order t.f and 1st order
approx.
5-30
5.22
(a)
Step response of a first-order process is:
K1 M
Y ( s) G ( s )U ( s)
(s 1) s
Inverse Laplace gives:
y (t ) K1 M (1 e t / ) (1)
Compared Eqs. 2 and 3, we conclude when t is close to zero, or t << τ, first order
system can be approximated by integrator with:
K
K0 1 (4)
(b)
K1
From part (a), K 0 .
(c)
Eq. 3 shows the integrator step response in time domain. With the step test data,
plot the data and approximate the slope of the line. Set the slope equal to K0M and
find K0. The time delay would be estimated to be the time where the line
intersects the x-axis.
5-31
Figure S5.22 Step response data to find delay and approximated integrator process gain.
5.23
(a)
5 (1 e s )
Y ( s) G ( s)U ( s)
(3s 1) s
Final value theorem:
5 (1 e s ) 5(1 e s )
lim y (t ) lim sY ( s) lim s lim 0
t s 0 s 0
(3s 1) s s 0 (3s 1)
(b)
K1 1
Y ( s ) G ( s )U ( s )
(3s 1) s 2
Final value theorem:
5 1 5
lim y(t ) lim sY ( s) lim s 2
lim Undefined.
t s 0 s 0
(3s 1) s s 0 (3s 1) s
(c)
For part (a), the heating rate returns to steady state after time 1, the tank
temperature will gradually return to the steady state value once the hotter fluid is
passed out of the stirred tank heater.
For part (b), the heating rate rises linearly with time and so does the outlet
temperature. Physical limitations include element burnout, boiling of the liquid,
and constraints on the amount of electrical power available. However, there
5-32
should not be any short term physical limitations to the ramp, but it is an unsafe
situation.
5.24
a)
From block algebra,
1 4 −3 4𝑠+1
𝑌(𝑠) = [𝑠 + 2𝑠+1 + 𝑠+1] 𝑈(𝑠) = 𝑠(2𝑠+1)(𝑠+1)
4𝑠+1 1 4𝑠+1 1
or 𝑌(𝑠) = (2𝑠+1)(𝑠+1) × 𝑠 = 2𝑠2 +3𝑠+1 × 𝑠
For this example, a > 1 (e.g., 4 > 2), so the response will exhibit some
overshoot.
The system poles (-0.5, -1) lie in the LHP, so y(t) will be bounded.
Finally,
5-33
b)
Step Response
1.4
1.2
0.8
Amplitude
0.6
0.4
0.2
0
0 2 4 6 8 10 12
Time (seconds)
change in inlet flow will cause the tank level to increase/decrease with time.
Thus, no new steady state will be attained, unless the tank overflows or
empties.
Integrating processes do not have a steady-state gain in the usual sense. Note
K
K lim G ( s) lim Undefined.
s 0 s 0 s
5.26
(a)
At time 0, Tm (0) and T(0) are the same which is t0. Then T (bath temperature)
follows a ramp:
5-34
T (t ) t T0 (1)
1
T ' (t ) t and LT: T ' ( s) (2)
s2
Tm ' ( s ) G 1
(3) Eq. 5-19 in the book
T ' ( s ) s 1 0.1s 1
Combine Eqs. 2 and 3 :
1 1 1
Tm ' ( s) T ' (s) 2 (4)
0.1s 1 0.1s 1 s
Apply PFE to Eq. 4:
1 1 1 a1 a a
Tm ' ( s ) T ' (s) 2 2 23
0.1s 1 0.1s 1 s 0.1s 1 s s
1
a1 0.01
s2 s 10
1
a3 1
0.1s 1 s 0
1 1 a1 a a
set s 10, 2 0.005; 2 23 0.015 0.1a 2
0.1s 1 s 0.1s 1 s s
a 2 0.1
As a result:
0.01 0.1 1
Tm ' ( s) 2 (5)
0.1s 1 s s
1 t
Tm ' (t ) 0.01 exp( ) 0.1 t
0.1 0.1 Eq. 5-21 in the book
Tm ' (t ) 0.1(exp( 10t ) 1) t
At t = 0.1 min and t = 1.0 min after the change in T(t), the difference would be:
5-35
Tm (t ) Tm (0) 0.1(exp( 10t ) 1) t
T (t ) T (0) t (6)
Tm Tm (t ) T (t ) 0.1(exp( 10t ) 1)
(b)
By looking at Figure 5.5, the maximum difference occurs when t→∞ and the
corresponding difference is: lim{0.1(exp( 10t ) 1)} 0.1
t
(c)
For large time, exp(-10t) approaches zero and:
Tm (t ) Tm (0) 0.1(exp( 10t ) 1) t Tm (0) (t 0.1)
which indicates there is a 0.1 min time delay between measurement and true value
after a long time.
5.27
5-36
Define deviation variables as: T’(t) = T(t) – T(0) and Tm’(t) = Tm’(t) – T(0) where
T(0) = 120°F. Transfer T(t) into T’(s) :
T ' (t ) T (t ) 120 20S (t ) 40S (t 10)
20 40 10 s
T ' (s) e (2)
s s
According to the problem, the dynamics of the thermometer follow first order:
Tm '( s ) 1
(3)
T '( s ) s 1
5-37
(b)
when t = 0.5 s, Tm (0.5) 20(1 exp(0.5)) 120 127.87F
when t = 15 s, Tm (2) 20(1 exp(2)) 120 100.26F
5.28
1 a a a a4 a5
Y s 1 22 3
s (2 s 1)
2 3
s s s 1 ( s 1) ( s 1)3
2
We know that the a3 , a4 , a5 terms are exponentials that go to zero for large values
of time, leaving a linear response.
1 a a 1
2 1 22 a1s a2
s 2s 1 2s 1
3 3
s s
1
a2 lim 1
2s 1
s 0 3
1
Define Q s
(2 s 1)3
dQ 6
ds (2s 1) 4
1 6
1! s 0 (2s 1)4
Then a1 = lim
a1 = 6
the long-time response (after transients have died out) is
y (t ) t 6
We see that the output lags the input by a time equal to 6.
5.29
5-38
c p is heat capacity of water
U is heat transfer coefficient
A is surface area of tank
t is time in mins
Substituting numerical values in and noting that
dT dT '
TA T ;
dt dt
dT '
1000 0.52 1 4180 120 60 0.5 1 TA' T '
4 dt
Taking Laplace transform:
T ' s 1
TA s 72.57 s 1
'
TA 20 15 20 S t ; TA T 20
35
TA' 35S t TA' s
s
35
T ' s
s 72.57 s 1
Applying inverse Laplace Transform to find when the water temperature reaches
0 ̊C.
T (t ) 35(1 et /72.57 ) 0 20 35 (1 et /72.57 )
t 61.45 min
(b) Since the second stage involves a phase change with a constant temperature,
thus, the time spent on phase change can be calculated based on the following
equation:
ρV UA T TA t
1000kg / m3 0.52 1m3 334 103 J / kg 120W / m2 K 0.5 1m2 15 K t
4
t 386.6 min
So the total time it takes to complete freeze the water in the tank is:
ttotal 61.45 386.6 448 min
5.30
5-39
It takes 5 to reach steady state, thus, the time constant
4
hr 0.8hr 2880s
5
(b) The interval of step changes for the input should be larger, possibly greater
than 4 hours.
T ' s K dT
(c) ; mc p UA T Ta Because the gain is small and the time
Q s s 1 dt
constant is large, we can see that the mass, density, heat capacity and furnace
height are all large.
5-40
Chapter 6
6.1
a)
0.7 s 2 2s 2
G s
s 5 5s 4 9s3 11s 2 8s 6
1.5 zeros
poles
axis
1
0.5
Imaginary Part
-0.5
-1
-1.5
Figure S6.1. Poles and zeros of G(s) plotted in the complex s plane.
b) The process output will be bounded because there is no pole in the right
half plane, but oscillations will be shown because of pure imagine roots.
c) Simulink results:
6-1
Step response
0.5
0.45
0.4
0.35
0.3
Amplitude
0.25
0.2
0.15
0.1
0.05
0
0 20 40 60 80 100 120 140
Time
6.2
4 s 2 8 0.5s 1
(a) Standard form: G s e 5 s e 5 s
0.5s 1 2s 1 0.5s 1 2s 1
(b) Apply zero-pole cancellation:
8
G s e5 s
2s 1
Gain =8; Pole=-0.5; Zeros=None
(c)
1 5 / 2s
1/1 Padéapproximation: e5 s
1 5 / 2s
The transfer function becomes
8 (1 5 / 2s)
G( s)
2s 1 (1 5 / 2s)
Gain = 8; poles = -0.5, -0.4; zero = 0.4
6-2
6.3
Y ( s) K ( a s 1) M
, X ( s)
X ( s) (1 s 1) s
From Eq. 6-13
t /1 a 1 t /1
y(t) = KM 1 1 a e KM 1 e
1 1
1 a
a) y (0 ) KM 1 a KM
1 1
( a 1 )
y KM et /1 0 for KM 0
1
2
6.4
Y ( s) K ( a s 1)
, 1>2, X(s) = M/s
X ( s) (1 s 1)( 2 s 1)
1 t / 1 a 2 t / 2
y (t ) KM 1 a e e
1 2 1 2
6-3
a) Extremum y (t ) 0
1 1 t / 1 1 a 2 t / 2
KM 0 a e e 0
1 1 2 2 1 2
1 1
1 a / 2 t
e 1 2 1 since 1>2
1 a / 1
1 t / 1 a 2 t / 2
KM 1 a e e KM
1 2 1 2
1 1
a 1 t
e 2 1 0 , therefore a>1
a 2
c) Inverse response y (t ) 0 at t = 0+
1 1 t / 1 1 a 2 t / 2
KM 0 a e e 0 at t = 0
+
1 1 2 2 1 2
1 1 1 a 2
a 0
1 1 2 2 1 2
1 1
a
2 1
0
1 2
1 1
t 1 a 2
e 1 2
1 a 1
1 2 1 a 2
t ln
1 2 1 a 1
6-4
6.5
1 22.5s
Using 1/1 Padéapproximation: e45 s ;
1 22.5s
1.4 13.5s 1.4 1 9.64 s
Gp s e 30 s e 30 s
40 s 11 22.5 s 40 s 11 22.5 s
Gain = 1.4; 0 a 1 , so it is an over damped process,
1.4
True Value
1.2
0.8
0.6
0.4
0.2
0
0 50 100 150 200 250 300
6.6
K1 K K K
Y ( s) U ( s) 2 U ( s) 1 2 U ( s)
s s 1 s s 1
Y ( s) K1 s K1 K 2 s ( K1 K 2 ) s K1
U ( s) s (s 1) s(s 1)
6-5
Put in standard K/ form for analysis:
K
K 1 2 s 1
K1
Y ( s)
G(s)
U (s) s (s 1)
1 K1
sa
K K1 K 2
2
K1
K1
If 0 , the zero is in right half plane.
K1 K 2
Two possibilities:
1. K1<0 and K1 + K2 >0
Then the zero is RHP if K1 + K2 > 0. This is the only possibility.
g) If input is M/s, the output will contain a t term that is not bounded.
6.7
2
a) p(t ) (4 2)S (t ) , P ( s)
s
3 3 2
Q( s) P ( s)
20s 1 20s 1 s
6-6
Q (t ) 6(1 e t / 20 )
b) R ( s ) Q ( s ) Pm ( s )
r (t ) p m (t ) 12 6(1 e t / 20 )
r (t ) 18 12 6(1 0)
K 6
p (t ) p (t 0) 42
Overshoot,
OS exp 0.514 , 0.2
1 2
Period T for r (t ) is equal to the period for pm(t) because e-t/20 decreases
monotonically.
Thus, T = 50 15 = 35
T
and 1 2 5.46
2
Pm ( s) K K
c) 2 2
P ( s) s 2s 1 s 1
K s2 2
( K 2 K ) s ( K K )
( s 2s 1)(s 1)
2 2
Pm ( s ) %
d) Overall process gain = K K 6 3 3
P ( s ) s 0
psi
6-7
6.8
K bt
Gbt ( s)
bt s 1
qin 2m 3
where K bt 1 and bt 2 min
qi 1m 3 / min
K tl
Gtl ( s)
tl s 15
where:
K tl 1
0.1m 3
tl 0.02 min
5 1m 3 / min
Thus,
( s)
C out K bt
Cin ( s) (2s 1)(0.02s 1) 5
1
b) Since bt >> tl [ 2 >> 0.02], we can approximate by e-s
(0.02s 1) 5
5
where (0.02) 0.1
i 1
( s) K bt e 0.1s
Cout
Cin ( s) 2s 1
c) Because bt 100 tl, we anticipate that this approximate TF will yield
results very close to those from the original TF (part (a)). This
approximate TF is exactly the same as would have been obtained using a
plug flow assumption for the transfer line. Thus we conclude that
investing a lot of effort into obtaining an accurate dynamic model for the
transfer line is not worthwhile in this case.
6-8
d) Simulink simulation
1.2
0.8
0.6
Output/Kbt
0.4
0.2
Exact model
Approximate model
-0.2
0 5 10 15 20 25 30
Time
Figure S6.8. Unit step responses for exact and approximate models.
6.9
6.10
C i( s ) 1
,i = 1, 2, …, 5
Ci1 ( s ) V
s 1
q
6-9
co is the inlet concentration to tank 1.
C5 ( s) C ( s) 1
5 5
i ,
C0 ( s) i 1 Ci1 ( s) 6s 1
6-10
b) Using Simulink,
0.6
c5
0.58 c4
c3
c2
0.56
c1
0.54
Concentration
0.52
0.5
0.48
0.46
0.44
0 5 10 15 20 25 30 35 40 45 50
time
The value of the expression for c5(t) verifies the simulation results above:
5 52 53 54
c5 (30) 0.60 0.15 1 e 1 5 0.5161
2! 3! 4!
6.11
First, consider then the undelayed response (with =0); then apply the Real
Translation Theorem to find the desired delayed response.
6-11
Denote the undelayed response (for =0) by cm (t ). Then,
The transfer functions for the delayed and undelayed systems are:
Cm ( s ) e s
(3)
C ( s ) s 1
Cm ( s ) 1
(4)
C ( s ) s 1
2
C ( s) (5)
s2
1 2
Cm ( s) 2 (6)
s 1 s
The corresponding response to the ramp input is given by Eq. 5-19 with K =1, a =2, and =10:
6-12
Let ta denote the time that the alarm goes on for the undelayed system; thus, the alarm lights up when
c m (ta ) 25 min; i.e., when c m (ta ) 25 5 20 min . .Substituting into (7) and solving for ta by trial
and error gives
ta 9.24 min
Let ta denote the time that the alarm goes off for the system with time delay. It follows from the
definition of a time delay that,
6.12
Using Simulink,
True
Approximate
-1
0 5 10 15 20 25 30 35 40 45 50
Figure S6.12 Unit step responses for the exact and approximate models.
6-13
(c) Maximum error =0.265, at t= 9.89s, and the location corresponding to the
maximum error is graphically shown in above figure by black vertical line.
6.13
From the solution to Exercise 2.5(a) , the dynamic model for isothermal
operation is
V1 M dP1 Pd P1 P1 P2
(1)
RT1 dt Ra Rb
V2 M dP2 P1 P2 P2 Pf
(2)
RT2 dt Rb Rc
Pf ( s) 0
since Pf is constant,
K b Pd ( s) K a P2( s)
P1( s) (3)
1 s 1
K P ( s)
P2( s) c 1 (4)
2 s 1
where
K a Ra /( Ra Rb )
K b Rb /( Ra Rb )
K c Rc /( Rb Rc )
V1 M Ra Rb
1
RT1 ( Ra Rb )
V2 M Rb Rc
2
RT2 ( Rb Rc )
6-14
Kb Kc
P2 ( s ) Kb Kc 1 K K
a c
(5)
Pd ( s ) (1 s 1)( 2 s 1) K a K c 1 2 2 1 2
s s 1
1 K a K c 1 Ka Kc
Kb
(2 s 1)
P1( s ) 1 K a c
K
(6)
Pd ( s ) 12 2 1 2
s s 1
1 Ka Kc 1 Ka Kc
1 2 2
2 , 2 1
1 Ka Kc 1 Ka Kc
Therefore,
1 (1 2 ) (1 K a K c ) 1 1 2
1
2 (1 K a K c ) 1 2 2 2 1 (1 K a K c )
Since KaKc 0,
1
6-15
6.14
4e s 4e s
Let G ( s)
0.4s 1 (2 s 2 3s 1) 0.4s 1 (2 s 1)( s 1)
2 2
Ke s
Gapprox ( s)
s 1
In order for the approximate model and the original models to have the
same steady-state gain, we set K 4.
6.15
R2 A2 R1 A1 R2 A1 1 R1 A1 R2 A2 1
R2 A1
2 R1 R2 A1 A2 2 R2 A2 R1 A1 2
R1 A2
1
Since x 2 for all positive x and since R1, R2, A1, A2 are positive
x
1
2 1 R2 A1 1
2 2 R1 A2
6-16
6.16
dh2
A2 q0 q2
dt
For a linear resistance, (cf. Eq. 4-50),
1
q2 h2
R2
Substitute,
dh2 1
A2 q0 h2
dt R2
or
dh2
A2 R2 R2q0 h2
dt
Because
1
Q2(s) H 2(s)
R2
we obtain,
Q2(s) 1 R2 1
Q0(s) R2 A2R2s 1 A2R2s 1
Letting 2 A2 R2
6-17
Q2(s) 1
Q0(s) 2 s 1
b) Mass balances on the two tanks yield (after dividing by , which is constant)
dh dh
A1 1 q1 A2 2 q0 q1 q2
dt dt
Valve resistance relations:
1 1
q1 (h1 h2 ) q2 h2
R1 R2
d) The response for Case (b) will be slower because this interacting system is
second order, instead of first order.
6.17
2 radians
0.262 hr 1
24 hours
12
Ti( s)
s 2
2
(72 36s)
Ti( s)
(10s 1)(5s 1)( s 2 2 )
To invert, either (i) make a partial fraction expansion manually, or (ii) use the
MATLAB residue function. The first method requires solution of a system of
6-18
algebraic equations to obtain the coefficients of the four partial fractions. The
second method requires that the numerator and denominator be defined as
coefficients of descending powers of s prior to calling the MATLAB residue
function:
MATLAB Commands:
Note: the residue function re-computes all the poles (listed under p). They
are, in reverse order: p1 = 0.1( 1 10) , p = 0.2( 2 5) , and the two purely
imaginary poles corresponding to the sine and cosine functions. The
residues (listed under r) are exactly the coefficients of the corresponding
poles; in other words, the coefficients that would have been obtained via a
manual partial fraction expansion. In this case, we are not interested in the
real poles since both of them yield exponential functions that go to 0 as
t .
The two complex poles are interpreted as the sine/cosine terms using
Appendix L.
6-19
a2
y (t ) a1ebt cos t e bt sin t ...
The amplitude of the composite output sinusoidal signal, for large values,
of t is given by
Thus the amplitude of the output is 15.7 for the specified 12 amplitude
input.
6.18
150
148
146 y1
144 y2
142
y 140
138
136
134
132
130
0 1 2 3 4 5 6 7 8
t
6-20
6.19
(b) The transfer function model can be derived based on Laplace transform:
F0 F1
C2' s C0' s
V s 2Vk F1 F2 RF2 Vs F1F2 Vk 1 R F2 FVk
2 2
1 V 2 2
k
F0 F1
C2' s C0' s
V s F1 F2 RF2 Vs F1F2
2 2
Since F1 RF2 F2 , F0 F2
6-21
F0 RF0 F0
C2' s C0' s
V s RF0 RF0 2 F0 Vs RF0 F0 F0
2 2
1
F02 1
R C0' s
2
V 2 s 2 2 F0 F
Vs 2 F0Vs F02 0
R R R
F0
When R , C2' s C0' s , equivalent to a single tank with a
2Vs F0
volume = 2V.
The gain of above transfer function is 1.
6.20
The dynamic model for the process is given by Eqs. 2-45 and 2-46,
which can be written as
dh 1
( wi w) (1)
dt A
dT w Q
i (Ti T ) (2)
dt Ah AhC
where h is the liquid-level
A is the constant cross-sectional area
System outputs: h , T
System inputs : w, Q
Assume that wi and Ti are constant. In Eq. 2, note that the nonlinear term
dT
h can be linearized as
dt
dT dT
h h
dt dt
dT dT
or h since 0
dt dt
dh 1
w
dt A
6-22
dT wi 1
T Q
dt Ah Ah C
H ( s ) K1 H ( s ) T ( s ) T ( s) K2
, 0 , 0 ,
W ( s ) s Q ( s ) W ( s ) Q ( s) 2 s 1
1 1 Ah
where K 1 ; and K 2 , 2
A wi C wi
6.21
Additional assumptions:
(i) The density and specific heat C of the liquid are constant.
(ii) The temperature of steam, Ts, is uniform over the entire heat transfer
area.
dV
qF q (1)
dt
d [V (T Tref )]
C q F C (TF Tref ) qC (T Tref ) UA(Ts T ) (2)
dt
where Tref is a constant reference temperature and A is the heat transfer area
6-23
dV
Eq. 2 is simplified by substituting for from Eq. 1. Also, replace V by AT h
dt
(where AT is the tank area) and replace A by pT h (where pT is the perimeter of
the tank). Then,
dh
AT qF q (3)
dt
dT
CAT h qF C (TF T ) UpT h(Ts T ) (4)
dt
Then, Eqs. 3 and 4 are the dynamic model for the system.
dh
AT q F q (5)
dt
dT
CAT h C (TF T )qF (CqF UpT h )T UpT hTs UpT (Ts T )h (6)
dt
1 1
H ( s) QF ( s) Q( s) (7)
AT s AT s
CAT h C (TF T )
s 1 T ( s ) QF ( s )
CqF UpT h CqF UpT h
UpT h UpT (Ts T )
Ts( s) H ( s) (8)
CqF UpT h CqF UpT h
CAT h C (TF T )
AT s s 1 T ( s ) AT s QF ( s )
CqF UpT h CqF UpT h
6-24
CAT h
Let
CqF UpT h
H ( s) 1 H ( s) 1 H ( s )
, , 0
QF ( s) AT s Q( s ) AT s Ts ( s )
UpT (Ts T )
T ( s ) CqF UpT h
Q( s ) AT s s 1
UpT h
Cq Up h
T ( s )
F T
Ts( s ) s 1
6-25
Note:
C (TF T ) AT
2 is the time constant in the numerator.
UpT (Ts T )
UpT h (Ts T )
or C (TF T )
qF
Substituting
hAT
2
qF
V
Let V hAT so that 2 = (initial residence time of tank)
qF
T ( s ) T ( s )
For and the “gain” in each transfer function is
QF ( s ) Q( s )
Up (T T )
K T s
AT CqF UpT h
and must have the units of temperature/volume . (The integrator s has units of
t-1).
CqF (TF T )
UpT (Ts T )
h
CqFT (TF T )
K
hAT CqF UpT h
T TF
or K
Up h
V 1 T
CqF
6-26
and the gain is positive since T TF 0 . Furthermore, it has dimensions of
temperature/volume.
UpT h
(The ratio is dimensionless).
CqF
(b) The h qF transfer function is an integrator with a positive gain. Liquid level
accumulates any changes in qF , increasing for positive changes and vice-versa.
h Ts : h stays constant.
6-27
6.22
Laplace transforming
From (4)
or
H 2' ( s) 1 1
(6)
H1 ( s) A2 Rs 1 2 s 1
'
where 2 A2 R
Returning to (3)
1 '
(1s 1) H1 ( s) RWi ( s)
'
(8)
2 s 1
or
6-28
(12 ) s 2 (12 ) s H1' ( s ) R(2 s 1)Wi ' ( s ) (9)
H1' ( s ) R(2 s 1)
(10)
W1 ( s) s 12 s (1 2 )
'
Note that
R R 1 1
K (12)
1 2 A1R A2 R ( A1 A2 ) A
since A A1 A2
Also, let
12 2 R 2 A1 A2 RA1 A2
s (13)
1 2 R ( A1 A2 ) A
so that
H1' ( s) K (2 s 1)
(14)
Wi ' ( s) s(3 s 1)
and
K
(15)
s (3 s 1)
Transfer functions (6), (14) and (15) define the operation of the two-tank
process.
6-29
dh' 1 '
wi (16)
dt A
H ' ( s) 1/ A
(17)
Wi ' ( s) s
Again
1
K
A
H ' ( s) K
(18)
Wi ' ( s) s
b) For A1 A2 A / 2
2 AR / 2
(19)
3 AR / 4
Thus 2 23
H 2' ( s) K
Wi ( s) s(3 s 1)
'
Remarks:
6-30
- However, the two-tank TF’s contain a pole (3 s 1) that will “filter
out” changes in level caused by changing wi(t).
- On the other hand, for this special case, we see that the zero in the first
tank transfer function ( H i' ( s) / Wi ' ( s)) is larger than the pole:
2 3 3
Thus we should make sure that amplification of changes in h1(t)
caused by the zero do not more than cancel the beneficial filtering of
the pole so as to cause the first compartment to overflow easily.
Now look at more general situations of the two-tank case:
For either A1 0 or A2 0 ,
RA1 A2
3 0
A
Thus the beneficial effect of the pole is lost as the process tends to
look more like the first-order process.
RA1 A2 RA1 ( A A1 )
3
A A
3 R
Find max 3 : ( A A1 ) A1 (1)
A1 A
Set to 0: A A1 A1 0
2 A1 A
A1 A / 2
Thus the maximum filtering action is obtained when A1 A2 A / 2.
6-31
The ratio of 2 / 3 determines the “amplification effect” of the zero on
h1 (t ).
2 A2 R A
3 RA1 A2 A1
A
2
As A1 goes to 0,
3
Summing up:
6.23
Y ( s) K
G( s)
U ( s) (0.1s 1) (4s 2 2s 1)
2
where K = K1K2.
2 4 2
6-32
2 2 0.5
Ke 0.2 s
G ( s)
4s 2 2s 1
c) From Fig. 5.3, ymax occurs at t/ = 3K or tmax = 6.8 for an underdamped
2nd-order process with 0.5 .
d) By using Simulink
1 = 0.1:
3.5
2.5
2
Output
1.5
0.5
0
Exact model
Approximate model
-0.5
0 5 10 15 20 25 30
Time
Figure S6.23a Step response for exact and approximate models; 1 = 0.1.
6-33
1 = 1:
3.5
2.5
Output 2
1.5
0.5
0
Exact model
Approximate model
-0.5
0 5 10 15 20 25 30
Time
1 = 5:
3.5
2.5
2
Output
1.5
0.5
0
Exact model
Approximate model
-0.5
0 5 10 15 20 25 30
Time
As is apparent from the plots, the smaller 1 is, the better the quality of the
approximation. For large values of 1 (on the order of the underdamped
element's time scale), the approximate model fails.
6-34
6.24
-0.2
-0.4
-0.6
Output
-0.8
-1
-1.2
-1.4
0 50 100 150 200 250 300 350 400
Time
-1
40s+1
Step Transfer Fcn Transport
Delay1= 30 s
Scope
-0.4
40s+1
Step1 Transfer Fcn1 Transport
Delay = 75 s
6-35
6.25
dh1 1 1
A1 qi h1 , q1 h1
dt R1 R1
dh 1 1 1
A2 2 h1 h2 , q 2 h2
dt R1 R2 R2
x Ax Bu
y = Cx + Du
h
where x 1 , u qi and y q 2
h2
then,
dh1 1
1 1 A
dt R A 0 h
1 1 1
qi
1 1
dh2 R1 A1
R2 A2
h2 0
dt
h1
1
q 2 0
R2
h2
Therefore,
1
1 A
R A 0
1 1
A 1 1 , B , C0 , E 0
1 1 R2
RA
1 1 R2 A2 0
6-36
6.26
dx1
0.881y f 1.173x1 0.539x2
dt
dx2
0.634x1 1.173x2 0.539x3
dt
dx3
0.634x2 1.173x3 0.539x f
dt
y i 0.72xi
dx1
dt
1.173 0.539 0 x1 0.881
dx2 0.634 1.173 0.539 x 0 y
dt 2 f
0 0.634 1.173 x3 0
dx
3
dt
y1 0.72 0 0 x1 0
y 0 0.72 0 x 0y
2 2 f
y 3 0 0 0.72 x3 0
0.72 0 0 0
C 0 0.72 0 D 0
0 0 0.72 0
6-37
Applying the MATLAB function ss2tf , the transfer functions are:
Y2( s) 0.2550
3
Y f ( s) s 3.5190s 2 3.443s 0.8123
6-38
Chapter 7
7.1
T '( s) Kes
Qi '( s) s 1
T () T (0) (124.7 120) o
F
K 0.235
qi 520 500 gal/min
= 3:08 am – 3:05 am = 3 min
Assuming that the operator logs a 99% complete system response as “no change
after 3:34 am”, five time constants elapse between 3:08 and 3:34 am.
5 = 3:34 min 3:08 min = 26 min
= 26/5 min = 5.2 min
Therefore,
T '( s) 0.235e3s
Qi '( s) 5.2s 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
Process gain,
(0.8 0.6)
0.6 (6.145 6.07) min 0.74 min
(6.18 6.07)
7-1
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 -
Then the slope of the least squares fit, using Eq. 7-6 is
1 13Stz St S z
slope (1)
13Stt ( St )
2
Using definitions,
Substituting in (1),
1
1.213 0.82 min
d)
7-2
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) and the step response data.
7.3
a)
T1( s) K1 T2( s ) K2
Q( s) 1s 1 T1( s ) 2 s 1
T2( s) K1 K 2 K K e2 s
1 2 (1)
Q( s) (1 s 1)(2 s 1) 1 s 1
where the approximation follows from Eq. 6-58 and the fact that 1>2, as
revealed by an inspection of the data.
7-3
Let z1 and z2 be the natural log of the fraction incomplete response for T1
and T2, respectively. Then,
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
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
7-4
28
26
24
22
20
2
, T
1
T 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 a step change.
7.4
2 1.5
Y ( s) G ( s) X ( s)
(5s 1)(3s 1)( s 1) s
y(t ) (-75/8) exp(-t /5) + (27/4) exp (-t /3) - (3/8) exp(-t ) + 3 (1)
y (t )
z (t ) ln 1
3
7-5
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
2
G( s)
26.4s 6.68s 1
2
7-6
The models are compared in Fig. S7.4b:
2.5
1.5
Third-order model
y(t)
0.5
0
0 5 10 15 20 25 30 35 40
time,t
7.5
1 s
For a first-order plus time-delay model G e , assume 1; 0.1,1,10 ,
s 1
we have:
a) / 0.1 :
0.9
0.8 X: 2.017
Y: 0.853
0.7
0.6
Response
0.5
X: 0.5355
0.4 Y: 0.3531
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time/s
7-7
So t1 0.5355; t2 2.017;
1.3t1 0.29t2 0.1112
0.67 t2 t1 0.9926
1
True data
0.9 Approximate data
0.8
0.7
0.6
Response
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15
Time/s
b) / 1 :
1
X: 2.918
0.9 Y: 0.8531
0.8
0.7
0.6
Response
0.5
X: 1.436
0.4 Y: 0.3537
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time/s
So t1 1.436; t2 2.918;
7-8
1.3t1 0.29t2 1.021
0.67 t2 t1 0.9929
1
True data
0.9 Approximate data
0.8
0.7
Response 0.6
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15
Time/s
c) / 10 :
0.9
0.8 X: 11.92
Y: 0.853
0.7
0.6
Response
0.5
X: 10.44
0.4 Y: 0.3528
0.3
0.2
0.1
0
0 5 10 15
Time/s
7-9
So t1 10.44; t2 11.92;
1.3t1 0.29t2 10.12
0.67 t2 t1 0.9916
1
True data
0.9 Approximate data
0.8
0.7
0.6
Response
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15
Time/s
7.6
b) Smith’s method
From the plot, t20 = 3.9 , t60 = 9.6 ; using Fig 7.7 for t20/ t60 = 0.41
7-10
1
G( s)
(4.8s 1) 2
Nonlinear regression
Time Output
0.0 0.0
2.0 0.1
4.0 0.2
5.0 0.3
7.0 0.4
8.0 0.5
9.0 0.6
11.0 0.7
14.0 0.8
17.5 0.9
30.0 1.0
For the step response of Eq. 5-48, the time constants were calculated so as
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-11
1
0.9
0.8
0.7
0.6
Output
0.5
0.4
0.3
0.2
7.7
10e4 s
G( s) , 1 2
(1s 1)(2 s 1)
7-12
Assuming plug-flow in the pipe with constant-velocity,
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
10e3s
GHE ( s) ,
1 s 1
so that,
10e3s 0.1s 1
G ( s) GHE ( s)G pipe ( s )GTC ( s ) (e )
1s 1 2 s 1
7.8
H ' s K 46
Q s '
s 1 2.70s 1
7-13
(b) Nonlinear regression
By using deviation variables, the first order tank can be expressed as
H ' s K
Q s
'
s 1
The inlet flow rate is quickly changed from 1.5 gallon/min to 4.8 gallon/min so it
is a step change, Q’(s) 3.3/s:
Figure S7.8 A comparison of the step responses of the data and the two models.
7-14
SSE (NR) = 0.43
As indicated in Fig.S7.8, both methods fit the data well. The NR model is
preferred due to its smaller SSE value.
7.9
y 3 0
K 0.75
u 5 1
=2 (by inspection)
Use Smith’s method to find 1 and 2.
y20 = y(0) + (0.2) (y) = 0 + (0.2) (3) = 0.6
From inspection of the data,
t20 = 4 – = 2
Similarly,
y60 = y(0) + (0.6) (y) = 0 + (0.6) (3) = 1.8
t60 = 7 – = 5
Therefore,
t20 2
0.4
t60 5
From Fig. 7.7:
1.2
and
t60 t 5
2.1 = 60 2.38
2.1 2.1
Thus the transfer function can be written as:
0.75e 2 s
G ( s)
5.66 s 2 5.71 s 1
From (5-45) and (5-46) or by factoring (e.g., using MATLAB command roots)
gives:
0.75e 2 s
G ( s)
(4.44 s 1) (1.28 s 1)
7-15
7.10
Assume that T() = T(13) = 890 C. The steady-state gain K is the change in
output divided by the change in input:
890 – 850
K = 950 – 1000 = – 0.8 C/cfm
Assume that the input change in air flow rate is made at t = 2+ min so that the
observed input first changes at t = 3 min ; the output first changes at t = 5 min.
This means that the time delay is two sampling periods, i.e., = 2 min. Why is
=2 min, rather than 3 min? To understand this point, first consider a process
with no time delay (=0). For a step change at t = 2+ min, the first observed
changes in the input and the output of this undelayed would occur at t = 3 min,
because the output cannot change simultaneously due to the process dynamics.
But for our process, the first changes are observed at t = 5 min which implies that
min
t(8) – t(7)
t63.2% = T(8) – T(7)(T63.2% – T(7)) + t(7)
8–7
= 878 – 873(875.3 – 873) + 7
= 7.46 min
Then
t63.2% = + + t(0)
where t(0)=3, the time when the input first changes. Thus
7-16
So the FOPTD model of the process is
0.8 e2 s
G( s)
3.46 s 1
7.11
(b) Because a damped oscillation occurs, this matches the features of SOPTD.
FOPTD method does not allow for oscillation.
7-17
7.12
2.5
FOPTD
Raw data
2
1.5
1
y
0.5
-0.5
0 5 10 15 20 25 30
t,sec
(c) The inverse response at the initial state is caused by a right-half plan zero and
is not captured by FOPTD model.
7.13
7-18
t t
y (k ) (1 ) y(k 1) 6u(k 1)
5 5
In the integrated results tabulated below for t = 0.1, the values are shown
only at integer values of t, for comparison.
Table S7.13 Integrated results for the first order differential equation
y(k) y(k) y(k)
t
(exact) (Δt=1) (Δt=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
Thus t = 0.1 does improve the finite difference model making it a more
accurate approximation of the exact model.
7.14
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 n1
J 10
2( y (k ) a1 y (k 1) b1 x(k 1))( x(k 1)) 0
b1 n1
Solving simultaneously for a1 and b1 gives
7-19
10 10
y(k 1)
n 1
2
10 10 10 10
n 1
x(k 1) y (k 1) y (k 1)x(k 1)
2
n 1 n 1
2
10 10
10 10
x(k 1) 2 14
n 1
, y(k 1)
n 1
2
198.112
10
a1 = 0.8187 , b1 = 1.0876
Y (s) K
X ( s ) s 1
7-20
=5s and K = 6 volts
6
G( s)
5s 1
8
actual data
fitted model
5
y(t)
0 1 2 3 4 5 6 7 8 9 10
time,t
7.15
a) FOPTD model:
Since K=1, using linear interpolation to find times corresponding to the 35.3%
and 85.3% of response:
t35.3% 2.89; t85.3% 8.66
1.3t35.3% 0.29t85.3% 1.24
0.67 t85.3% t35.3% 3.87
7-21
e1/ 0.911; K 1 e 1/ 0.1329 K 1.49
1
True value
0.9 FOPTD
ARX model
0.8
0.7
0.6
Response
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8 9 10
Time
The result obtained using the ARX model is different from that obtained using an
FOPTD model, because the extra constraint “K=1” is not used. In other words,
the discrete time data do not include the final steady-state value, so the calculation
gives a different gain. If more data points are added on steady-state values, the
result obtained using ARX model will converge to K=1.
7.16
a) For the model in (1), the least squares parameter estimates are given by
βˆ = X T X X TY
-1
(2)
7-22
a1 4 0 2.5 0 4
a 4 11
4 2.5 2.5
β̂ 2 , X , and Y
b1
b2 213 211 2.5 2.5 214
Next, we generate model predictions for the calibration data (dataset basal1)
using past inputs and past model predictions, but not past output data.
Figure S7.16a compares the calibration data and the model predictions,
where y = y - y(0). Metric S denotes the corresponding sum of squared
errors,
N
S y (k ) yˆ (k )
2
(2)
1
ARX2 Cal
50
basal1
2nd Order Discrete Time Model Prediction
0 S = 1921
-50
y (mg/dL)
-100
-150
-200
-250
0 25 50 75 100 125 150 175 200 225 250
Time (min)
Figure S7.16a Comparison of model predictions and calibration data for the 2nd
order discrete-time model (S is the sum of squared errors in Eq. 2).
b) The comparison of the validation data (dataset basal2) and the corresponding
model predictions is shown in Figure S7.16b.
7-23
20
basal2
0 2nd Order Discrete Time Model Prediction
S = 60282
-20
-40
y (mg/dL)
-60
-80
-100
-120
-140
-160
0 50 100 150 200 250 300 350
Time (min)
Figure S7.16b Comparison of model predictions and validation data for the 2nd
order discrete time model (S is the sum of squared errors in Eq. 2).
Y (s) K
(3)
U (s) s 1
First, determine the steady-state gain, K = Δy/Δu. The output finally reaches a
new steady state of about 250 mg/dL. For dataset basal1, the input change is
u=2.5 units/day. Thus,
250 mg day
K 100
2.5 dL units
To identify time constant τ, determine the time at which 63.2% of the total
change has occurred. This corresponds to the time at which the output, Δy has a
value of - 250 × 63.2% = - 158. For inspection of the data, τ = 134 min when
y= 158 mg/dL.
The model predictions for the model in (3) can be calculated from the step
response for a first-order transfer function in (5-18)
y (t ) KM (1 e t / ) (5-18))
The input step sizes are M = 2.5 units/day for basal1 and 1.5 units/day for
basal2.
7-24
Figures S7.16c and S7.16d show the model predictions for the calibration and
validation data, respectively.
50
basal1
1st Order Transfer Function Model Prediction
0 S = 2428
-50
y (mg/dL)
-100
-150
-200
-250
0 25 50 75 100 125 150 175 200 225 250
Time (min)
Figure S7.16c Comparison of the model predictions and calibration data for the
1st order transfer function (S is the sum of squared errors in Eq. 2).
20
basal2
0 1st Order Transfer Function Model Prediction
S = 48194
-20
-40
y (mg/dL)
-60
-80
-100
-120
-140
0 50 100 150 200 250 300 350
Time (min)
Figure S7.16d Comparison of the model predictions and validation data for the
1st order transfer function (S is the sum of squared errors in Eq. 2).
c) Discussion of results
Table S7.16 lists the calculated values of S for the two models.
7-25
Table S7.16. Average squared error for the model predictions.
Modelh
Discrete-time Transfer
function
Calibration data 1921 2428
(basal1)
Validation data 60,282 48,194
(basal2)
The discrete-time model is more accurate than the transfer function model for
the calibration data, which is not surprising because the former has more
model parameters. Although, the transfer function model is more accurate for
the validation dataset, neither model is very accurate for this dataset.
7.17
Note: There is a typo in the 1st printing. The step change in u should start at 17.9
m3/min, not 17.0 m3/min.
The step response data is shown in Fig. S7.17a. The step change in u from 17.9 to
21 m3/min occurs at t = 14 min. By inspection of the noisy y data, the time delay
is approximately = 4 min.
7-26
Figure S7.17a Step response data for the furnace module.
From the step response data, the following information can be obtained:
y 25 K K
K 11.9 3
u 3
2.1 m /min m /min
From the figure, t63.2 = 19.5 – 14 - 4 = 5.5 min. Thus, the transfer function model
is:
Y ( s ) 11.9
U ( s ) 5.5s 1
7-27
t20 1.5
0.3
t60 5
2.2
and
t60 t 5
4 = 60 1.25 min
4 4
Thus the second-order transfer function can be written in standard form as:
THC ( s ) 1.5e 2 s
FA ( s ) 5.66 s 2 5.71 s 1
THC ( s ) 11.9e 4 s
FA ( s ) (1.25) 2 s 2 2(2.2)(1.25) s 1
From (5-45) and (5-46) or by factoring (e.g., using MATLAB command roots )
gives:
THC 11.9e 4 s
FA (5.2 s 1) (0.3 s 1)
c) Simulations
Figure S7.17b Comparison of furnace step response data and model responses.
d) Discussion
7-28
The model comparisons in Fig. S7.17b indicate that the two models are very
similar and reasonably accurate. However, the low-order transfer function models
fail to capture the higher order dynamics of the physical furnace model that was
used to generate the step response data. The first-order model has a lower value of
the least squares index, S:
7.18
The step response data is shown in Fig. S7.18a with the step change in u from
1.75 to 2.0 occurring at t = 3950 s. By inspection of the noisy data, the time delay
is ≈ 50 s.
The following information can be obtained from the step response data:
7-29
Figure S7.18a Step response data for the column module.
From the figure, = t63.2 – t(0)= 5050 – 3950 - 50 ≈ 1050 s. Thus, one estimate of
the time constant is = 1050 s. A second estimate can be obtained from the
settling time, ts ≈ 7600 – 3950 = 3650 s. Thus, ≈ ts/4 = 912 s. Averaging these
two estimates gives:
1050 912
ave 981 s
2
Thus the identified transfer function is,
xD ( s) 0.12 e50 s
R( s ) 981s 1
7-30
t20 280
0.31
t60 900
xD ( s ) 0.12 e50 s
R( s) (769s 1)(54s 1)
c) Simulations
Figure 7.18b Comparison of column step response data and model responses.
d) Discussion
The model comparisons in Fig. S7.18b indicate that both models are reasonably
accurate. However, the second-order model is more accurate as indicated visually
and by its slightly lower S value:
7-31
First order model: S 9.014 104
Second-order model: S 9.012 104
7-32
Chapter 8 ©
Many of the problems in this chapter require determining whether a controller should be
direct-acting or reverse-acting. The following chart can help guide the thinking process
for these problems when also considering the style of the valve. Note that the chart
assumes all unmentioned gains are positive (measurement, I/P, etc.).
KC M 0.52(2.5mA)
I = = 26 s
0.0335 mA/s 0.05 mA/s
8.2
K 2 1
P ( s ) K1 K K 2 1 s K 2 K K s 1
a) K2 1 ( K1 K 2 ) 1 2
E ( s ) 1 s 1 1 s 1 1 s 1
b) Kc = K1 + K2 K2 = Kc K1
1 D
K 2 1 K
D 2 D
K1 K 2 K1 K 2
8-2
K 2
or 1
K1 K 2
K1 K 2 K 2
K1 K 2 K 2 K 2 ( 1)
Substituting,
K1 ( K c K1 )( 1) ( 1) K c ( 1) K1
Then,
1
K1 K c
c) If Kc = 3 , D = 2 , = 0.1 then,
0.9
K1 3 27
0.1
K 2 3 (27) 30
1 = 0.1 2 = 0.2
Hence
K1 + K2 = -27 + 30 = 3
K 2 1 30 0.2
2
K1 K 2 3
2s 1
Gc ( s) 3
0.2s 1
8.3
1
Gi ( s ) K c 1 D s
I s
8-3
From Eq. 8-15, for 0, the series form of the PID controller is:
1
Ga ( s ) K c 1 D s 1
I s
1
K c 1 D D s
I I s
D 1 D s
K c 1 1
I D
1 I s 1 D
I I
Comparing Ga(s) with Gi(s)
K c K c 1 D
I
I I 1 D
I
D
D
1 D
I
b) Since 1 D 1 for all D, I, therefore
I
K c K c , I I and D D
8.4
8-4
b) System I: Flow rate too high need to close valve decrease
controller output reverse acting controller
System II: Flow rate too high need to close valve increase
controller output direct acting controller.
c) System I: Kc > 0.
System II: Kc < 0.
8.5
p(t ) p K c y sp (t ) y m (t ) (1)
where
q is the manipulated flow rate
Kv is the gain of the control valve.
8-5
Configuration (b):
As h increases, we want to increase q, the exit flow rate. For an air-to-close
control valve, the controller output should decrease. Thus as h increases p
decreases a reverse-acting controller.
Configuration (b):
As h increases, we want to increase q, the exit flow rate. For an air-to-open
control valve, the controller output should increase. Thus as h increases p
increases a direct-acting controller.
8.6
For PI control
1
t
p(t ) p K c e(t ) e(t*)dt *
I 0
1
t
p (t ) K c e(t ) e(t*)dt *
I 0
Since
e(t) = ysp – ym = 0 - 2 = - 2
Then
1
t
2
p (t ) K c 2 (2)dt * K c 2 t
I 0 I
- 2 Kc = 6 Kc = -3
2K c
= 1.2 min-1 I = 5 min
I
8-6
8.7
e(t ) 0.5t
0.5
E ( s)
s2
P' ( s) 1
K C 1 D s
E (s) Is
0.5 K C 1
P '( s ) 1 Ds
s2 Is
1 2
p '(t ) 0.5 K C t t D S (t )
2 I
1
pPID (t ) 12 t 2 t 0.5S (t )
3
1
pPI (t ) 12 t 2 t
3
(c) The plot of the controller response for both controllers is shown in Fig. S8.7.
8-7
Figure S8.7: PID controller output response
8.8
D
From inspection of Eq. 8-25, the derivative kick = K c r
t
a) Proportional kick = K c r
b) e1 = e2 = e3 = …. = ek-2 = ek-1 = 0
ek = ek+1 = ek+2 = …= r
p k 1 p
t
p k p K c r r D r
I t
8-8
t
p k i p K c r (1 i ) r , i = 1, 2, …
I
D
Kc r
pk t
t
K c r Kc r
I
p
8.9
= K c ( y sp y k ) y sp y k 1
= K c y k 1 y k
8-9
In both cases, pk does not depend on y sp .
b) For both these algorithms pk = 0 if yk-2 = yk-1 = yk. Thus a steady state is
reached with a value of y that is independent of the value of y sp . Use of
these control algorithms is inadvisable if offset is a concern.
t
c) If the integral mode is present, then pk contains the term Kc ( y sp y k ) .
I
Thus, at steady state, pk = 0 and yk-2 = yk-1 = yk , yk = y sp , and the offset
problem is eliminated.
8.10
P ( s ) 1 D s
a) K c 1
E (s) I s D s 1
Kc
I s(D s 1) D s 1 D sI s
I s(D s 1)
1 ( I D ) s (1 ) I D s 2
Kc
I s ( D s 1)
Cross- multiplying
P ( s ) s 1 D s
b) K c I
E (s) I s D s 1
Cross-multiplying
8-10
d 2 p (t ) dp (t ) de(t ) d 2 e(t )
I D K e (t ) ( )
dt 2
I c I D I D
dt 2 dt dt
Kc 2 , I 3 , D 0.5 , 0.1 , M = 1
18
16
14
p'(t) 12
10
2
0 2 4 6 8 10
Time
Figure S8.10. Step responses for both parallel and series PID controllers
with a derivative filter.
8.11
8-11
8.12
a) False. The controller output could saturate or the controller could be in the
manual mode.
b) False. Even with integral control action, offset can occur if the controller output
saturates. Or the controller could be in the manual mode.
8.13
8.14
First consider qualitatively how solute mass fraction x responds to a change in steam
flow rate, S. From physical considerations, it is clear that if S increases, x will also
increase. Thus, if x is increasing, we want S to decrease, and vice versa. For a fail-
open (air-to-close) control valve, the controller output p should increase in order to
have S decrease. In summary, if x increases we want S to decrease, which requires
an increase in controller output p; thus a direct-acting controller is required.
8.15
First consider qualitatively how exit temperature Th2 responds to a change in cooling
water flow rate, wc. From physical considerations, it is clear that if wc decreases, Th2
will increase. Thus, if Th2 is decreasing, we want wc to decrease, and vice versa. But
in order to specify the controller action, we need to know if the control valve is fail
open or fail close. Based on safety considerations, the control valve should be fail
open (air-to-close). Otherwise, the very hot liquid stream could become even hotter
and cause problems (e.g., burst the pipe or generate a two phase flow).
For an air-to-close control valve, the temperature controller output p should
increase in order to have wc decrease. In summary, if Th2 decreases we want wc to
decrease, which requires controller output p to increase; thus a reverse-acting
controller is required.
8-12
8.16
x1w1 x2 w2 xw x ( w1 w2 )
x1 x2
x1 x2
( x2 ) w1 x2 w2 x( w1 w2 )
x2 w1 w1 x2 w2 x ( w1 w2 )
x2 ( w1 w2 ) w1 x ( w1 w2 )
w1
x x2
( w1 w2 )
Since all the variables in the equation are positive, then x > x2 . The only way to
decrease x is to increase w2 (but x can never be less than x2). Therefore, w2 should be
increased when x increases, in order to have x decrease. If the control valve is fail
open (air-to-close), then the composition controller output signal p should decrease.
Thus a reverse-acting controller should be selected. Conversely, for a fail close (air-
to-open) control valve, a direct-acting controller should be used.
If x1 < x2, then
x1w1 x2 w2 xw x ( w1 w2 )
x1 x2
x1 x2
( x2 ) w1 x2 w2 x( w1 w2 )
x2 w1 w1 x2 w2 x( w1 w2 )
x2 ( w1 w2 ) w1 x ( w1 w2 )
w1
x x2
( w1 w2 )
Since all the variables are positive, then x < x2 . If x increases, the controller will
need to decrease it to bring it back to the set point. The only way to decrease x is to
decrease w2 (although x can never be smaller than x1). If the control valve is fail
open (air-to-close), then the composition controller output signal p should increase
in order to reduce w2. Thus the composition controller should be direct acting.
Conversely, for a fail close control valve, a reverse acting controller should be used.
8-13
Chapter 9 ©
9.1
20 mA - 4 mA
Pm(mA)= ( p in.Hg 10 in.Hg) 4 mA
30 in.Hg - 10 in.Hg
mA
= 0.8 p(in.Hg) 4 mA
in.Hg
Level transmitter:
5 VDC - 1 VDC
hm(VDC)= (h(m) - 0.5m) 1 VDC
10 m - 0.5 m
VDC
= 0.421 h(m) 0.789 VDC
m
Concentration transmitter:
10 VDC - 1 VDC
Cm(VDC)= (C (g/L)-3 g/L)+1 VDC
20 g/L - 3 g/L
VDC
= 0.529 C (g/L) 0.59VDC
g/L
9.2
Setting valve 1 as fail close prevents more heat from going to flash drum and
setting valve 3 as fail open to allow the steam chest to drain. Setting valve 3
as fail open prevents pressure build up in the vessel. Valve 4 should be fail-
open to evacuate the system and help keep pressure low. Valve 5 should be
fail-close to prevent any additional pressure build-up.
Setting valve 1 as fail close (air-to-open) prevents more heat from entering
flash drum and minimizes future vapor production. Setting valve 2 as fail
open (air-to-close) will allow the steam chest to be evacuated, setting valve 3
as fail close (air-to-open) prevents vapor from escaping the vessel. Setting
valve 4 as fail open (air-to-close) allows liquid to leave, preventing vapor
build up. Setting valve 4 as fail close (air-to-open) prevents pressure buildup.
Set valve 1 as fail close to prevent all the liquid from being vaporized (This
would cause the flash drum to overheat). Setting valve 2 as fail open will
allow the steam chest to be evacuated. Setting valve 3 as fail open prevents
pressure buildup in drum. Setting valve 4 as fail close prevents liquid from
escaping. Setting valve 5 as fail close prevents liquid build-up in drum
9-2
9.3
Note: This exercise is best understood after the material in Ch. 11 has been considered.
a) Changing the span of the temperature transmitter will change its steady-state
gain, according to Eq. 9-1. Because the performance of the closed-loop
system depends on the gains of each individual element (cf. Chapter 11),
closed-loop stability could be adversely affected.
b) Changing the zero of a transmitted does not affect its gain. Thus, this change
will not affect closed-loop stability.
c) Changing the control valve trim will change the (local) steady-state gain of
the control valve, dq/dp. Because the performance of the closed-loop system
depends on the gains of each individual element (cf. Chapter 11), closed-loop
stability could be adversely affected
d) For this process, changing the feed flow rate could affect both its steady-state
gain and its dynamic characteristics (e.g., time constant and time delay).
Because the performance of the closed-loop system depends on the gains of
each individual element (cf. Chapter 11), closed-loop stability could be
adversely affected.
9.4
9-3
qd 0.6 m3 / min 36 m3 / h
Psd 200 kPa
Psd 200 kPa
K 2
2 0.154 kPa/(m3 /h) 2
qd 36 (m3 /h)2
Now substitute (3) into (2) to get an expression for Pv in terms of q.
Pv P Kq 2 (4)
Substitute (4) into (1) to get:
q
Cv (5)
P Kq 2
Nf (l )
gs
The problem specifies that qd should be 2/3 of qmax (where qmax is the flow
rate through the valve when the valve is fully open).
2
qd qmax
3
3 3
qmax qd 36 m3 /h
2 2
qmax 54m /h 3
Now find the Cv that will give qmax = 54 m3/h. Substitute q = qmax and f (l)=1
(valve fully open) into (5).
qmax
Cv
P Kqmax 2
N
gs
Now that all of the variables on the right hand side of the equation are
known, plug in to solve for Cv.
kPa m3
P 450 kPa, K 0.154 3 , N 0.0865 ,
(m / h) 2 h(kPa)1/2
g s 1.2, qmax 54 m3 /h
m3
54
Cv h
kPa
3 450kPa 0.154 3 2
54 2 (m 3 /h) 2
m (m /h)
0.0865
h(kPa)1/2 1.2
m3 m3
54 54
h h
0.0865
m3
h(kPa)1/2
0.88(kPa)1/2
0.076
m3
h
Cv 710.5
9-4
9.5
For the rated Cv, the valve is completely open at 110% qd i.e., at 352 gpm or the
upper limit of 350 gpm
1
p 2
Cv q v
gs
1
(1 2.44 106 3502 )106.4 (40 1.953 104 3502 ) 2
Cv 350
0.9
q 66.4 4.55 10 4 q 2
1 / 2
ln
101.6 0.9
l 1
ln 50
The plot of the valve characteristic is shown in Figure S9.5. From the plot of the
valve characteristic for the rated Cv of 101.6, it is evident that the characteristic is
reasonably linear in the operating region 250 q 350.
The pumping cost could be further reduced by lowering PDE to a value that would
make Pv/Ps = 0.25 at q 320 gpm. Then PDE = 100 and for qd = 320 gpm, the
rated Cv = 133.5. However, as the plot shows, the valve characteristic for this design
is only slightly more nonlinear in the operating region. Hence, the selected valve
coefficient is Cv = 133.5.
9-5
400
350
300
250
q (gpm)
200
150
------- Cv = 101.6
100
- - - - Cv = 133.5
50
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
l (valve lift)
9.6
a) There are three control valves. The selection of air-to-close vs. air-to-open is
based on safety considerations:
9-6
ii. Level controller: As the liquid level h increases, we want the product
flow rate B to increase. Since the control valve is air-to-open, this
means that the controller output signal to the control valve (via the
I/P) should increase. Thus, the controller should be direct-acting.
iii. Pressure controller: As the pressure P increases, we want the solvent
flow rate D to increase. Since the control valve is air-to-close, this
means that the controller output signal to the control valve (via the
I/P) should decrease. Thus, the controller should be reverse-acting.
9.7
M
0.00965s
Kg c
M R
2 2
Kg c K
R gc
155.3
2 KM
9-7
9.8
Configuration II: This parallel configuration will be effective because the large
control valve can be adjusted to provide the nominal flow rate, while the small
control valve can be used to regulate the flow rate. If the small valve reaches its
maximum or minimum value, the large valve can be adjusted slightly so that the
small valve is about half open, thus allowing it to regulate flow again.
9.9
First write down the time-domain step response for a step change of 10°C. Then
solve the equation to find when y(t) is equal to 5 (since the variables are in deviation
variables, this represents when TM will reach 30°C).
ym (t ) KM (1 e t / )
where M 10o C, K 1, and 10s
ym (t ) 10(1 e t /10 )
5 10(1 e ta /10 )
ta 6.93s
9.10
0.1 psig
precision = 0.5% of full scale
20 psig
accuracy is unknown since the "true" pressure in the tank is unknown
0.1 psig
resolution = 0.5% of full scale
20 psig
±0.1 psig
repeatability = =±0.5% of full scale
20 psig
9-8
9.11
Assume that the gain of the sensor/transmitter is unity (i.e. there is no steady-state
measurement error). Then,
Tm ( s ) 1
T ( s) ( s 1)(0.1s 1)
where T is the temperature being measured and Tm is the measured value. For the
ramp temperature change:
0.3
T (t) = 0.3t (C/s) , T (s) = 2
s
1 0.3
Tm ( s) 2
( s 1)(0.1s 1) s
If the smaller time constant is neglected, the time domain response is slightly
different for small values of t, although the maximum error (t) does not change.
T °C
6
5
4
3
2
1
0 Time s
0 5 10 15 20
Figure S9.11. Response for process temperature sensor/transmitter. Orange solid
line is T’(t), and purple dashed line is T’m(t).
9-9
Chapter 10 ©
10.1
Assumptions:
1. Incompressible flow.
2. Chlorine concentration does not affect the air sample density.
3. T and P are approximately constant.
The detection time, td, depends on the transportation time delay, , and the response
time of the analyzer, tr = 10 s:
td = + tr (1)
Time delay can be calculated as the ratio of the volume of the tubing V divided
by the volumetric flow rate of chlorine q:
V
θ (2)
q
V = 1.10 x 10-3 m3
θ 110 s
q 10 cm3 /s 1 m
10.2
(a) Start with a mass balance on the tank. Then solve the equation to find how much
time it takes for the height to decrease from 1 m to 0.25 m.
dV (t )
C h(t )
dt
Adh(t )
C h(t )
dt
dh C
h0.5
dt A
C
h 0.5 dh dt
A
0.25 tf
C
h dh
0.5
dt
1 0
A
C
2( 0.25[m] 1[m]) (t f 0)
A
C
1m0.5 tf
A
A
tf 1[m0.5 ]
C
(0.5) 2 [m 2 ]
tf 2.5
[m0.5 ]
0.065[m / min]
t f 12.1[min]
(b) To find how much liquid has leaked out of the tank, calculate the difference in
volume between the starting level and the alarm level.
2
1
V Vh 1m Vh 0.25 m [m] 1[m] 0.25[m] 0.59m3
2
10.3
10-2
The key safety concerns include:
1. Early detection of leaks to the surroundings
2. Over-pressurizing the flash drum
3. Maintain enough liquid level so that the pump does not cavitate.
4. Avoid having liquid entrained in the gas.
This SIS system is shown in Fig. S10.3 with conventional control loops for
pressure and liquid level.
Vapor
PSH
PT PC
LSH
S P
Feed
LT LC
LSL
Liquid
10.4
10-3
The proposed alarm/SIS system is shown in Figure S10.4:
PSH
C
O
L
U
M
N
10.5
Define k as the number of sensors that are working properly. We wish to calculate
the probability that k 2 , P (k 2) .
3
P(k 2) 0.05 (0.95)2 0.135
1
2
3
P(k 3) 0.05 (0.95)3 0.857
0
3
10-4
n
where the notation, , refers to the number of combinations of n objects taken r
r
3
at a time, when the order of the r objects is not important. Thus 3 and
2
3
1. From Eq. 1,
3
P(k 2) 0.135 0.857 0.992
1
See any standard probability or statistics book, e.g., Montgomery D.C and G.C. Runger,
Applied Statistics and Probability for Engineers, 6h edition, Wiley, New York, 2013.
10.6
Component R P=1–R
Solenoid:
Level switch: 0.45 0.638 0.362
Level alarm 0.3 0.741 0.259
10-5
Assume that the switch and solenoid are independent. Then,
PI = PS + PSW - PS PSW
PI = 0.01 + 0.362 – (0.01)(0.362)
PI = 0.368
Substitute into (1):
P = PI PA = (0.368)(0.259) = 0.095
10.7
Let P2 = the probability that neither D/P flowmeter is working properly. Then P2
and the related reliability, R2, can be calculated as (cf. Appendix F):
P2 = (0.82)2 = 0.672
R2 =1 - P2 = 1 - 0.672 = 0.33
To calculate the overall system reliability, substitute R2 = 0.33 for the reliability
value for a single D/P flowmeter, 0.18, in the R calculation of Example 10.4:
5
R Ri (0.33)(0.95)(0.61)(0.55)(0.64)
i 1
R 0.067
Thus, the addition of the second D/P flowmeter has increased the overall system
reliability from 0.037 (for Example 10.4) to 0.067.
10-6
10.8
Let P3 = the probability that none of the 3 D/P flowmeters are working properly.
Then P3 and the related reliability, R3, can be calculated as (cf. Appendix F):
P3 = (0.82)3 = 0.551
R3 =1 – P3 = 1 – 0.551 = 0.449
To calculate the overall system reliability, substitute R3 = 0.449 for the reliability
value for two D/P flowmeters (R2=0.33) in the R calculation from Exercise 10.7:
5
R Ri (0.449)(0.95)(0.61)(0.55)(0.64)
i 1
R 0.092
Thus, the addition of the third D/P flowmeter has increased the overall system
reliability from 0.067 (for Exercise 10.7) to 0.092.
10.9
Assume that the switch and solenoid are independent. From the failure rate data,
the following table can be constructed, in analogy with Example 10.4:
Component R P=1–R
Pressure switch 0.34 0.712 0.288
Solenoid switch/valve:
Assume that the switch and solenoid are independent. Then, the overall reliability
of the interlock system is,
R = (0.712)(0.657) = 0.468
= - ln (0.468) = 0.760
1
MTBF 1.32 years
10-7
Chapter 11
11.1
D1
Gd1
D2
Gd2
X2 X1
~
Ysp Ysp E P U X3
Km +- + +
Gc Gv Gp + + Y
B
Gm
11.2
1
Gc ( s) K c 1
I s
The closed-loop transfer function for set-point changes is given by Eq. 11-36
1
with Kc replaced by K c 1 ,
I s
1 1
K c K IP K v K p K m 1
H ( s) I s (s 1)
H sp ( s ) 1 1
1 K c K IP K v K p K m 1
I s (s 1)
11-1
psi ft 3 / min min mA
KOL K c K IP K v K p K m (5.33) 0.75 0.2 1.0 2 4 3.2
mA psi ft ft
3𝑠 + 1 1
𝐻 ′ (𝑠) 3.2 ( 3𝑠 ) (3𝑠 + 1) 3.2 1.0
′
= = =
𝐻𝑠𝑝 (𝑠) 1 + 3.2 (3𝑠 + 1) ( 1 ) 3𝑠 + 3.2 0.94𝑠 + 1
3𝑠 3𝑠 + 1
(3 2) 1
( s)
For H sp
s s
h(t ) 1 e 1.07
t 0.94ln 1 h(t )
Therefore,
h(t ) 3.0 ft
11.3
Gc ( s ) K c 5 ma/ma
11-2
20 ma 4 ma
Km
0.32 ma/ F
50 F
5
K v 1.2 , K IP 0.75 psi/ma , =5 min , Tsp ( s)
s
7.20K 2
T ( s)
s(5s 1 1.440K 2 )
7.20K 2
T () lim sT ( s)
s 0 (1 1.440K 2 )
11.4
11-3
C’2(s)
Gd
lb sol
ft3
X1
^
C’3sp(s) C’3sp(s) E(s) P'(s) P’T(s) Q'2(s) X2 C’3(s)
Km +- +
Gc GIP Gv Gp +
lb sol ma USGPM
ma ma psi
ft3
C'3m(s) C'3(s)
Gm
ma lb sol
ft3
(b)
Gm ( s) K m e s assuming m = 0
m
(20 4)ma 2 s ma 2 s
Gm ( s ) e 2.67 e
lb sol lb sol/ft 3
(9 3) 3
ft
1
Gc ( s) K c 1
I
s
G IP ( s ) K IP 0.3 psi/ma
USgallons dh
7.481 A q1 q 2 q3
ft 3 dt
0 10 15 q3 (1)
Thus q3 25
11-4
d (c3 )
7.481 Ah q1c1 q2 c2 q3 c3 (2)
dt
Linearize each term on the right hand side of Eq. 2 as described in Section 4.3:
At steady state:
0 q1c1 q 2 c 2 q3 c3 (4)
dc'3
7.481 Ah q 2 c ' 2 q ' 2 c 2 q 3 c ' 3 q ' 3 c3
dt
dc'3
7.481 Ah q 2 c ' 2 q ' 2 c 2 q 3 c ' 3 q ' 2 c3
dt
dc'3
7.481 Ah q 2 c ' 2 q ' 2 (c 2 c 3 ) q 3 c ' 3 (5)
dt
K1 K2
C3 ( s) Q2 ( s) C 2 ( s) (6)
s 1 s 1
c c3 lb sol/ft 3 q 7.481Ah
where K1 2 0.08 , K 2 2 0.6 and 15 min
q3 USGPM q3 q3
0.08 0.6
Therefore, G p ( s) and Gd ( s)
15s 1 15s 1
(c)
The closed-loop responses for disturbance changes and for setpoint changes can
be obtained using block diagram algebra for the block diagram in part (a).
11-5
Therefore, these responses will change only if any of the transfer functions in the
blocks of the diagram change.
i. c 2 changes. Then block transfer function G p (s ) changes due to K1. Hence Gc(s)
does need to be changed, and retuning is required.
ii. Km changes. The close loop transfer functions changes, hence Gc(s) needs to be
adjusted to compensate for changes in Gm and Km. The PI controller should be
retuned.
iii. Km remains unchanged when zero is adjusted. The controller does not need to
be retuned.
Step response of c3 to q2: (Gain 0.077 compared with linearized gain (Kp) 0.08 in
Eq. 6)
Step response of c3 to c2: (Gain 0.6 compared with linearized gain (Kd) 0.6 in Eq.
6)
11-6
The results agree with linearization.
11.5
(a)
From Eq. 11-26 we get the closed loop transfer function for set point changes
𝑌 𝐾𝑚 𝐺𝑐 𝐺𝑣 𝐺𝑝
=
𝑌𝑠𝑝 1 + 𝐺𝑐 𝐺𝑣 𝐺𝑝 𝐺𝑚
4
𝑌 𝑠(𝑠 + 4) 4 4
= = = 2
𝑌𝑠𝑝 1 + 4 𝑠(𝑠 + 4) + 4 𝑠 + 4𝑠 + 4
𝑠(𝑠 + 4)
1
Or in standard form (Eq. 5-40), with 𝜏 = 2 and ζ= 1
𝑌 1
=
𝑌𝑠𝑝 1 𝑠 2 + 𝑠 + 1
4
(b)
11-7
4
𝑌(𝑠) =
𝑠(𝑠 2 + 4𝑠 + 4)
4 4
𝑙𝑖𝑚 𝑠𝑌(𝑠) = 2 = =1
𝑠 + 4𝑠 + 4 4
𝑠⟶0
Therefore y(∞) = 1
(c) As the step change is a unit step change, and we have shown that y(∞) = 1,
we can say that offset = 0. This is consistent with the fact that the gain of
the overall transfer function is 1, so no offset will occur. Normally
proportional control does not eliminate offset, but it does for this
integrating process.
(d) Using Eq. 5-50 or taking the inverse Laplace transform of the response
given above we get
y t 1 1 2t e2t
y t 0.264
(e) We can tell from the response derived above that the response will not be
oscillatory, since 1 .
11.6
Assume that the level transmitter and the control valve have negligible
dynamics. Then,
Gm ( s) K m
Gv ( s ) K v
11-8
The block diagram for this control system is the same as in Fig.11.8.
Hence Eqs. 11-26 and 11-29 can be used for closed-loop responses to
setpoint and load changes, respectively.
a) Substituting for Gc, Gm, Gv, and Gp into Eq. 11-26 gives
1
Km Kc Kv
Y
As
1
Ysp 1 s 1
1 Kc Kv K m
As
A
where (1)
Kc Kv Km
M /s
Y (t ) lim sY ( s) lim s M
s 0 s 0
s 1
Offset = Ysp (t ) Y (t ) M M 0
M /( K c K v K m ) M
Y (t ) lim sY ( s) lim s
s 0 s 0
s(s 1) Kc Kv Km
M
Offset = Ysp (t ) Y (t ) 0 0
Kc Kv Km
11-9
11.7
Y G d D G pU (1)
~
U Gc Ysp Y G pU (2)
GcYsp GcY
From (2), U ~
1 Gc G p
1 G (G
c p
~
~
G p ) Y Gd (1 Gc G p ) D G p Gc Ysp
Therefore,
Y G p Gc
~
Ysp 1 Gc (G p G p )
and
Y Gd (1 Gc G p )
D 1 Gc (G p G p )
11.8
1. The outlets of both the tanks have flow rate q0 at all times.
2. To ( s ) 0
T (t ) 2
1 e t / 1 or 1 e 12 / 1 , 1 = 10.9 min
T () 3
11-10
Therefore
T1 ( s) 3 F / (0.75 gpm) 4
Q0 ( s) 10.9s 1 10.9s 1
T3 ( s) (5 3) F /(0.75gpm) 2.67
for T2(s) = 0
Q0 ( s) 2s 1 2s 1
Since inlet and outlet flow rates for tank 2 are q0 and the volumes of
the tanks are equal,
T3 ( s) q0 / q0 1
T2 ( s) 2 s 1 10.0s 1
V3 ( s)
6. 0.15
T3 ( s)
30
7. T2 (t ) T1 t T1 (t 0.5)
60
T2 ( s)
e 0.5 s
T1 ( s)
11-11
a)
b)
11-12
11.9
Ysp E E' P Y
+- +- Gc + G
+
~ ~
Y1- Y2 ~ ~
G*(1-e-s)
P Gc
Gc ~ ~
E 1 Gc G * (1 e s )
Y Gd G
D 1 Gc G
Substitute for G c ,
Y Gd G
D Gc G
1 ~* ~
1 Gc G (1 e s )
Y
~ ~
Gd G 1 Gc G * (1 e s )
~* ~
D 1 Gc G (1 e s ) Gc G
11.10
a) Derive CLTF:
Y Y3 Y2 G3 Z G2 P
11-13
Y G3 ( D Y1 ) G2 K c E
Y G3 D G3 G1 K c E G2 K c E
Y G3 D (G3G1 K c G2 K c ) E E K mY
Y G3 D K c (G3G1 G2 ) K mY
Y G3
D 1 K c (G3G1 G2 ) K m
b) Characteristic Equation:
1 K c (G3G1 G2 ) K m 0
5 4
1 Kc 0
s 1 2s 1
5(2 s 1) 4( s 1)
1 Kc 0
( s 1)(2 s 1)
2s 2 s 1 K c (10s 5 4s 4) 0
2s 2 (14K c 1) s ( K c 1) 0
For a 2nd order characteristic equation, these conditions are also sufficient.
Therefore, K c 1 for closed-loop stability.
11.11
11-14
a)
CF'(s)
GL
Kg/m3
X1
~
C'sp(s) C'sp(s) E P' Pv' Q'A X2
+ C'(s)
Km +- GPI + KIP Gv Gp +
ma ma +
Kg/m3 ma psig m3/min
GD
b)
Transfer Line:
3.93 m 3
Time delay in the line = 0.52 min
7.5 m 3 /min
GTL ( s ) e 0.52 s
Composition Transmitter:
(20 4) ma ma
Gm ( s ) K m 0.08
(200 0) kg/m 3
kg/m 3
Controller
P ( s) K c 1
1
~
E ( s) K c D s C sp ( s) C m ( s)
I s
~
In the above equation, set C sp ( s ) 0 in order to get the derivative on the
process output only. Then,
1
G PI ( s) K c 1
I s
11-15
GD ( s) K c D s
I/P transducer
Control valve
Kv
Gv ( s )
v s 1
5 v 1 , v 0.2 min
pv 3
dq A
Kv 0.03(1 / 12)(ln 20)(20) 12
dpv pv pv
pv 3
pv 3
0.03(20) 12
0.5 0.17 0.33
m 3 /min
K v (1 / 12)(ln 20)(0.33) 0.082
psig
0.082
Gv ( s )
0.2s 1
Process
dc
V q A c A q F c F ( q A q F )c (1)
dt
11-16
dc
V c A q A q F c F (q A q F )c c q A
dt
11.12
The stability limits are obtained from the characteristic Eq. 11-83. Hence
if an instrumentation change affects this equation, then the stability limits
will change and vice-versa.
a) The transmitter gain, Km, changes as the span changes. Thus Gm(s)
changes and the characteristic equation is affected. Stability limits would
be expected to change.
b) The zero on the transmitter does not affect its gain Km. Hence Gm(s)
remains unchanged and stability limits do not change.
11-17
11.13
Kc
(a) 1 0 5s 2 6 s 1 K c 0
5s 1 s 1
Applying the quadratic formula yields the roots:
6 36 20 1 K c
s
10
To have a stable system, both roots of the characteristic equation must have
negative real parts. Thus, 20 1 Kc 0 Kc 1
1
K c 1
Is
(b) 1 0 I 5s 3 6 s 2 s K c s K c 0
5s 1 s 1
When I 0.1 , 0.5s 0.6s 0.11 Kc s Kc 0
3 2
0.5 3
0.11 K c j 0.6 2 K c 0
Re: −0.6𝜔2 + 𝐾𝑐 = 0 (1)
Im: −0.5𝜔3 + 0.1(1 + 𝐾𝑐 )𝜔 = 0(2)
0 : K cm 0.136
When I 1 , 5s 6s 1 Kc s Kc 0
3 2
Set s j :
5 1 K j 6
3
c
2
Kc 0
11-18
When I 10 , 50s 60s 10 1 Kc s Kc 0
3 2
Set s j :
50 3
10 1 K c j 60 2 K c 0
11.14
11-19
11.15
0.6
0.5
0.4
Response
0.3
0.2
0.1
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
Time
11-20
11.16
1
Gc ( s) K c 1
I s
Kv 1.3
Gv ( s )
(10 / 60) s 1 0.167s 1
1 1 gal
G p ( s) since A 3 ft 22.4
2
As 22.4s ft
Gm ( s) K m 4
Characteristic equation is
1 1.3 1
1 K c 1 (4) 0
I s 0.167s 1 22.4s
11.17
s 1 5 N (s)
GOL ( s ) K c I
I s (10s 1)
2
D( s )
D( s) N ( s) I s(100s 2 20s 1) 5K c ( I s 1) 0
100 I s 3 20 I s 2 (1 5K c ) I s 5K c 0
Set s j , we have:
11-21
100 I 3 1 5K c I j 20 I 2 5K c 0
25 K c
0 : Im
1 5K c
0 : K cm 0
To have a stable system, we have:
25 K c
K c 0, I
1 5K c
The stability region is shown in the figure below:
6
Stability region
I
4
0
0 1 2 3 4 5 6 7
K
c
c) Find I as K c
25K c 25
lim lim 5
K c 1 5 K K c 1/ K 5
c c
11-22
11.18
Gc ( s ) K c
KV
GV ( s)
V s 1
dws 0.6 lbm/s
Kv 0.106
dp p 12 2 12 4 ma
5 v 20 s v 4 s
2.5e s
G p (s)
10s 1
(20 4) ma ma
Gm ( s ) K m 0.4
(160 120) F
F
Characteristic equation is
0.106 2.5e
s
1 ( K c ) 0.4 0 (1)
4s 1 10s 1
e-j=cos – j sin
gives
Kc = 139.7 = Kcm
11-23
1 0.5s
e s
1 0.5s
20s 3 47s 2 (14.5 0.053K c ) s (1 0.106K c ) 0
Substituting s=j in above equation, we have:
11.19
4(1 5s )
a) G (s)
(25s 1)(4 s 1)(2 s 1)
Gc ( s ) K c
D( s) N ( s) (25s 1)(4s 1)(2s 1) 4 K c (1 5s ) 0
200s 3 158s 2 (31 20K c ) s 1 4 K c 0
Substituting s=j in above equation, we have:
158 2 1 4 K c 200 3 31 20 K c j 0
Thus, we have:
158 2 1 4 K c 0 0.191
200 31 20 K c 0 K cm 1.19
3
11-24
11.20
e 3 j cos(3) j sin(3)
gives
10 j 1 0.5K c cos(3) j sin(3) 0
Then,
1 0.5 K c cos(3) 0 (2)
and 10 0.5K c sin(3) 0 (3)
From (2) and (3)
tan(3) = -10 (4)
Eq. 4 has infinite number of solutions. The solution for the range
/2 < 3 < 3/2 is found by trial and error to be = 0.5805.
Then from Eq. 2, Kc = 11.78
The other solutions for the range 3 > 3/2 occur at values of for which
cos(3) is smaller than cos(3 5.805). Thus, for all other solutions of ,
Eq. 2 gives values of Kc that are larger than 11.78. Hence, stability is
ensured when
0 < Kc < 11.78
To solve Eqs. 2 and 3, another way is to use Newton’s method. With
initial guess Kc = 5, = 0 ( steady state), the solution to Eqs. 2 and 3 is:
Kc = -2, = 0
11-25
(c).
Kc =15.33, unstable
150
100
50
response
-50
-100
-150
-200
-250
0 50 100 150 200 250 300 350 400 450 500
time
100
50
0
response
-50
-100
-150
-200
-250
0 50 100 150 200 250 300 350 400 450 500
time
100
50
0
response
-50
-100
-150
-200
-250
0 50 100 150 200 250 300 350 400 450 500
time
11-26
11.21
Eq. 4 has infinite number of solutions. The solution for the range
/2 < 9.5 < 3/2 (to make sure 𝐾𝑐 is positive) is found by trial and error
to be = 0.1749.
Then from Eq. 2, Kc = 3.678
Hence, stability is ensured when
0< Kc < 3.678
11-27
Kc =-1, unstable
0
-2
-4
-6
response
-8
-10
-12
-14
0 100 200 300 400 500 600 700 800 900 1000
time
0.9
0.8
0.7
0.6
response
0.5
0.4
0.3
0.2
0.1
0
0 100 200 300 400 500 600 700 800 900 1000
time
Kc =15, unstable
250
200
150
100
50
response
-50
-100
-150
-200
-250
0 100 200 300 400 500 600 700 800 900 1000
time
11-28
11.22
5 as s 3 3s 2 3s 1 5K c aK c s
1 Gc G p Gv G m 1 K c
( s 1) 3 ( s 1) 3
s 3 3s 2 (3 aK c ) s 1 5K c s
( s 1) 3
11.23
(a)
Offset = hss – hfinal = 22.00 – 21.92 = 0.08 ft
(b)
20 4 mA
Km 1.6 mA / ft
10 ft
15 3
K IP 0.75 psi / mA
20 4
K V 0.4 cfm / psi K 5
and c
We have:
K OL K m K c K IP KV G p 1.6 5 0.75 0.4 K p 2.4 K p
(c)
Add integral action to eliminate offset.
11-29
11.24
(a) According to Eq. 11-26, the closed loop transfer function for set point
tracking is:
2 1
(2 )
Y K m G p Gc Gv (4s 1)( s 1) 2s
Ysp 1 Gm G p Gc Gv 2 1
1 (2 )
(4s 1)( s 1) 2s
2 1
(2 )
Y K m G p Gc Gv (4s 1)(s 1) 2s 1
2
Ysp 1 Gm G p Gc Gv 2 1 s s 1
1 (2 )
(4s 1)(s 1) 2s
The closed loop transfer function is:
Y 1
2
Ysp s s 1
(b)
The characteristic equation is the denominator of the closed loop transfer
function, which is underdamped (ζ = 0.5):
s2 s 1
(c)
1
For stability analysis, Gc K c (1 ) is substituted into 1 GmG p GcGv
4s
and we get:
2 1
1 G m G p Gc Gv 1 4(1 )
(4s 1)(s 1) 4s
2s( s 1) Kc 2s 2 2s Kc
2s( s 1) 2s( s 1)
To find the stability region, the roots of the numerator polynomial should
be on the right half plane. For this 2nd order polynomial, this means:
Kc 0
11-30
Kc can be arbitrarily large for this PI controlled second order system and
still maintain stability.
11.25
First we use Eq. 11-26 to get the closed loop transfer function
10
𝑌 (𝑠 + 1)(2𝑠 + 1) 10 10
= = = 2
𝑌𝑠𝑝 1 + 10 (𝑠 + 1)(2𝑠 + 1) + 10 2𝑠 + 3𝑠 + 11
(𝑠 + 1)(2𝑠 + 1)
Or in standard form
𝑡𝑝 = 𝜋𝜏 𝑡𝑝 = 1.41
⁄
√1 − ζ2
(b)
20
𝑌(𝑠) =
𝑠(2𝑠 2 + 3𝑠 + 11)
20
𝑦(∞) =
11
Subtracting the steady state value from the set point change gives offset as
2
offset=
11
11-31
(c)
2𝜋𝜏
𝑃= 𝑃 = 2.83
2
√1 − ζ
(d)
Hint: You do not need to obtain the analytical response y(t) to answer
the above questions. Use the standard second order model expressed in
terms of ζ and τ (see Chapter 5).
11.26
The closed loop transfer function for a set point change (Eq. 11-26), is
given by
𝑌 𝐾𝑚 𝐺𝑐 𝐺𝑣 𝐺𝑝
=
𝑌𝑠𝑝 1 + 𝐺𝑐 𝐺𝑣 𝐺𝑝 𝐺𝑚
11-32
Substituting the values from above and in part (a), we get,
𝑌 𝐾𝑐 𝐸
=
𝑌𝑠𝑝 1 + 𝐾𝑐 𝐸
𝐾𝑐 𝐸 1 𝐾𝑐 𝐸
𝑌(𝑠) = ⟹ 𝑦(𝑡) =
1 + 𝐾𝑐 𝐸 𝑠 1 + 𝐾𝑐 𝐸
Kc E
1 Kc E
For part (b), we substitute the values into Eq. 11-26 to get
𝑌 𝐸 1
= =𝜏
𝑌𝑠𝑝 𝜏𝐼 𝑠 + 𝐸 𝐼
𝐸𝑠+1
1 1 𝐸
𝑌(𝑠) = 𝜏 ⟹ 𝑦(𝑡) = 1 − exp (− 𝑡)
𝐼 𝑠 𝜏𝐼
𝐸𝑠+1
11-33
A sketch would look like this
Figure S11.26b Step response to unit step change with integral control
11.27
8
s 2
3
Y Gd 8
3
D 1 GcGvG pGm 1 K 1 8 1 s 6s 12s 8 8K c 2
s 2
c 3
11-34
1
8 1
Offset: lim y t lim s 3 s
s 6s 12s 8 8K c 1 K c
t s 0 2
(b)
8
s 2
3
Y Gd 8 I s
D 1 GcGvG p Gm 1 I s s 2 K c I s 1
3
8
1 K c 1 1 1
Is s 2
3
1
For a step change D , applying the final value theorem:
s
1
8 Is
Offset: lim y t lim s s
0
t s 0 3
I s s 2 K c I s 1
So there is no offset for PI controller.
11.28
The closed loop transfer function for set point changes is given by
𝑌 𝐾𝑚 𝐺𝑐 𝐺𝑣 𝐺𝑝
=
𝑌𝑠𝑝 1 + 𝐺𝑐 𝐺𝑣 𝐺𝑝 𝐺𝑚
𝑌 𝐾𝑐 (𝑠 + 3) 𝐾𝑐 (𝑠 + 3)
= =
𝑌𝑠𝑝 (𝑠 + 1)(0.5𝑠 + 1)(𝑠 + 3) + 3𝐾𝑐 0.5𝑠 3 + 3𝑠 2 + 5.5𝑠 + 3 + 3𝐾𝑐
11-35
So the answers to parts (a)-(c) are:
(a) stable
(b) unstable
(c) unstable
The following plot shows the Simulink responses and confirms the above
answers:
11.29
a) Proportional controller:
We derive the transfer function as follows:
Y K mGc GvG p
YSP 1 GmGc Gv G p
1
Kc (1)
s 1
3
Y Kc Kc
3
s 1 K c s 3s 3s 1 K c
3 2
YSP 1 K 1
s 1
c 3
s3 3s 2 3s 1 K c 0 (2)
Substituting s=j in above equation, we have:
11-36
3 2 1 K c 3 3 j 0
Thus, we have:
3 2 1 K c 0 3
3 0 K c ,max 8
3
Kc 8 (3)
Simulation results are in Figure S11.29a.
3
Kc=7.9
2.5 Kc=8
Kc=8.1
2
1.5
1
Y
0.5
-0.5
-1
0 50 100 150
Time (min)
Figure S11.29a: System response to a unit step setpoint change. Note that the
system is stable at Kc=7.9, marginally stable at Kc=8, and unstable at Kc=8.1.
b) PD controller:
We derive the transfer function as follows:
Gc K c 1 D s
Y K mGc Gv G p
YSP 1 GmGc Gv G p
1
K c 1 D s
s 1
3
Y
1
c D
YSP 1 K 1 s
s 1
3
Kc D s 1
, (4)
s 3s 3s 1 K c D K c s
3 2
where Kc=10.
11-37
The characteristic equation of (4) is the following:
s3 3s 2 10 D 3 s 11 0 (5)
Substituting s=j in above equation, we have:
3 2 11 10 D 3 3 j 0
Thus, we have:
3 11 0
2
1
D ,min 0.0667
10 D 3 0
3
15
\tau_d=0.1, stable
1.8
1.6
1.4
1.2
response
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
time
\tau_d=0, unstable
1500
1000
500
response
-500
-1000
-1500
0 10 20 30 40 50 60 70 80 90 100
time
11-38
Chapter 12 ©
12.1
For K = 1, 1=10, 2=5, and =0, the PID controller settings are obtained using
Eq.12-14 as
1 1 2 15 1 2
Kc , I = 1+2=15 , D 3.33
K c c 1 2
1 1.0
1 K c 1 D s 0
I s (10s 1)(5s 1)
c s (1 ) 0
In order for the closed loop system to be stable, the coefficients of this first-order
polynomial in s must be positive. Thus,
c > 0
and
(1+) > 0 > 1.
Results:
b) Choose c > 0
c) The choice of c does not affect the robustness of the system to changes in
. For c 0, the system is unstable regardless of the value of . For
c > 0 , the system is stable if >1, regardless of the value of c .
4(1 s )
G Gv G p Gm
s
a) Let G G . Factor the model as
G GG
with:
4
G 1 s, G
s
The controller design equation in (12-20) is:
1
G *c f
G
with a given first-order “filter”,
1
f
cs 1
Substitute,
1 s
G *c
4 cs 1
b) The equivalent controller in the classical feedback control configuration in
Fig. 12.6(a) is:
G *c
Gc
1 G *c G
Substitute to give,
1
Gc
4( c 1)
Thus Gc is a proportional-only controller.
12.3
1
Kc 1.25
K ( c ) 2(0.2 0.2)
I 1
b) Using entry G in Table 12.1 for c = 1
12-2
1
Kc 0.42
K ( c ) 2(1 0.2)
I 1
12-3
12.4
4e3s
G( s) (assume the time delay has units of minutes) (1)
s
(a) Proportional only control, Gc(s) =Kc. The characteristic equation is:
1 K c G( s ) 0
s 4 K c e3s 0
Substitute the stability limit conditions from Section 11.4.3: s = j, = u, and
Kc.= Kcu:
π
cos ( 3u ) = 0 3u (5)
2
π
u 0.5236 rad/min (6)
6
From (4) – (6),
0.5236
0.5236 4 K cu sin ( ) 0 K cu 0.130
2 4
12-4
(b) Controller settings using AMIGO method
0.35 0.35
Kc 0.029
K 12
I 13.4 13.4(3) 40.2
12.5
18
17
16
Output
15
14
13
12
0 2 4 6 8 10 12
Time
Figure S12.5. Step response data and tangent line at the inflection point.
12-5
θ
1
Kc 2 1.76
K θ
c
2
θ θ
I 6.35 min, D 0.736 min
2 2 θ
1 1 5.5
Kc 0.2 0.45 0.2 0.45 1
K 1.65 1.7
0.4 0.8 0.4(1.7) 0.8(5.5)
I (1.7) 3.8 min
0.1 1.7 0.1(5.5)
0.5 0.5(1.7)(5.5)
D 0.78 min
0.3 0.3(1.7) 5.5
c) From Table 12.4, the ITAE PID settings for a step disturbance are
d) The most aggressive controller is the one from part c, which has the
highest value of Kc and smallest value of τI
12.6
The model for this process has K=5, τ=4, and θ=3. The PI controller parameters
for an FOPDT model using IMC tuning are given by entry G in Table 12.1:
4
Kc 0.13
K ( c ) 5(3 3)
I 4
The parameters for a PID controller are given by entry H in Table 12.1:
12-6
3
4
Kc 2 2 0.24
3
K ( c ) 5(3 )
2 2
3
I 4 5.5
2 2
4(3)
D 1.1
2 2(4) 3
The simulated process for a step change in the set point is plotted below for both
the PI and PID controllers. Note that the PID controller was implemented in the
proper form to eliminate derivative kick (see chapter 8).
Figure S12.6: Responses to a step change in the set point at t = 1for PI and PID
controllers.
The PID controller allows the controlled variable to reach the new set point more
quickly than the PI controller, due to its larger Kc value. This large Kc allows an
initially larger response from the controller during times from 1 to 4 minutes. The
reason that the Kc can be larger is that, after the controlled variable begins to change
and move toward the set point, the derivative term can “put on the brakes” and slow
down the aggressive action so the controlled variable lands nicely at the set point.
12-7
12.7
e 0.028s
G(s)
( s 1)(0.22s 1)
a.ii) To use the AMIGO tuning relations in Table 12.6, the model reduction
method of Skogestad can be used to reduce the model to a FOPDT model.
The time constant in the resulting FOPDT model is the largest time constant
in the full-order model plus one half of the next biggest time constant, 1 +
0.5(0.2) = 1.1. The time delay in the resulting FOPDT model is half of the
second-biggest time constant in the full-order model, 0.5(0.2) = 0.1. The
other smaller time constants are neglected.
e0.1s
G( s)
1.1s 1
1 1.1
Kc 0.2 0.45 0.2 0.45 5.15
K 0.1
0.4 0.8 0.4(0.1) 0.8(1.1)
I (0.1) 0.44
0.1 0.1 0.1(1.1)
0.5 0.5(0.1)(1.1)
D 0.049
0.3 0.3(0.1) 1.1
b) The simulation results shown in Figure S12.7 indicate that the IMC
controller is superior for a step disturbance due to its smaller maximum
deviation and lack of oscillations. This result makes sense, given that we
made an aggressive choice for τC for the IMC controller.
12-8
Figure S12.7. Closed-loop responses to a unit step disturbance at t=1.
12.8
CONTROLLER
WEIGHTING FACTOR
ß +- ACTION C
OUTPUT
+
INTEGRAL
+ ACTION
-
CONTROLLER
INPUT
12-9
Closed-loop responses are compared for four values of β: 1, 0.7, 0.5 & 0.3.
12.9
a) From Table 12.2, the controller settings for the series form are:
K c K c 1 D 0.971
I
I D
D 2.753
I D
b) By changing the derivative term in the controller block, the Simulink results
show that the system becomes more oscillatory as D increases. For the
12-10
parallel form, the closed-loop system becomes unstable for D 5.4; for the
series form, it becomes unstable for D 4.5.
3
Parallel form
Series form
2.5
y(t) 1.5
0.5
0
0 50 100 150 200 250 300
Time
Figure S12.9. Closed-loop responses for parallel and series controller forms.
12.10
a) Block diagram
X1'
Gd
X'm
Gm
(mA)
12-11
b) Process and disturbance transfer functions:
dx
w1 x1 w2 x2 w1 x w2 x w2 x V
dt
Finally:
x2 x
X ( s) x2 x w w2
G p (s) 1
W2( s) w1 w2 Vs 1 s
w1
X ( s) w1 w w2
Gd ( s) 1
X 1 ( s ) w1 w2 Vs 1 s
V
where
w1 w2
2.6 10 4
G p ( s)
1 4.71s
0.65
Gd ( s)
1 4.71s
20 4 s
Gm ( s ) e 32e s
0.5
12-12
15 3 300 / 1.2 187.5
Gv ( s )
20 4 0.0833s 1 0.0833s 1
Controller:
187.5 2.6 10 4
Let G Gv G p G m 32e s
0.0833s 1 1 4.71s
1.56e s
then G
(4.71s 1)(0.0833s 1)
c) Simulink results:
0.04
0.035
0.03
0.025
y(t) 0.02
0.015
0.01
0.005
0
0 5 10 15 20 25 30 35
Time
12-13
d) Figure S12.10d indicates that c 1.57 min gives very good results.
-0.02
-0.04
y(t) -0.06
-0.08
-0.1
-0.12
0 2 4 6 8 10 12 14 16 18 20
Time
-0.02
-0.04
y(t)
-0.06
-0.08
-0.1
-0.12
0 2 4 6 8 10 12 14 16 18 20
Time
12-14
f) For =3 min, the closed-loop response becomes unstable. It is well known that
the presence of a large time delay in a feedback control loop limits its
performance. In fact, a time delay adds phase lag to the feedback loop, which
adversely affects closed-loop stability (cf. Ch 13). Consequently, the controller
gain must be reduced below the value that could be used if a smaller time delay
were present.
0.6
0.4
0.2
y(t)
-0.2
-0.4
-0.6
-0.8
0 5 10 15 20 25 30 35
Time
12.11
1 + GcGI/PGvGpGm = 0
The PID controller may have to be retuned if any of the transfer functions, GI/P,
Gv, Gp or Gm, change.
12-15
12.12
2e s
The process model is given as: G( s)
3s 1
I 3min
The IMC settings are more conservative because they have a smaller Kc
value and a larger I value.
c) The Simulink simulation results are shown in Fig. S12.12. Both controllers
are rather aggressive and produce oscillatory responses. The IMC controller
is less aggressive (that is, more conservative).
1.8
1.6 Cohen-Coon
IMC
1.4
1.2
y
1
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70
Time
12-16
12.13
From the solution to Exercise 12.5, the process reaction curve method yields,
a) IMC method:
1 1 5.5
Kc 0.94
K c 1.65 (5.5 / 3) 1.7
I = = 5.5 min
b) Ziegler-Nichols settings:
1.65e1.7 s
G(s)
5.5s 1
1 + GcG = 0
1 0.85s
e s
1 0.85s
1.65K c (1 0.85s )
0 = 1 + GcG 1
4.675s 2 6.35s 1
Rearrange,
(6.35 1.403Kcu)u = 0 ,
1+ 1.65Kcu 4.675 u2 = 0
12-17
Ignoring u= 0, the approximate values are:
2
Pu 4.67 min
u
The Z-N PI settings from Table 12.7 are:
Note that the values of Kcu and u are approximate due to the Padé
approximation. By using Simulink, more accurate values can be obtained
by trial and error. For this case, no Padé approximation is needed and:
Compared to the Z-N settings, the IMC method setting gives a smaller Kc
and a larger I, and therefore provides more conservative controller settings.
12.14
Eliminate the effect of the feedback loop by opening the loop. That is, operate
temporarily in an open loop mode by switching the controller to the manual mode.
This change provides a constant controller output and a constant manipulated input.
If oscillations persist, they must be due to external disturbances. If the oscillations
vanish, they were caused by the feedback loop.
12.15
The sight glass has confirmed that the liquid level is rising. Because the controller
output is saturated, the controller is working fine. Hence, either the feed flow is
higher than recorded, or the liquid flow is lower than recorded, or both. Because
the flow transmitters consist of orifice plates and differential pressure transmitters,
a plugged orifice plate could lead to a higher recorded flow. Hence, the liquid-flow-
transmitter orifice plate would be the prime suspect.
12-18
12.16
a) IMC design:
1 τθ/ 2 1 6.5 2 / 2
Kc
K τ c θ / 2 220 3.25 2 / 2
K c 0.00802
θ 2
τI τ 6.5 7.5 min
2 2
τθ (6.5)(2)
τD 0.867 min
2τ+θ 2(6.5) 2
a = 54, d = 0.5
From (12-46),
4d 4(0.5)
K cu 0.0118
a (54)
Pu 14 min
K c 0.6 K cu 0.0071
Pu Pu
I 7 min, D 1.75 min
2 8
12-19
c) Simulation results
The closed-loop responses for the IMC and RAT controller settings and a step
change in feed composition from 0.5 to 0.55 are shown in Figs. S12.16a and
S12.16b, respectively.
0.9
610
0.8
600
0.7
590
0.6
580 0.5
0 20 40 60 80 0 20 40 60 80
t (min) t (min)
1.6 19
Fuel Gas Flowrate (m3/min)
18.5
1.5
18
1.4
17.5
1.3
17
16.5
0 20 40 60 80 0 20 40 60 80
t (min) t (min)
12-20
Fig. S12.16b. Performance of the RAT controller for a step change in
hydrocarbon flow rate from 0.035 to 0.040 m3/min.
The RAT controller is superior due to its smaller maximum deviation and shorter
settling time.
d) Due to the high noise level for the xD response, it is difficult to obtain
improved controller settings. The RAT settings are considered to be
satisfactory.
12-21
12.17
a) IMC design:
K c 14.7
θ 138
τI τ 762 831min
2 2
τθ (762)(138)
τD 63.3min
2τ+θ 2(762) 138
The distillation column model includes an RAT option for the xB control loop,
but not the xD control loop. Thus, the Simulink diagram must be modified by
copying the RAT loop for xB and adding it to the xD portion of the diagram.
Also, the parameters for the relay block must be changed. The new Simulink
diagram and appropriate relay settings are shown in Fig. S12.17a. The results
from the RAT are shown in Fig.S12.17b.
From (12-46),
4d 4(0.2)
K cu 45.9
a (5.55 x103 )
Pu 950 s
12-22
From Table 12.7, the Ziegler-Nichols controller settings are:
K c 0.6 K cu 27.5
Pu P
I 425 s, D u 119 s
2 8
12-23
Fig. S12.17b. Results from RAT.
c) Simulation results
The closed-loop responses for the IMC and RAT controller settings and a step
change in feed composition from 0.5 to 0.55 are shown in Figs. S12.17c and
S12.17d, respectively.
d) Due to the high noise level for the xD response, it is difficult to obtain
improved controller settings. The RAT settings are considered to be
satisfactory.
12-24
Fig. S12.17c. Performance of the IMC-PID controller for a step change in feed
composition from 0.5 to 0.55.
12-25
Fig. S12.17d. Performance of the RAT controller for a step change in feed
composition from 0.5 to 0.55.
12-26
Chapter 13 ©
13.1
13.2
Exit flow rate w4 has no effect on x3 or x4 because it does not change the
relative amounts of materials that are blended. The bypass fraction f has a
dynamic effect on x4 but has no steady-state effect because it also does not
change the relative amounts of materials that are blended. Thus, w2 is the
best choice.
13.3
13.4
13.5
(a) The larger the tank, the more effective it will be in “damping out”
disturbances in the reactor exit stream. A large tank capacity also provides
a large feed inventory for the distillation column, which is desirable for
periods where the reactor is shut down. Thus a large tank is preferred from
a process control perspective. However a large tank has a high capital cost,
so a small tank is appealing from a steady-state, design perspective. Thus,
the choice of the storage tank size involves a tradeoff of control and design
objectives.
13.6
Equations :
13-2
Three flow-head relations: q3 CV 1 h1
q5 CV 2 h2
q4 f (h1 , h2 )
dh1
A1 (q1 q6 q3 q 4 )
dt
dh
A2 2 (q2 q4 q5 )
dt
Conclude: NE = 5
Degrees of freedom: = NF = NV – NE = 8 5 = 3
Disturbance variable: q 6 ND = 1
NF = NFC + ND
NFC = 3 1 = 2
13.7
Heat exchanger:
Overall:
Mixing point:
Thus,
13-3
NE =3 , NV = 8 ( f , wc , wh , Tc1 , Tc 2 , Tc 0 , Th1 , Th 2 )
NF =NV NE = 8 3 = 5
13.8
dh
A (1 f ) w1 w2 w3 (1)
dt
d (hx3 )
A (1 f ) x1 w1 x 2 w2 x3 w3 (2)
dt
w4 = w3 + fw1 (3)
x4w4 = x3w3 + fx1w1 (4)
Thus,
NE = 4 (Eqs. 1- 4)
NV = 9 (h, f , w2 , w3 , w4 , x1 , x2 , x3 , x4 )
NF = NV NE = 5
13-4
Since three flow rates ( fw1 , w2 and w3 ) can be independently adjusted, it
would appear that there are three control degrees of freedom. But the bypass
flow rate, fw1 , has no steady-state effect on x4. To confirm this assertion,
consider the overall steady-state component balance for the tank and the
mixing point:
x1 w1 x2 w2 x4 w4 (5)
This balance does not depend on the fraction bypassed, f, either directly or
indirectly,
13.9
Assumptions:
1. Steady-state conditions with w, Th, and Tc at their nominal
values.
2. Constant heat capacities
3. No heat losses
4. Perfect mixing
Steady-state balances:
wc wh w (1)
wc wh w (3)
Equations (3) and (4) are two independent equations with two
unknown variables, wh and wc. For any arbitrary value of Tsp, these
equations have a unique solution. Thus the proposed multiloop
control strategy is feasible.
This simple analysis does not prove that the liquid level h can also
be controlled to an arbitrary set point hsp. However, this result can
13-5
be demonstrated by a more complicated theoretical analysis or by
simulation studies.
(b) Consider the steady-state model in (1) and (2). Substituting (1) into
(2) and solving for T gives:
wcTc whTh
T (5)
wc wh
13.10
NV = 7:
Mass balance
Component balance
Energy balance
Vapor-liquid equilibrium relation
Valve relations (2)
Ideal gas law
Thus, NF = 11 – 7 = 4
13-6
NFC = NF - ND = 4 – 2 = 2
13-7
Chapter 14
14.1
3 G1 ( j)
AR G ( j)
G2 ( j) G3 ( j)
3 () 2 1 3 2 1
(2) 2 1 4 2 1
From the statement, we know the period P of the input sinusoid is 0.5 min
and, thus,
2 2
4 rad/min
P 0.5
3 16 2 1
Aˆ AR A 2 0.12 2 0.24
4 64 1
2
14.2
First approximate the exponential term as the first two terms in a truncated
Taylor series
e s 1 s
Then G( j) 1 j
and ARtwo term 1 () 2 1 2 2
14-1
For a first-order Pade approximation
s
1
e s 2
s
1
2
from which we obtain
AR Pade 1
Pade 2 tan 1
2
Both approximations represent the original function well in the low
frequency region. At higher frequencies, the Padéapproximation matches
the amplitude ratio of the time delay element exactly (ARPade = 1), while
the two-term approximation introduces amplification (ARtwo term >1). For
the phase angle, the high-frequency representations are:
14.3
128 F 120 F
Nominal temperature T 124 F
2
1
Aˆ (128 F 120 F) 4 F
2
5sec., 2(1.8 / 60 sec) 0.189 rad/s
A Aˆ
2 2 1 4 (0.189)2 (5)2 1 5.50 F
14-2
14.4
Tm ( s ) 1
T ( s ) 0.1s 1
T ( s) (0.1s 1)Tm ( s)
amplitude of T =3.464 (0.1 ) 2 1 3.465
phase angle of T = + tan-1(0.1) = + 0.02
Since only the maximum error is required, set = 0 for the comparison of T and
Tm . Then
14.5
(b) No, cannot make 2nd order overdamped system unstable for closed-loop.
14.6
Engineer A is correct.
Second order overdamped process cannot become unstable with a proportional
controller.
FOPTD model can become unstable with a large Kc due to the time delay.
14-3
14.7
Using MATLAB
5
Bode Diagram
10
Magnitude (abs)
0
10
-5
10
-10
10
-45
-90
Phase (deg)
-135
-180
-225
-270
-1 0 1 2
10 10 10 10
Frequency (rad/sec)
The value of that yields a -180 phase angle and the value of AR at that
frequency are:
= 0.807 rad/sec
AR = 0.202
14.8
Using MATLAB,
14-4
Bode Diagram
G(s)
G(s) w ith Pade approx.
Magnitude (abs) 0
10
-1
10
-50
Phase (deg)
-100
-150
-200
-250
-2 -1 0 1
10 10 10 10
Frequency (rad/sec)
Figure S14.8. Bode diagram for G(s) and G(s) with Pade approximation.
As we can see from the figures, the accuracy of Pade approximation does not
change as frequency increases in magnitude plot, but it will be compromised in
the phase plot as frequency goes higher.
14.9
1 = -tan-1(1) = tan-1(0.15)
Phase difference = 1 – 2
2 = 1
14-5
using Eq. 14-13b . The results are tabulated below
f 1 2 2
0.05 0.31 -2.7 4.5 -7.2 0.4023
0.1 0.63 -5.4 8.7 -14.1 0.4000
0.2 1.26 -10.7 16 -26.7 0.4004
0.4 2.51 -26.6 24.5 -45.1 0.3995
0.8 6.03 -37 26.5 -63.5 0.3992
1 6.28 -43.3 25 -68.3 0.4001
2 12.57 -62 16.7 -78.7 0.3984
4 25.13 -75.1 9.2 -84.3 0.3988
That the unknown unit is first order is indicated by the fact that 0 as ,
so that 21-90 and 2-90 for implies a first-order system. This is
confirmed by the similar values of 2 calculated for different values of ,
implying that a graph of tan(-2) versus is linear as expected for a first-order
system. Then using linear regression or taking the average of above values, 2 =
0.40 min.
14.10
H 1 ( s) / h1max 0.01 K
Q1i ( s) 1.32s 1 s 1
H 2 ( s) / h2 max 0.01 K
Q1i ( s) (1.32s 1) 2
(s 1) 2
H ( s) / hmax
0.01 K
Q1i ( s) 2.64s 1 2s 1
Q ( s) 0.1337 0.1337
Q1i ( s) 2.64s 1 2s 1
For a sinusoidal input q1i (t ) A sin t , the amplitudes of the heights and flow
rates are
14-6
Aˆ h / hmax
KA / 4 2 2 1 (1)
Aˆ q 0.1337 A / 4 2 2 1 (2)
Aˆ q 2 0.1337A / ( 2 2 1) 2 (5)
Hence, for all , the first tank of the two-tank system will overflow for a smaller
value of A than will the one-tank system. Thus, from the overflow consideration,
the one-tank system is better for all . However, if A is small enough so that
overflow is not a concern, the two-tank system will provide a smaller amplitude in
the output flow for those values of that satisfy
Aˆ q 2 Aˆ q
0.1337A 0.1337A
or
( 2 2 1) 2 4 2 2 1
or 2 / = 1.07
1.32 2 2 1
Aˆ h1 / h1max 1 , that is, A
0.01
14-7
14.11
2 2 a 1
2
AR=
100 2 1 4 2 1
1
Bode Diagram
10
Case i
Case ii(a)
Magnitude (abs)
0 Case ii(b)
10
Case iii
-1
10
-2
10
90
0
Phase (deg)
-90
-180
-270
-2 -1 0 1
10 10 10 10
Frequency (rad/sec)
Figure S14.11. Bode plot for each of the four cases of numerator dynamics.
14-8
14.12
( 4 D s 1 4 D s 2 ) (2 D s 1) 2
2
Gc ( s ) K c Kc
4 D s 4 D s
2
4 2 2 1
K 4 D 1
2 2
Gc ( j) K c
D
4 D 4 D
c
(4 D s 1) D s 1
Gc ( s) K c
4 D s0.1 D s 1
16 2 2 1 2 2 1
Gc ( j) K c D
D
4 D 0.01 D 1
2 2
The differences are significant for 0.25 < D < 1 by a maximum of 0.5 Kc
at D = 0.5, and for D >10 by an amount increasing with D .
2
10
1
10
c
AR/K
0
10
14-9
14.13
2 0.6 4
1 GOL 1 Gm G p Gc Gv 1 Kc
s 1 50s 1 2s 1
Characteristic equation:
(s 1)(50s 1)(2s 1) K c (4)(2)(0.6) 0 (1)
For a third order process, a Kc can always be chosen to make the process unstable.
A stability analysis would verify this but was not required.
14.14
(a) Always true. Increasing the gain does speed up the response for a set point
change. Care must be taken to not increase the gain too much or oscillations will
result.
(b) False. If the open loop system is first order, increasing Kc cannot result in
oscillation.
(c) Generally true. Increasing the controller gain can cause real part of the roots of
the characteristic polynomial to turn positive. However, for first or second order
processes, increasing Kc will not cause instability.
(d) Always true. Increasing the controller gain will decrease offset. However, if
the gain is increased too much, oscillations may occur. Even with the oscillations
the offset will continue to decrease until the system becomes unstable.
14-10
14.15
(a)
1
GOL GGc Kc
(4 s 1)(2 s 1)
Cannot become unstable – max phase angle 2nd order overdamped process
(GOL) is -180 degree.
(b)
14-11
1 1 / 5s (5s 1) K c
GOL GGc Kc
(4s 1)(2s 1) 5s(4s 1)(2s 1)
Cannot become unstable – max phase angle (GOL) is -180 degree while at
low frequency the integrator has -90 degree phase angle.
(c)
s 1 2s 1 ( s 1) K c
GOL GGc Kc
(4s 1)(2s 1) s s(4s 1)
Cannot become unstable – lead lag unit has phase lag larger than -90,
integrator contributes -90 degree; the total phase angel is larger than -180.
14-12
(d)
1 s (1 s) K c
GOL GGc Kc
(4s 1)(2s 1) (4s 1)(2s 1)
(e)
14-13
e s
GOL GGc Kc
(4s 1)
14.16
By using MATLAB,
2
Bode Diagram
10
1
10
Magnitude (abs)
0
10
-1
10
-2
10
0
Parallel
-45
Series w ith filter
-90
Phase (deg)
-135
-180
-225
-270
-2 -1 0
10 10 10
Frequency (rad/sec)
Figure S14.16 Bode plot for Exercise 13.8 Transfer Function multiplied by
PID Controller Transfer Function. Two cases: a)Parallel b) Series with Deriv.
Filter (=0.2).
.
Amplitude ratios:
14-14
14.17
12e 0.3s
Gˆ 1 ( s)
(8s 1)(2.2s 1)
10
X: 10.09
8 Y: 7.2
Value
4
X: 4.034
Y: 2.4 Inflection
point
2
0
0 10 20 30 40 50 60 70 80 90 100
Time
14-15
Bode Diagram
50
G(s)
-100
G1(s)
-150 G2(s)
G3(s)
4
-200 x 10
0
-1.152
Phase (deg)
-2.304
-3.456
-4.608
-3 -2 -1 0 1 2 3
10 10 10 10 10 10 10
Frequency (rad/s)
Figure S14.17b Bode plots for the exact and approximate models.
14.18
10(2s 1)e 2 s
G( s)
(20s 1)(4s 1)(s 1)
10 2s 1 e5 s
G s
'
22s 1
14-16
1
Bode Diagram
10
0
10
Magnitude (abs)
-1
10
G(s)
G'(s)
-2
10
0
-360
-720
Phase (deg)
-1080
-1440
-1800
-2160
-2520
-2880
-2 -1 0 1
10 10 10 10
Frequency (rad/sec)
Figure S14.18 Bode plots for the exact and approximate models.
14.19
(a)
2e 1.5 s 0.5e 0.3s 3e 0.2 s 3e 2 s
G G p Gv G m
(60s 1)(5s 1) 3s 1 2s 1 (60s 1)(5s 1)(3s 1)(2s 1)
14-17
Figure S14.19a Bode plot of to find ωc.
Simulation results with different Kc are shown in Fig. S14.19b. Kc > Kcu, the
system becomes unstable as expected.
Figure S14.19b Step response of closed loop system with different Kc.
(b)
Use Skogestad’s half rule
60 0.5 5 62.5
2.5 3 2 2 9.5
14-18
3e 9.5 s
G
62.5s 1
0.916
Using Table 12.3, K c 0.586(9.5 / 62.5) / 3 1.10 ;
62.5
I 62.19
0.165(9.5 / 62.5) 1.03
Then,
1
Gc 1.10(1 )
62.19s , GOL GGc
14.20
14-19
The gain of Gp = 1.0 for all .
2 2 rad rad
Pm 10 min s , so c 0.628
c 10 min min
K c KV K p K m 1 at c
K cu (0.5)(1)(1) 1 , or K cu 2.0
2 rad 10
Because c then 5 min .
10 min 2
14.21
1 5 1
AR OL K c 1
(1.0)
25 2
100 1 1
2 2
14-20
2
Bode Diagram
10
1
10
AR/Kc
0
10
-1
10
-2
10
-100
-150
Phase (deg)
-200
-250
-300
-350
-2 -1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
Then AR OL c
= 1 = Kcu(1.025)
1 1
GM = 1.7 = =
Ac AR OL
c
14-21
From part b), AR OL c
= 1.025 Kc
2
Bode Diagram
10
1
10
AR/Kc
0
10
-1
10
-2
10
-150
-180
Phase (deg)
-200
-250
-300
-350
-2 -1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
2
Bode Diagram
10
1
10
AR/Kc
0
10
-1
10
-2
10
-150
-180
Phase (deg)
-200
-250
-300
-350
-2 -1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
14.22
From modifying the solution to the two tanks in Section 6.4, which have a
slightly different configurations,
14-22
R1
Gp(s) =
( A1 R1 A2 R2 ) s ( A1 R1 A2 R1 A2 R2 ) s 1
2
0.5
Gp(s) = (1)
8s 7 s 1
2
0.5
For R2 = 0.5, Gp(s) = (2)
2s 5.8s 1
2
a) For R2=2
7 c
|Gp| =
0.5
Gp= tan-1 2
,
1 8 c (1 8 c ) (7 c )
2 2 2
7 c
-180 = 0 + 0 + tan-1 2
tan-1(0.5c)
1 8 c
1 ( K cu )(2.5)
0.5 1.5
(1 8 c ) (7 c ) (0.5c ) 1
2 2 2 2
For R2=0.5
5.8 c
|Gp| =
0.5
Gp = tan-1 2
,
1 2 c (1 2c ) (5.8c )
2 2 2
1.5 1.5
For Gm = , m= -tan-1(0.5) , |Gm| =
0.5s 1 (0.5c ) 2 1
14-23
5.8 c
-180 = 0 + 0 + tan-1 2
tan-1(0.5c)
1 2 c
c= -tan-1(-1/3.825)
2
1
|Gc| = 4.932 1
3.825
1 -1 7 c
-180 = tan-1 + 0 + tan 2
tan-1(0.5c)
3.825 c 1 8 c
Ac = AROL|=c =
2
1
1 (2.5)
0.5 1.5
= 4.932
(0.5 ) 2 1
3.825c
(1 8c ) (7c )
2 2 2
c
= 0.7362
14-24
Therefore, gain margin GM =1/Ac = 1.358
AROL|=c = 1 at g = 0.925
14.23
1
Kc 1 , I = = 1 min,
K c
1
-180 = tan-1 0.2c tan-1(c) = -90 0.2c
c
/ 2
or c = = 7.85 rad/min
0.2
2
1
1 2
Ac AR OL 0.255
c
c
2
2
c 1 c
14-25
1
2
1 2
AR OL 1 Kc
g 0.5 g 2 1
g
1
180 = tan-1 0.2c tan-1(c)
0.5c
1.2
0.8
Output
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time
Figure S14.23 Close-loop response for a unit step change in set point.
14-26
14.24
2
Bode Diagram
10
0
10
AR/Kc
-2
10
-4
10
-90
-135
Phase (deg)
-180
-225
-270
-2 -1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
Figure S14.24a Bode plot
b) Using Eq.14-61
14-27
AR OL AR OL
From the plot of vs , = 0.144
Kc Kc g
1
Since AR OL g
=1 , Kc = = 6.94
0.144
AR OL AR OL
From the plot of vs , = 0.0326
Kc Kc c
Ac = AR OL c
= 0.326
From Eq. 14-60, GM = 1/Ac = 3.07
2
Bode Diagram
10
0
10
AR/Kc
-2
10
-4
10
-90
-135
Phase (deg)
-180
-225
-270
-2 -1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
14-28
2
Bode Diagram
10
0
10
AR/Kc
-2
10
-4
10
-90
-135
Phase (deg)
-180
-225
-270
-2 -1 0 1 2
10 10 10 10 10
Frequency (rad/sec)
14.25
a) Schematic diagram:
TC
Hot fluid
TT
Cold fluid
14-29
Block diagram:
Mixing Transfer
Controller Valve Process line
TR T
+ Gc Gv Gp GTL
-
Gm
b) GvGpGm = Km = 6 ma/ma
GTL = e-8s
If GOL = 6e-8s
| GOL(j) | = 6
22
Find Pu: Pu = 16s
c / 8
1 1
Find Kcu: Kcu = 0.167
| G p ( jc ) | 6
[ Note that for this unusual process, the process AR is independent of frequency]
PI controller:
PID controller:
14-30
D = Pu/8 = 16/8 = 2 s
c)
1.4
1.2
0.8
y
PID control
0.6 PI control
0.4
0.2
0
0 30 60 90 120 150
t
Figure S14.25 Set-point responses for PI and PID control.
Note: The MATLAB version of PID control uses the following controller
settings: ki=Kc/I and kd= KcD.
14.26
Kcu and c are obtained using Eqs. 14-56 and 14-57. Including the filter GF into
these equations gives
Solving,
14-31
c = 8.443 for F = 0
c = 5.985 for F = 0.1
1 K cu
2 1
c 1 F c 1
2 2 2
Therefore,
14.27
0.047 5.264
a) Gv ( s) 112
0.083s 1 0.083s 1
2
G p ( s)
(0.432s 1)(0.017s 1)
0.12
Gm ( s)
(0.024s 1)
14-32
1 ( K cu )
5.624 2
(0.083 ) 2 1 (0.432 ) 2 1 (0.017 ) 2 1
c c c
0.12
(0.024 ) 2 1
c
Substituting c=18.19 , Kcu = 12.97
2
1
|Gc| = 5.84 1
0.288
tan-1(0.017c) tan-1(0.024c)
2
1 5.264
Ac AR OL c 5.84 1
0.288c (0.083 ) 2 1
c
2 0.12
(0.432c ) 2 1 (0.017c ) 2 1 (0.024c ) 2 1
= 0.651
14-33
Using Eq. 14-60, GM = 1/Ac = 1.54
AR OL g
=1 at g = 11.78 rad/min
Substituting into Eq. 14-57 gives
PM = 180 + g = 13.2
14.28
5.264
Gv ( s )
0.083s 1
2
G p ( s)
(0.432s 1)(0.017s 1)
0.12
Gm ( s)
(0.024s 1)
1
The PI controller is Gc ( s ) 51
0.3s
Hence the closed-loop transfer function is
GOL Gc Gv G p Gm
Rearranging,
6.317s 21.06
GOL 5
1.46 10 s 0.00168s 4 0.05738s 3 0.556s 2 s
5
14-34
By using MATLAB, the Nyquist diagram for this open-loop system is
Nyquist Diagram
1
0.5
-0.5
-1
Imaginary Axis
-1.5
-2
-2.5
-3
-3.5
-4
-3 -2.5 -2 -1.5 -1 -0.5 0
Real Axis
1
b) Gain margin = GM =
AR c
where ARc is the value of the open-loop amplitude ratio at the critical
frequency c. By using the Nyquist plot
Nyquist Diagram
1
0.5
-0.5
-1
Imaginary Axis
-1.5
-2
-2.5
-3
-3.5
-4
-3 -2.5 -2 -1.5 -1 -0.5 0
Real Axis
14-35
= -180 ARc = | G(jc)| = 0.5
14-36
Chapter 15 ©
15.1
For Ra=d/u
Ra d
Kp 2
u u
which can vary more than Kp in Eq. 15-2, because the new Kp depends on both d
and u.
15.2
u m u m0 K 2u 2 K 2
2
u
Thus KR (1)
d m d m0 K1d 2 K1 d
For constant gain KR, the values of u and d in Eq. 1 are the desired steady-state
values so that u/d = Rd, the desired ratio. Moreover, the transmitter gains are
(15 3) mA (15 3) mA
K1 , K2
Sd 2 Su 2
2
Su
2
S
KR Rd d
2
2
Rd
Sd Su
The starting point in feedforward controller design is Eq. 15-21. For a design based
on a steady-state analysis, the transfer functions in (15-21) are replaced by their
corresponding steady-state gains:
Kd
GF ( s )
Kt Kv K p
(1)
mA
K t 0.08
L/min
gal/min
Kv 4
mA
15-2
Next, calculate Kp and Kd from the given data. Linear regression gives:
ppm
K p 2.1
gal/min
ppm
K d 0.235
L/min
ppm
0.235
GF ( s ) L/min
mA gal/min ppm
0.08 4 2.1
L/min mA gal/min
GF ( s ) 0.35
15.4
(TBA)
15.5
Gp=1, Gd=2, Gv = Gm = Gt =1
From Eq.15-21
Gd 2
Gf = 2
Gv Gt G p (1)(1)(1)
15-3
c) Using Eq. 12-19
~ 1 ~ ~
G Gv G p G m G G
s 1
1
where G 1, G
s 1
1
f=
3s 1
1 s 1
Gc* G 1 f ( s 1) ( )
3s 1 3s 1
1
Y(s) = (Gd+GtGfGvGp)
s
2 1 1
Y(s) = (1)(2)(1)
( s 1)(4s 1) s 1 s
8 8 / 3 32 / 3 8 / 3 8/3
Y(s) = ( s 1)(4s 1) s 1 4s 1 s 1 s 1/ 4
8
y (t ) (et et /4 )
3
15-4
For the controller of part (b)
2 2 1 1
Y(s) = (1) (1) 0
( s 1)(4s 1) 4s 1 s 1 s
or y(t) = 0
The step responses are shown in Fig. S15.5 (left panel).
24s 36 32 4
( s 1)(4s 1)(3s 1) 3s 1 4s 1 s 1
or Y(s) =
12 8 4
s 1/ 3 s 1/ 4 s 1
Thus,
y(t ) 12et /3 8et /4 4et
Thus, y(t) = 0
The closed-loop responses are shown in Fig. S15.5 (right panel).
15-5
Figure S15.5. Closed-loop responses for feedforward-only control (FFC, left
panel) and feedforward-feedback control (FFC+FBC, right panel).
15.6
a) The steady-state energy balance for both tanks takes the form
0 = w1 C T1 + w2 C T2 w C T4 + Q
where:
Q is the power input of the heater.
C is the specific heat of the fluid.
Q = C ( w1T1 w 2 T 2 wT 4 ) (1)
Q = Kh p (2)
15-6
T1m = T1m0 + KT(T1-T10) (3)
Substituting into (1) for Q,T1, and w from (2),(3), and (4), gives
C 1 1
P [ w1 (T1 (T1m T1m )) w2 T2 T4 ( w 0 ( wm wm ))]
0 0 0
Kh KT Kw
15.7
a)
Q1
Gf Kt
Gd
Q5 + H2
Kv Gp +
0 = q1 + q2 + q4 q5
0 = q1 – q 5 (1)
15-7
Q5(s) = Kv Gf Kt Q1(s)
dh1
A1 q1 q 2 C1 h1
dt
dh1 ' C1
A1 q1 ' h1 '
dt 2 h1
Taking Laplace transform,
H 1 (s) R1 2 h1
where R1 (2)
Q1 ( s ) A1 R1 s 1 C1
Linearizing q3 = C1 h1 gives
1
q3 h1
R1
Thus
Q3 ( s ) 1
(3)
H 1 ( s ) R1
15-8
H 2 (s) 1
(4)
Q3 ( s ) A2 s
and
H 2 (s) 1
G p (s)
Q5 ( s ) A2 s
H 2 ( s ) H 2 ( s ) Q3 ( s ) H 1 ( s ) 1
Gd ( s)
Q1 ( s ) Q3 ( s ) H 1 ( s ) Q1 ( s ) A2 s ( A1 R 1 s 1)
Using Eq. 15-21
1
Gd A2 s( A1 R1 s 1)
Gf
Gt G v G p K t K v (1 / A2 s )
1 1
Gf
K v Kt A1 R1s 1
15.8
Component balances:
dcA
V q(c Ai c A ) V (k1c A k2cB )
dt
dc
V B qcB V (k1c A k2cB )
dt
Linearize,
dcA
V a11cA a12cB b1q dcAi (1)
dt
dc
V B a21cA a22cB b2 q (2)
dt
15-9
where:
q
a11 k1 , a12 k2
V
q
a21 k1 , a22 k2 (3)
V
q c Ai c A c
d , b1 , b2 B
V V V
Take Laplace transforms and solve, after substituting the first equation for
CA ( s) into the second equation. The result is:
CB ( s ) G p ( s ) Q( s ) Gd ( s ) C Ai
( s) (4)
where:
a21b1 b2 ( s a11 )
G p ( s) (5)
( s)
a21d1
Gd ( s)
( s)
( s) ( s a22 )( s a11 ) a21a12
Gd ( s )
G f ( s) (6)
Kt K vG p (s)
a21d 1
G f ( s) (7)
a21b1 b2 ( s a11 ) K t K v
K
G f ( s)
s 1
15-10
where:
1 k1qV
K
K t K v k1V (c A c Ai ) q cB cB k1V
cBV
k1V (c A c Ai ) q cB cB k1V
KcKvKpKm > 0
The available information indicates that Kv > 0 and Km > 0, assuming that
q is still the manipulated variable. Thus Kc should have the same sign as
Kp and we need to determine the sign of Kp.
a21b1 b2 a11
K p lim G p ( s)
s 0 a11a22 a21a12
Because both the numerator and denominator terms of (8) are positive,
Kp > 0. Thus Kc should be positive.
Conclusion: The feedback controller should be reverse acting.
15-11
could be beneficial. An unsteady-state model (or experimental data) would
be required to resolve this issue. Even then, if tight control of cB is not
essential, it might be decided to use the simpler design method based on the
steady-state analysis.
15.9
The block diagram for the feedforward-feedback control system is shown in Fig.
15.12.
Gd
Gf (15-21)
K I PGt GvG p
The static (or steady-state) version of the controller is simply a gain, Kf:
Kf = - 0.417 (2)
15-12
Note that Gf(s) in (1) is physically unrealizable. In order to derive a
physically realizable dynamic controller, the unrealizable controller in (1)
is approximated by a lead-lag unit, in analogy with Example 15.5:
0.1833s 1
G f ( s) 0.417 (3)
0.01833s 1
Equation 3 was derived from (1) by: (i) omitting the time delay term, (ii)
adding the time delay of 0.1 min to the lead time constant, and (iii)
introducing a small time constant of x0.1833= 0.01833 for = 0.1.
2.6 x10
4
0.75 32e
25 0.1s
G GIP GvG p Gm
0.0833s 1 4.71 s 1
0.680 0.680
0.14
0.874 0.674 I 0.642 min
I 4.752
15-13
feedforward controller because both the maximum deviation from the set point and the
settling time are smaller. Figure S15.9b shows that the combined feedforward-feedback
control system provides the best control and is superior to the PI controller. A comparison
of Figs. S15.9a and S15.9b shows that the addition of feedback control significantly
reduces the settling time due to the very large value of Kc that can be employed because
the time delay is very small. (Note that = 0.14/4.75 = 0.0029.)
Fig. S15.9a. Comparison of static and dynamic feedforward controllers for a step
disturbance of +0.2 in x1 at t =2 min.
-3
x 10
8
5
FB
4 FF-FB
x
3
-1
-2
0 1 2 3 4 5 6 7
t (min)
15-14
15.10
Gp=Kp, Gd=KL, Gv = Gm = Gt =1
Gd 0.5
Gf = 0.25
Gv Gt G p (1)(1)(2)
0.5e 30s
Gd 60s 1 (95s 1) 10s
Gf = 0.25 e
Gv Gt G p 2e 20 s
(60s 1)
(1)(1)
95s 1
c) Using Table 12.1, a PI controller is obtained from item G,
1 1 95
Kc 0.95
K p c 2 (30 20)
i 95
15-15
0.08
Controller of part a)
Controller of part b
0.06
0.04
y(t)
0.02
-0.02
-0.04
0 50 100 150 200 250 300 350 400 450 500
time
0.04
0.02
y(t) 0
-0.02
-0.04
-0.06
0 50 100 150 200 250 300 350 400 450 500
time
15-16
15.11
Energy Balance:
dT
VC wC (Ti T ) U (1 qc ) A(T Tc ) U L AL (T Ta ) (1)
dt
dT
VC wC (Ti T ) UA(T Tc )
dt
UAqcT UAqcTc U L AL (T Ta ) (2)
Substituting (3) into (2), subtracting the steady-state equation, and introducing
deviation variables,
dT
VC wC (Ti T ) UAT UAT qc UAqcT
dt
UATc qc U L ALT (4)
Rearranging,
where:
Kd
Gd ( s)
s 1
Kp
G p ( s)
s 1
15-17
wC
Kd (7)
K
UA(Tc T )
Kp
K
VC
K
K wC UA UAqc U L AL
Gd
GF (15-21)
Gt Gv G p
wCe s
GF (9)
K t K vUA(Tc T )
wC
GF (10)
K t K vUA(Tc T )
15.12
Note: The disturbance transfer function is incorrect in the first printing. It should
be:
cO2 2.82e4 s
FG 4.3s 1
2.82e4 s
Gd 4.3s 1 4.2s 1
Gf 20.1
Gv Gt G p 0.14e
4 s
4.3s 1
(1)(1)
4.2s 1
G f 20.1 m3 /min
15-18
b) Using Item G in Table 12.1, a PI controller is obtained from for
G= GvGpGm, Assume that c =/2 = 2.1 min.
1 τθ/ 2 1 4.2 2
Kc 10.8
K τ c θ / 2 0.14 (2.1 2)
τθ (4.2)(4)
τD 1.35 min
2τ θ 2(4.2) 4
i 95
15-19
Figure S15.12a: Controller Comparison for step change in fuel gas purity
from 1.0 to 0.9 at t = 0. Top: full scale; Bottom: expanded scale.
15.13
Steady-state balances:
0 q5 q1 q3 (1)
0 q3 q 2 q 4 (2)
0
0 x5 q5 x1q1 x3 q3 (3)
0 x3 q3 x2 q2 x4 q4 (4)
0 x5 q5 x2 q2 x4 q4 (5)
Rearrange,
x 4 q 4 x5 q 5
q2 (6)
x2
15-20
In order to derive the feedforward control law, let
x4 x4 sp x2 x2 (t ) x5 x5 (t ) and q2 q2 (t )
Thus,
x4 sp q 4 x5 (t )q5 (t )
q 2 (t ) (7)
x2
(3400) x4 sp x5 (t )q5 (t )
q 2 (t ) (8)
0.990
or
Note: If the transmitter and control valve gains are available, then an expression
relating the feedforward controller output signal, p(t), to the measurements , x5m(t)
and q5m(t), can be developed.
15.14
The three xD control strategies are compared in Figs. S15.14a-b for the step
disturbance in feed composition. The FF-FB controller is slightly superior because
it minimizes the maximum deviation from set point. Note that the PCM feedforward
controller design ignores the two time delays, which are quite different. Thus, the
feedforward controller overcorrects and is not effective as it could be.
15-21
Fig. S15.14a. Comparison of feedback control and no control for a step change in feed
composition from 0.5 to 0.55 at t = 0.
15-22
Chapter 16
16.1
The difference between systems A and B lies in the dynamic lag in the
measurement elements Gm1 (primary loop) and Gm2(secondary loop). With a faster
measurement device in A, better control action is achieved. In addition, for a
cascade control system to function properly, the response of the secondary control
loop should be faster than the primary loop. Hence System A should be faster and
yield better closed-loop performance than B.
Because Gm2 in system B has an appreciable lag, cascade control has the potential
to improve the overall closed-loop performance more than for system A. Little
improvement in system A can be achieved by cascade control versus conventional
feedback.
Comparisons are shown in Figs. S16.1a/b. PI controllers are used in the outer
loop. The PI controllers for both System A and System B are designed based on
Table 12.1 ( c 3 ). P controllers are used in the inner loops. Because of
different dynamics the proportional controller gain of System B is about one-
fourth as large as the controller gain of System A
0.6
0.5
0.4
Output
0.3
0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
time
Figure S16.1a System A. Comparison of D2 responses (D2=1/s) for cascade control and
conventional PI control.
Solution Manual for Process Dynamics and Control, 4th edition
Copyright © 2016 by Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellichamp,
and Francis J. Doyle III
16-1
In comparing the two figures, it appears that the standard feedback results are
essentially the same, but the cascade response for system A is much faster and has
much less absolute error than for the cascade control of B
0.7
Cascade
Standard feedback
0.6
0.5
0.4
Output
0.3
0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
time
Figure S16.1b System B .Comparison of D2 responses (D2=1/s) for cascade control and
conventional PI control.
16-2
Figure S16.1d Block diagram for System B
16.2
Y1 Gd 1
D1 Gc 2Gv
1 Gc1 G p Gm1
1 Gc 2GvGm 2
Y1 G p Gd 2
D2 1 Gc 2Gv Gm 2 Gc 2GvGm1Gc1G p
5 1
using Gv , Gd 2 1 , Gd 1 ,
s 1 3s 1
16-3
4
Gp , Gm1 0.05 , G m 2 0 .2
(2s 1)(4s 1)
For Gc1 = Kc1 and Gc2 = Kc2, we obtain
The figures below show the step load responses for Kc1=43.3 and for
Kc2=25. Note that both responses are stable. You should recall that the
critical gain for Kc2=5 is Kc1=43.3. Increasing Kc2 stabilizes the controller,
as is predicted.
-3
x 10
1 12
0.8
10
0.6
8
0.4
6
0.2
Output
Output
0
4
-0.2
2
-0.4
0
-0.6
-0.8 -2
0 5 10 15 20 25 30 0 5 10 15 20 25 30
time time
Figure S16.2a Responses for unit load change in D1 (left) and D2 (right)
1+Gc2GvGm2+Gc2GvGm1Gc1Gp = 0 (1)
Let Gc1=Kc2 and Gc2=Kc2. Then, substituting all the transfer functions into
(1), we obtain
j : 8 3 7 6 K c 2 0
14 8 K c 2 2 K c 2 1 K c1 1 0
Hence, for normal (positive) values of Kc1 and Kc2,
16-4
24 Kc 2 2 66 Kc 2 45
Kc1,u
4Kc 2
The results are shown in the table and figure below. Note the nearly linear
variation of Kc1 ultimate with Kc2. This is because the right hand side is
very nearly 6 Kc2+16.5. For larger values of Kc2, the stability margin on
Kc1 is higher. There don’t appear to be any nonlinear effects of Kc2 on Kc1,
especially at high Kc2.
There is no theoretical upper limit for Kc2, except that large values may
cause the valve to saturate for small set-point or load changes.
Kc2 Kc1,u
1 33.75
2 34.13
3 38.25
4 43.31
5 48.75 160.00
6 54.38 140.00
7 60.11 120.00
8 65.91
Kc1, ultimate
100.00
9 71.75
80.00
10 77.63
60.00
11 83.52
12 89.44 40.00
13 95.37 20.00
14 101.30 0.00
15 107.25 0 5 10 15 20
16 113.20 Kc2
17 119.16
18 125.13
19 131.09
20 137.06
Gc1 K c1
1
Gc 2 51
5s
1 5 1 5
1 51 (0.2) 51 (0.05) K c1
5s s 1 5s s 1
4
0
(4 s 1)(2 s 1)
Rearrangement gives
16-5
8s 4 54s 3 45s 2 (12 5K c1 ) s K c1 1 0
1
Gc1 K c1 1
5s
Gc 2 5
5 5 1 4
1 5 (0.2) 5 (0.05) K c1 1 0
s 1 s 1 5s (4s 1)(2s 1)
8s 4 54s 3 37s 2 (6 5K c1 ) s K c1 0
Calculation of offset:
1
For Gc1 K c1 1 , Gc 2 K c 2 , ( I 2 )
I 1s
16-6
Y1 Gd 1 (1 K c 2Gv Gm 2 )
D1 1
1 K c 2Gv Gm 2 K c 2Gv Gm1 K c1 1 Gp
I 1s
Y1
( s 0) 0
D1
Y1 G p Gd 2
D2 1
1 K c 2GvGm 2 K c 2GvGm1K c1 1 Gp
I 1s
Y1
( s 0) 0
D2
Thus, for the same reason as before, a step-change in D2 does not produce
an offset in Y1.
1
For Gc1 K c1 (ie. I 1 ) , Gc 2 K c 2 1
I 2 s
1
Gd 1 (1 K c 2 1 GvGm 2 )
Y1 I 2 s
D1 1 1
1 K c 2 1 GvGm 2 K c 2GvGm1K c1 1 Gp
I 2 s I 2 s
Y1
( s 0) 0
D1
Y1 G p Gd 2
D2 1 1
1 K c 2 1 GvGm 2 K c 2GvGm1K c1 1 Gp
I 2 s I 2 s
16-7
Y1
( s 0) 0
D2
16.3
For the inner controller (Slave controller), IMC tuning rules are used
Closed-loop responses for different values of c2 are shown below. A c2 value of
3 yields a good response.
This higher-order transfer function is approximated by first order plus time delay
using a step test:
1
0.9
0.8
0.7
0.6
Output
0.5
0.4
0.3
0.2
0.1
0
0 10 20 30 40 50 60
time
Figure S16.3a Reaction curve for the higher order transfer function
16-8
e 0.38 s
Hence G1
(15.32s 1)
15.32
From Table 12.1: (PI controller, Case G): K c and i 15.32
c1 0.38
Closed-loop responses are shown for different values of c1. A c1 value of 7
yields a good response.
1.4
0.9 Tauc1=3
Tauc2=0.5 Tauc1=5
Tauc2=3 Tauc1=7
0.8 Tauc2=7 1.2
Tauc2=5
0.7
1
0.6
0.8
0.5
Output
Output
0.4 0.6
0.3
0.4
0.2
0.2
0.1
0 0
0 10 20 30 40 50 60 0 10 20 30 40 50 60 70 80 90 100
time time
Figure S16.3b Closed-loop response for c2 Figure S16.3c Closed-loop response for c1
16.4
Assuming Tsp 0 , the closed-loop transfer function for temperature output is shown as
follows:
16-9
1
K c 1 G G
Is v p Gd2 G p Gd1
T Tsp DPin DTin
1 1 1
1 K c 1 GT GvG p 1 K c 1 GT GvG p 1 K c 1 GT GvG p
Is Is Is
23 K
3
c 1 j 15 4 9 2 5K c 0
Re: 15 4 9 2 5K c 0
Im: 23 3 Kc 1 0
K cm 0.08
To have a stable system, we have:
0 K c 0.08
(b). The cascade control loop configuration is shown as in Figure S16.4b:
(c) From (a) we can derive the closed-loop transfer function with the standard PI
controller for a disturbance in steam pressure:
16-10
T s Gd2 G p
DPin s 1
1 K c 1 GT GvG p
Is
Assuming Tsp DTi 0 , based on Figure S16.4b, we can derive the closed-loop
transfer function with the cascade controller for a disturbance in steam pressure:
T s Gd2 G p
DPin s 1 Gc1Gc 2GT GvG p GmGc 2Gv
Set K c1 K c 3; K c 2 2; I 5 in a Simulink diagram, and we obtain results
shown in Figure S16.4c: the cascade control system improves stability
characteristics by dampening aggressive control responses.
0.025
0.02
0.015
0.01
0.005
-0.005
0 20 40 60 80 100 120 140 160 180 200
16-11
16.5
a) The T2 controller (TC-2) adjusts the set-point, T1sp, of the T1 controller (TC-
1). Its output signal is added to the output of the feedforward controller.
TOm
Feedforward
controller
T1sp
TT + TC
+
TO 1
T1m
w
V1 TT
TC
2
S
C T2m
R
Q1
TT
T2
w
Q2
S
C
R
16-12
TO
TOm Q2
GmO Gd1
Gd2
GFF
Q1
T2sp T1sp
Km2 +- Gc1 + + + Gp2 +
- Gc2 + Gv Gp1 + +
T1m T1
Gm1
T2m
Gm2
T2
Figure S16.5b Block diagram for the control system in Exercise 16.5.
16.6
(a)
FF control can be more beneficial in treating D2. D1 can be compensated by
feedback loop right after the sensor Gm detected. D2 needs to go through Gp1 first
where significant time delay may exist before being measured and corrected.
Thus, FF control on D2 can cancel out the disturbance much faster.
(b)
16-13
D1
D2
GmD1
Gd2 Gd1
GFF
Ysp1 + +
Km +- Gc1 + Gv Gp2 + Gp1
+ +
Ym
Gm
Y1
(c)
Cold oil temperature sensor is required.
16.7
16-14
Figure S16.7a Block diagram for Smith predictor
The closed-loop response for unit set-point and disturbance changes are
shown below. Consider a PI controller designed by using Table 12.1(Case
A) with c = 3 and set Gd = Gp. Note that no offset occurs,
1
Set-pont change
0.9 Disturbance change
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15 20 25 30 35 40 45 50
16-15
16.8
1 I s K p es
where Gc K c s
and Gp
1 I s e 1 s
a)
1 I s e s
Kc K p
Y GcG p 1 I s e s 1 s
Ysp 1 GcG p 1 I s e s
1 Kc K p s
1 I s e 1 s
1
Since K c and I =
Kp
e s
s
1 I s e e s
Y
Ysp e s 1 I s e s e s
1 s
1 I s e
Y e s
Ysp 1 I s
16-16
16.9
For a first-order process with time delay, use of a Smith predictor and
proportional control should make the process behave like a first-order
system, i.e., no oscillation. In fact, if the model parameters are accurately
known, the controller gain can be as large as we want, and no oscillations
will occur.
Appelpolscher has verified that the process is linear, however it may not
be truly first-order. If it were second-order (plus time delay), proportional
control would yield oscillations for a well-tuned system. Similarly, if there
are errors in the model parameters used to design the controller even when
the actual process is first-order, oscillations can occur.
16.10
Y GcGp es
Ysp 1 GcGp (1 es ) GcGp e s
GcGp es
1 GcGp GcGp e s GcGp e s
~
Note that the last two terms of the denominator can when G p G p and
b) The closed-loop responses to step set-point changes are shown below for
the various cases.
16-17
Figure S16.10a Simulink diagram block; base case
1.4
1
0.9 1.2
0.8
1
0.7
0.6 0.8
Output
Output
0.5
0.6
0.4
0.3 0.4
0.2
0.2
0.1
0 0
0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50
time time
1
1.4
0.9
1.2
0.8
0.7
1
0.6
0.8
Output
Output
0.5
0.4 0.6
0.3
0.4
0.2
0.2
0.1
0 0
0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50
time time
16-18
1.4
6
1.2
4
0.8
Output
Output
0
0.6
-2
0.4
-4
0.2
0 -6
0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50
time time
25
20
15
10
5
Output
-5
-10
-15
-20
-25
0 5 10 15 20 25 30 35 40 45 50
time
When the actual process time constant is smaller than the model time
constant, the closed–loop system may become unstable. In our case, the
error is not large enough to cause instability, but the response is more
oscillatory than for the base (perfect model) case. The same is true if the
actual process gain is larger than that of the model. If the actual process
has a larger time constant, or smaller gain than the model, there is no
significant degradation in closed loop performance (for the magnitude of
the error, 20% considered here). Note that in all the above simulations,
2 s
the model is considered to be 2e and the actual process parameters
5s 1
have been assumed to vary by 20% of the model parameter values.
16-19
0.9 1.4
0.8
1.2
0.7
1
0.6
0.8
0.5
Output
Output
0.4
0.6
0.3
0.4
0.2
0.2
0.1
0 0
0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50
time time
Base case Kp = 3
0.7 0.9
0.8
0.6
0.7
0.5
0.6
0.4
0.5
Output
Output
0.4
0.3
0.3
0.2
0.2
0.1
0.1
0 0
0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50
time time
Kp = 1 =1
1.4
1.4
1.2
1.2
1
1
0.8
0.8
Output
Output
0.6
0.6
0.4 0.4
0.2 0.2
0 0
0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50
time time
= 2.5 =3
16-20
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15 20 25 30 35 40 45 50
=1
Nyquist plots were prepared for different values of Kp, and , and
checked to see if the stability criterion was satisfied. The stability regions
when the three parameters are varied one to time are.
Kp 4.1 ( = 5 , = 2)
2.4 (Kp=2 , = 2)
Y Gd 1 GcG 1 e
s
D 1 GcG
that is,
2 3s K c K c I s 2
e 1
I s
1 e 3s
Y s
s
D K K s 2
1 c c I
I s s
lim y (t ) lim sY ( s )
t s 0
then
16-21
2 3 s K c K c I s 2
e 1
I s
1 e 3 s
lim sY ( s ) lim s
s s 1
s 0 s 0 K Kc I s 2 s
1 c
I s s
2 3 s
e I s ( K c K c I s ) 1 e 3 s
2
lim
s s
s 0 2
I s ( Kc K c I s)
s
lim
2e 3 s I s 2 ( K c K c I s )2 1 e 3 s
s 0 I s ( K c K c I s )2s
3
lim
6e 3 s I s 2 ( K c K c I s )2 1 e 3 s
s 0 3 I s 2( K c 2 K c I s )
2
3 s 3 s 3 s 3 s
+ 2e (2I s 6 Kce 2 2 K c I 2 Kc I e 6K c I se ) = 6
3I s 2( Kc 2 Kc I s)
Therefore
lim y (t ) lim sY ( s ) = 6
t s 0
16.12
16-22
Figure S16.12. Smith Predictor diagram block
Y Gc G p
Ysp 1 Gc G p
where Gc’ is the transfer function for the system in the dotted box.
Gc
Gc
1 GcQ(1 es )
Gc G p
Y 1 Gc Q(1 e s )
Ysp Gc G p
1
1 Gc Q(1 e s )
Simplification gives
Y Gc Qe s
P( s )e s
Ysp 1 Gc Q
Gc Q
where P( s )
1 Gc Q
If P(s) is the desired system performance (after the time delay has elapsed)
under feedback control, then we can solve for Gc in terms of P(s).
P( s)
Gc
Q( s )(1 P( s ))
16-23
The IMC controller requires that we define
G es
~
G Q( s ) (the invertible part of Gp)
1
Let the filter for the controller be f(s) =
F s 1
~ 1 f (s)
Gc G f ( s )
Q( s)
Y e s
Gc G p G f
Ysp 1 F s
Note that this is the same closed-loop form as analyzed in part (a), which
led to a Smith Predictor type of controller. Hence, the IMC design also
provides time-delay compensation.
16.13
Referring to Example 4.8, if flow rate q and inlet temperature Ti are constant, then
(4-88) is the starting point for the derivation:
Rearranging gives,
s a22 b
C A ( s ) T ( s ) 2 Tc( s )
a21 a21
16-24
Replacing C A ( s ) by its estimate, Ĉ A ( s ) , provides an inferential estimate of exit
composition from T and Tc. However, the first term on the right hand side is not
realizable, consequently, a small time constant is added to the denominator to
provide a lead-lag unit that is physically realable:
1 s a22 b
Ĉ A ( s ) T ( s ) 2 Tc( s )
a21 s 1 a21
16.14
One possible solution would be to use a split range valve to handle the 100 p
200 and higher pressure ranges. Moreover, a high-gain controller with set-point =
200 psi can be used for the vent valve. This valve would not open while the
pressure is less than 200 psi, which is similar to how a selector operates.
16-25
VENT
SPLIT RANGE
CONTROLLER
PT
INLET OUTLET
REACTOR
16.15
The amounts of air and fuel are changed in response to the steam pressure.
If the steam pressure is too low, a signal is sent to increase both air and
fuel flowrates, which in turn increases the heat transfer to the steam.
Selectors are used to prevent the possibility of explosions (low air-fuel
ratio). If the air flowrate is too low, the low selector uses that
measurement as the set-point for the fuel flow rate controller. If the fuel
flowrate is too high, its measurement is selected by the high selector as the
set-point for the air flow controller. This also protects against dynamic
lags in the set-point response.
16.16
16-26
16.17
Kc K p Kc K p
K c (t )
Kˆ p (t ) a
b
Mˆ (t )
16.18
16-27
16.19
1
Gc G p 1 c s 1 1 1
a) Gc
1 G c Gp c s 1 1 G p c s
G p 1
c s 1
Substituting for Gp
1 12 s 2 (1 2 ) s 1 1 1
Gc ( s ) (1 2 ) 12 s s
c s Kp K p c
(1 2 )
Kc
K p c
I 1 2
12
D
1 2
Using this PID controller, the closed-loop response will be first order
when the process model is known accurately. The closed-loop response to
a unit step-change in the set-point when the model is known exactly is
shown above. It is assumed that c was chosen such that the closed loop
response is reasonable, and the manipulated variable does not violate any
bounds that are imposed. An approximate derivative action is used by
s
Simulink-MATLAB, namely D when =0.01
1 s
16-28
Figure S16.19a. Simulink block diagram.
1.4
1200
1.2
1000
1
800
Manipulated variable
0.8
600
Output
0.6
400
0.4
200
0.2 0
0 -200
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
time time
Figure S16.19b. Output (no model error) Figure S16.19c. Manipulated variable (no
model error)
1.4
1200
1.2
1000
1
800
Manipulated variable
0.8
600
Output
0.6
400
0.4
200
0.2 0
0 -200
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
time time
16-29
1.4
1200
1.2
1000
800
Manipulated variable
0.8
Output
600
0.6
400
0.4
0.2 200
0 0
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
time time
1.4
1200
1.2
1000
800
Manipulated variable
0.8
Output
600
0.6
400
0.4
0.2 200
0 0
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
time time
1 1200
0.9
1000
0.8
0.7 800
Msanipulated variable
0.6
600
Output
0.5
400
0.4
0.3 200
0.2
0
0.1
0 -200
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
time time
(1) The closed-loop response when the actual Kp is 2.0 is shown above. The
controlled variable reaches its set-point much faster than for the base case
(exact model), but the manipulated variable assumes values that are more
negative (for some period of time) than the base case. This may violate
some bounds.
16-30
(2) When Kp = 0.5, the response is much slower. In fact, the closed-loop time
constant seems to be about 3.0 instead of 1.5. There do not seem to be any
problems with the manipulated variable.
(3) If (2 = 10), the closed-loop response is no longer first-order. The settling
time is much longer than for the base case. The manipulated variable does
not seem to violate any bounds.
(4) Both the drawbacks seen above are observed when 2 = 1. The settling
time is much longer than for the base case. Also the rapid initial increase
in the controlled variable means that the manipulated variable drops off
sharply, and is in danger of violating a lower bound.
16.20
16.21
SELECTIVE CONTROL
Selectors are quite often used in forced draft combustion control system to
prevent an imbalance between air flow and fuel flow, which could result in unsafe
operating conditions.
For this case, a flow controller adjusts the air flowrate in the heater. Its set-point is
determined by the High Selector, which chooses the higher of the two input
signals:
.- Signal from the fuel gas flowrate transmitter (when this is too high)
16-31
.- Signal from the outlet temperature control system.
Similarly, if the air flow rate is too low, its measurement is selected by the low
selector as the set-point for the fuel-flow rate.
CASCADE CONTROLLER
The outlet temperature control system can be considered the master controller that
adjusts the set-point of the fuel/air control system (slave controller). If a
disturbance in fuel or air flow rate exists, the slave control system will act very
quickly to hold them at their set-points.
FEED-FORWARD CONTROL
The feedforward control scheme in the heater provides better control of the heater
outlet temperature. The feed flowrate and temperature are measured and sent to
the feedback control system in the outflow. Hence corrective action is taken
before they upset the process. The outputs of the feedforward and feedback
controller are added together and the combined signal is sent to the fuel/air
control system.
16.22
ALTERNATIVE A.
Since the control valves are "air to close", each Kv is positive (cf. Chapter
9). Consequently, each controller must be reverse acting (Kc>0) for the
flow control loop to function properly.
Control strategy:
16-32
~ ~
If Pcc > 80% , Fsp Fsp , low
~
where Fsp , low is a specified default flow rate that is lower than the normal
~
value, Fsp nom .
Method 2: Reduce the feed flow when Pcc > 80%
Control strategy:
~ ~
If Pcc < 80%, Fsp Fsp nom K(Pcc – 80%)
Implementation:
~
80 % Fnom
Pcc
- + ~
HS + K - Fsp
80 %
~
Note: A check should be made to ensure that 0 Fsp 100%
ALTERNATIVE B.-
16-33
Figure S16.22. Proposed selective control system
Both control valves are A-O and transmitters are “direct acting”, so the controller
have to be “reverse acting”.
When the output concentration decreases, the controller output increases. Hence
this signal cannot be sent directly to the feed valve (it would open the valve).
Using a high selector that chooses the higher of these signals can solve the
problem
.- Flow transmitter
.- Output concentration controller
Therefore when the signal from the output controller exceeds 80%, the selector
holds it and sends it to the flow controller, so that feed flow rate is reduced.
16-34
16.23
ALTERNATIVE A.-
Time delay.- Use time delay compensation, e.g., Smith Predictor
Measure qbase .- This suggests you may want to use cascade control to
compensate for upstream pressure changes, etc
ALTERNATIVE B.-
In this scheme, several manipulated variables are used to control a single process
variable. When the pH is too high or too low, a signal is sent to the selectors in
either the waste stream or the base stream flowrate controllers. The exactly
configuration of the system depends on the transmitter, controller and valve gains.
In addition, a Smith Predictor for the pH controller is proposed due to the large
time delay. There would be other possibilities for this process such as an adaptive
control system or a cascade control system. However the scheme above may be
good enough
Necessary information:
16-35
.- Descriptions of measurement devices, valves and controllers; direct
action or reverse action.
16.24
For setpoint change, the closed-loop transfer function with an integral controller
and steady state process (Gp = Kp) is:
1 K
G G I s P KP 1
Y C P
Ysp 1 G G 1 1 I s K P
C P K
I s P
I s 1
KP
Hence a first order response is obtained and satisfactory control can be achieved.
Gd KP K ( s) I s
Y P I
D 1 G G 1 1 K P I s K P I s 1
C P
I s KP
16.25
The standard PID control algorithm could be used to provide a basic control level.
However, it may be subject to saturation in order to keep the blood glucose within
the stated bounds. Feedforward control could be used if the effect of the meal
intake (disturbance) can be quantified according to its glucose level. Then the
insulin injection can anticipate the effect of the meal by taking preventative
actions before the change in blood glucose is sensed. A pitfall of a FF/FB control
could be that high insulin pump flow rates may be required in order to keep the
blood glucose within the desired range, and the pump flow rate may saturate.
Another enhancement would be adaptive control, which would allow the
controller to be automatically tuned for a given human in order to obtain a better
response (every person’s body chemistry is different). A drawback of adaptive
16-36
control is that it may be too aggressive and cause rapid changes in blood glucose.
A less aggressive adaptive controller could employ gain scheduling, where a
higher controller gain is used when the blood glucose level goes too high or too
low.
16.26
In the event that the feed temperature is too high, the slave controller will sense
the increase in temperature and increase the signal to the coolant valve, which will
increase the flow of coolant to reduce the temperature of the feed. The master
controller will sense a slight increase in temperature in the reactor and will
increase the set point of the slave controller, which will in turn increase the flow
rate of the coolant a second time. In this case, both the slave and the master
controller work together to counteract the disturbance. As a result, the
disturbance is dealt with quickly and the reactor temperature is only affected
slightly.
In the event that the feed flow rate is too high, the temperature of the feed exiting
the heat exchanger will increase. The slave controller will sense this and will act
as above by increasing the coolant flow rate. The increased flow rate of higher
temperature feed in the reactor will most likely increase the reactor temperature,
and the master controller will alter the set point of the slave controller
accordingly. Again the master controller and slave controller work together
to counteract the disturbance.
16.27
16-37
Figure S16.7a Cascade control of an exothermic chemical reactor
16-38
gradients in the tank contents and its associated feedback loop can react quickly, thus
improving the closed-loop response.
16.28
y1 K12u1 b1 (1)
y2 K 21u2 b2 (2)
The output y1 can reach the set-point y1sp by tuning u1 based on Eq. (3):
y1sp b1
u1 (3)
K12
But for output y2 , it is determined by combining Eqs. (2) and (3), and cannot be
specified arbitrarily leading to offset.
16-39
Chapter 17
17.1
Using Eq. 17-9, the filtered values of xD are shown in Table S17.1
xD(t) = 5 (1 e-t/10)
17-1
4.5
3.5
2.5
XD
1.5
1
noisy data
alpha = 0.5
0.5 alpha = 0.8
analytical solution
0
0 2 4 6 8 10 12 14 16 18 20
time (min)
Fig S17.1. Graphical comparison for noisy data, filtered data and analytical
solution.
17.2
yF (k ) ym (k ) (1 ) yF (k 1) (1)
yF (k 1) ym (k 1) (1 ) yF (k 2) (2)
yF (k ) ym (k ) (1 )ym (k 1) (1 ) 2 yF (k 2)
17-2
k 1
yF (k ) (1 )i ym (k i) (1 ) k yF (0)
i 0
17.3
Table S17.3 lists the unfiltered output and, from Eq. 17-9, the filtered data for
sampling periods of 1.0 and 0.1. Notice that for sampling period of 0.1, the
unfiltered and filtered outputs were obtained at 0.1 time increments, but they are
reported only at intervals of 1.0 to preserve conciseness and facilitate comparison.
The results show that for each value of t, the data become smoother as
decreases, but at the expense of lagging behind the mean output y(t)=t. Moreover,
lower sampling period improves filtering by giving smoother data and less lagg
for the same value of .
t=1 t=0.1
t =1 =0.8 =0.5 =0.2 =0.8 =0.5 =0.2
0 0 0 0 0 0 0 0
1 1.421 1.137 0.710 0.284 1.381 1.261 0.877
2 1.622 1.525 1.166 0.552 1.636 1.678 1.647
3 3.206 2.870 2.186 1.083 3.227 3.200 2.779
4 3.856 3.659 3.021 1.637 3.916 3.973 3.684
5 4.934 4.679 3.977 2.297 4.836 4.716 4.503
6 5.504 5.339 4.741 2.938 5.574 5.688 5.544
7 6.523 6.286 5.632 3.655 6.571 6.664 6.523
8 8.460 8.025 7.046 4.616 8.297 8.044 7.637
9 8.685 8.553 7.866 5.430 8.688 8.717 8.533
10 9.747 9.508 8.806 6.293 9.741 9.749 9.544
11 11.499 11.101 10.153 7.334 11.328 11.078 10.658
12 11.754 11.624 10.954 8.218 11.770 11.778 11.556
13 12.699 12.484 11.826 9.115 12.747 12.773 12.555
14 14.470 14.073 13.148 10.186 14.284 14.051 13.649
15 14.535 14.442 13.841 11.055 14.662 14.742 14.547
16 15.500 15.289 14.671 11.944 15.642 15.773 15.544
17 16.987 16.647 15.829 12.953 16.980 16.910 16.605
18 17.798 17.568 16.813 13.922 17.816 17.808 17.567
19 19.140 18.825 17.977 14.965 19.036 18.912 18.600
20 19.575 19.425 18.776 15.887 19.655 19.726 19.540
Table S17.3. Unfiltered and filtered output for sampling periods of 1.0 and 0.1
17-3
Graphical comparison:
20
18
16
14
12
y(t)
10
4
2
0
0 2 4 6 8 10 12 14 16 18 20
time, t
20
18
16
14
12
y(t)
10
4
2
0
0 2 4 6 8 10 12 14 16 18 20
time, t
17-4
17.4
Using Eq. 17-9 for = 0.2 and = 0.5, Eq. 17-18 for N* = 4, and Eq. 17-19 for
y=0.5, the results are tabulated and plotted below.
2.5
1.5
y(t)
0.5
N*=4
y=0.5
0
0 1 2 3 4 5 6 7 8
time, t
Figure S17.4. Graphical comparison for filtered data and the raw data.
17-5
17.5
Parameter setting:
1
𝐺𝑝 = 2𝑠+1 ; 𝑑(𝑡) = 1 + 0.2 sin(𝑡) ; 𝜏𝐹 = 0 (no filtering) or 3
To do this problem, build the Simulink diagrams below. Note that the filter is
represented by a first order transfer function with time constant of τF minutes.
This can be shown by performing the Laplace transform of equation 17.4 in the
book.
Figure S17.5a. Block diagram when a filter is used on the output with time
constant of 3 minutes. A sine wave of frequency 1 and amplitude 0.2 is the input.
Figure S17.5b. Block diagram when no filter is used on the output. A sine wave of
frequency 1 and amplitude 0.2 is the input.
17-6
1.4
With filter
With no-filter
1.2
1
Closed loop response
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
Time/ min
17.6
1 1 1
Y ( s) X (s) , then y(t) = 1 e-t
s 1 s 1 s
For noise level of 0.05 units, several different values of are tried in Eq. 17-9
as shown in Fig. S17.6a. While the filtered output for = 0.7 is still quite noisy,
that for = 0.3 is too sluggish. Thus = 0.4 seems to offer a good compromise
between noise reduction and lag addition. Therefore, the designed first-order filter
for noise level 0.05 units is = 0.4, which corresponds to F = 1.5 according to
Eq. 17-8a.
Noise level = 0.05
17-7
1.4
1.2
0.8
y(t) 0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16 18 20
t
1.2
0.8
y(t)
0.6
0.4
0.2
0
0 5 10 15 20
t
17-8
1.4
1.2
0.8
y(t)
0.6
0.4
0.2
0
0 5 10 15 20
t
17.7
17-9
1.2
0.8
y
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16 18 20
k
17.8
10
8
Tm'(t)
0
0 5 10 15 20 25 30 35 40 45 50
time
17-10
17.9
a)
Y ( z) 2.7 z 1 ( z 3) 2.7 8.1z 1
U ( z ) z 2 0.5 z 0.06 z 2 0.5 z 0.06
Y ( z) 2.7 z 2 8.1z 3
U ( z ) 1 0.5 z 1 0.06 z 2
17-11
b)
20
18
16
14
12
y
10
2 Difference equation
Simulink
0
0 2 4 6 8 10 12 14 16 18 20
k t
c) The steady state value of y can be found be setting z =1. In doing so,
y =19.29
17.10
1
Gc ( s) 2 1
8s
1 2.25 2 z 1
Gc ( z ) 2 1 1
8(1 z ) (1 z 1 )
17-12
70
60
50
40
b(k)
30
20
10
0
0 5 10 15 20 25 30
k
17.11
Y ( z) 5( z 0.6)
a) 2
U ( z ) z z 0.41
Y ( z) 5 z 1 3z 2
U ( z ) 1 z 1 0.41z 2
17-13
k u(k) u(k-1) u(k-2) y(k)
1 1 1 0 5
2 1 1 1 13.00
3 1 1 1 18.95
4 1 1 1 21.62
5 1 1 1 21.85
6 1 1 1 20.99
7 1 1 1 20.03
8 1 1 1 19.42
9 1 1 1 19.21
10 1 1 1 19.25
11 1 1 1 19.37
12 1 1 1 19.48
13 1 1 1 19.54
14 1 1 1 19.55
15 1 1 1 19.54
16 1 1 1 19.52
17 1 1 1 19.51
18 1 1 1 19.51
19 1 1 1 19.51
25
Difference equation
Simulink
20
15
10
0
0 2 4 6 8 10 12 14 16 18 20
kt
d) The steady state value of y can be found be setting z =1. In doing so,
y =19.51
17-14
17.12
1
a)
1 z 1
7
4
Output
0
0 1 2 3 4 5
Time
1
b)
1 0.7 z 1
0.8
0.6
Output
0.4
0.2
0
0 1 2 3 4 5
Time
1
c)
1 0.7 z 1
3
2.5
2
Output
1.5
0.5
0
0 1 2 3 4 5
Time
17-15
1
d)
(1 0.7 z )(1 0.3z 1 )
1
0.8
0.6
Output
0.4
0.2
0
0 1 2 3 4 5
Time
1 0.5 z 1
e)
(1 0.7 z 1 )(1 0.3z 1 )
0.8
0.6
Output
0.4
0.2
0
0 1 2 3 4 5
Time
1 0.2 z 1
f)
(1 0.6 z 1 )(1 0.3z 1 )
0.8
0.6
0.4
0.2
0
0 1 2 3 4 5
17-16
Conclusions:
17.13
1.6
1.4
1.2
1
Output
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40
Time
The ultimate controller gain for this process is found by trial and error
17-17
8
Output
4
0
0 5 10 15 20 25 30 35 40
Time
17.14
t = 0.01
1.8
1.6
1.4
1.2
Output
0.8
0.6
0.4
0.2
0
0 1 2 3 4 5 6
Time
t = 0.1
17-18
2
1.8
1.6
1.4
1.2
Output 1
0.8
0.6
0.4
0.2
0 5 10 15
Time
t = 0.5
2
1.8
1.6
1.4
1.2
Output
0.8
0.6
0.4
0.2
0
0 5 10 15
Time
Hence
t = 0.01 Kcu = 1202
t = 0.1 Kcu = 122.5
t = 0.5 Kcu = 26.7
17-19
17.15
By using Simulink-MATLAB
Kc = 1
1.4
1.2
0.8
Output
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
time
Kc = 10
1.8
1.6
1.4
1.2
1
Output
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
time
17-20
Kc = 17
2.5
1.5
Output
0.5
-0.5
0 5 10 15 20 25 30 35 40 45 50
time
Kcm = 17
17.16
4
Gm(s) =
0.5s 1
In order to obtain Gp(s), write the mass balance for the tank as
dh
A q1 q 2 q3
dt
Therefore,
17-21
H ( s) 1 1
G p ( s)
Q3 ( s) As 12.6s
By using Simulink-MATLAB,
Kc = -10
1.4
1.2
0.8
y(t)
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
time
Kc = -50
1.8
1.6
1.4
1.2
1
y(t)
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
time
17-22
Kc = -92
3.5
2.5
1.5
y(t)
0.5
-0.5
-1
-1.5
0 5 10 15 20 25 30 35 40 45 50
time
17.17
Y ( s) GcG ( s) 1 (Y / Ysp )
then Gc ( z )
Ysp ( s) 1 GcG (s) G 1 (Y / Ysp )
We want the closed-loop system exhibits a first order plus dead time
response,
e hs (1 A) z N 1
(Y / Ysp ) or (Y / Ysp ) where A = e-t/
s 1 1 Az 1
Moreover,
17-23
e 2 s 0.284z 3
G (s) or G( z)
3s 1 1 0.716z 1
Thus, the resulting digital controller is the Dahlin's controller Eq. 17-66.
(1 A) 1 0.716 z 1
Gc ( z ) (1)
1 Az 1 (1 A) z N 1 0.284
0.632 1 0.716 z 1
Gc ( z ) (2)
1 0.368 z 1 0.632 z 3 0.284
c) From Eq. 2, the denominator of Gc(z) contains a non-zero z-0 term. Hence
the controller is physically realizable.
d) First adjust the process time delay for the zero-order hold by adding t/2
to obtain a time delay of 2 + 0.5 = 2.5 min. Then obtain the continuos PID
controller tuning based on the ITAE (setpoint) tuning relation in Table
12.3 with K = 1, =3, = 2.5. Thus
Using the position form of the PID control law (Eq. 8-26 or 17-55)
1
Gc ( z ) 1.13 1 0.225 1
0.78(1 z 1 )
1 z
17-24
1.4
1.2
0.8
y(t)
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
Time
Figure S17.17. Closed-loop response for a unit step change in set point.
17.18
a)
C2'(s)
G d(s)
B(z)
B(s)
Gm(s)
Gm(s) = 2.5e-s
17-25
1 e s
H(s)=
s
To obtain Gp(s) and Gd(s), write the solute balance for the tank as
dc3
V q1c1 q2 (t )c2 (t ) q3c3 (t )
dt
dc3
V q2 c2 c2 q2 q3 c3
dt
Therefore,
C3 ( z ) 0.05
b) G p ( z)
Q2 ( z ) 1 0.9 z 1
1
(Y / Ysp )
s 1
17.19
17-26
Y HG p ( z ) K mGc ( z )
Ysp 1 HG p Gm ( z )Gc ( z )
Y
Ysp
Gc ( z ) (1)
Y
HG p ( z ) K m HG pGm ( z )
Ysp
Y (1 A) z 1
Ysp d 1 Az 1
Moreover
z 1
HG p ( z )
1 z 1
z 2
HG p Gm ( z )
1 z 1
Km = 1
(1 A) z 1
Gc ( z ) 1 1 Az 1
z z 2 (1 A) z 1
1 z 1 1 z 1 1 Az 1
Rearranging,
(1 A) (1 A) z 1
Gc ( z )
1 Az 1 (1 A) z 2
17-27
=1 A = 0.368
= 0.5 A = 0.135
4.5
3.5
3
y(t)
2.5
1.5
1
0.5
0
0 5 10 15 20 25 30 35 40 45 50
Time
17.20
Y HG( z ) K vGc ( z )
Ysp 1 HG ( z ) K v K m ( z )Gc ( z )
Hence
Y
1 Ysp
Gc ( z )
HG ( z ) K K K Y
v v m
Ysp
2.5 0.453z 1
G(s) or HG ( z ) ( = 0 so N = 0)
10s 1 1 0.819z 1
17-28
Y
Minimal prototype controller implies = 0 (i.e., A 0) . Then, z 1
Ysp
1 0.819z 1 z 1
Gc ( z )
0.453z 1 0.2 (0.2)(0.25) z 1
Simplifying,
z 1 0.819z 2 1 0.819z 1
Gc ( z )
0.091z 1 0.023z 2 0.091 0.023z 1
17.21
(1 a1 z 1 a 2 z 2 )(1 A)
GVE
(b1 b2 )(1 Az 1 ) (1 A)(b1 b2 z 1 ) z N 1
a1 = -1.625
a2 = 0.659
b1 = 0.0182
b2 = 0.0158
Therefore
17-29
Controlled variable y(k):
0.9
0.8
0.7
0.6
y(k)
0.5
0.4
0.3
0.2
0.1
0
0 5 10 15 20 25
k
Figure S17.21a. Controlled variable y(k) for a unit step change in ysp.
4.5
3.5
p(k)
2.5
1.5
0.5
0 5 10 15 20 25
k
Figure S17.21b. Controlled output p(k) for a unit step change in ysp.
17-30
17.22
Dahlin's controller
From Eq. 17-66 with a1 = e-1/10=0.9, N=1, and A=e-1/1 = 0.37, the Dahlin
controller is
(1 0.37) 1 0.9 z 1
GDC ( z )
1 0.37 z 1 (1 0.37) z 2 2(1 0.9)
3.15 2.84z 1 3.15 2.84z 1
1 0.37 z 1 0.63z 2 (1 z 1 )(1 0.63z 1 )
2.5
2
p(t)
1.5
0.5
0
0 5 10 15 20 25 30 35 40 45 50
time
1.4
1.2
0.8
Output
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
time
17-31
Thus, there is no ringing (this is expected for a first-order system) and no
adjustment for ringing is required.
For this controller, adjust the process time delay for the zero-order hold by adding
t/2, and K=2, =10, =1.5 obtain the continuous PID controller tunings from
Table 12.4 as
Using the position form of the PID control law (Eq. 8-25 or 17-55)
1 1
Gc ( z ) 2.42 1 1
0.529(1 z 1 )
12.92 1 z
By using Simulink,
3.5
2.5
2
p(t)
1.5
0.5
-0.5
-1
0 5 10 15 20 25 30 35 40 45 50
time
17-32
1.4
1.2
0.8
Output
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35 40 45 50
Time
17.23
From Eq. 17-66 with a1 = e-1/5=0.819, N=5, and A=e-1/1 = 0.37, the Dahlin
controller is
(1 0.37) 1 0.819z 1
GDC ( z )
1 0.37 z 1 (1 0.37) z 6 1.25(1 0.819)
2.78 2.28z 1
(1 0.37 z 1 0.63z 6 )
17-33
3
2.5
p(k)
1.5
0.5
0 5 10 15 20 25
k
As noted in Fig.S17.23, ringing does not occur. This is expected for a first-order
system.
17.24
Dahlin controller
0.1548 z 1 0.0939 z 2
G( z)
1 0.9744 z 1 0.2231z 2
17-34
Y ( z) 0.632 z 1
Ysp ( z ) 1 0.368 z 1
3
p(k)
-1
0 5 10 15 20 25
k
Vogel-Edgar controller
Y ( z ) (0.393z 1 0.239 z 2 )
Ysp ( z ) 1 0.368 z 1
17-35
2.6
2.4
2.2
1.8
p(k)
1.6
1.4
1.2
0.8
0 5 10 15 20 25
k
17.25
dh1 1
A1 q1 q2 (h1 h2 )
dt R
dh2 1
A2 (h1 h2 )
dt R
1 1
A1sH1( s) Q1( s) Q2 ( s) H1( s) H 2 ( s ) (1)
R R
1 1
A2 sH 2 ( s) H1( s) H 2 ( s) (2)
R R
17-36
From (2)
1
H 2 ( s ) H1( s )
A2 Rs 1
Using Eq. 17-64, with N =0, A=e-t/ and HG(z) = KtKvHGp(z), Dahlin's
controller is
1 (1 A) z 1
GDC ( z )
HG (1 z 1 )
Using z-transforms,
0.202 z 1 0.192 z 2
HG(z)=KtKvHGp(z)=
(1 z 1 )(1 0.9 z 1 )
Then,
(1 z 1 )(1 0.9 z 1 ) (1 A) z 1
GDC ( z )
(0.202 z 1 0.192 z 2 ) (1 z 1 )
(1 A)(1 0.9 z 1 )
0.202 0.192 z 1
(1 A)(1 0.9 z 1 )
b) GDC
0.202 0.192 z 1
By using Simulink-MATLAB,
17-37
0
-0.2
-0.4
-0.6
-0.8
p(k) -1
-1.2
-1.4
-1.6
-1.8
-2
0 5 10 15 20 25 30 35 40 45 50
time
17.26
K (1s 1) P( s )
G f ( s)
2 s 1 E (s)
1 (1 z 1 ) / t 1 1 (1 z 1 ) t (1 t ) 1 z 1
G f ( z) K K K
2 (1 z 1 ) / t 1 2 (1 z 1 ) t (2 t ) 2 z 1
17-38
Then,
b1 b2 z 1 P( z )
G f ( z)
1 a1 z 1 E ( z )
K (1 t ) K 1 2
where b1 , b2 and a1
2 t 2 t 2 t
Therefore,
(1 a1 z 1 ) P( z ) (b1 b2 z 1 ) E ( z )
0.9
0.8
Output
0.7
0.6
0.5
Continuous
Continuosresponse
response
Discrete
Discrete response
response
0.4
0 5 10 15 20 25 30 35 40 45 50
Time
17-39
Chapter 18
18.1
McAvoy has reported the PI controller settings shown in Table S18.1 and the set-
point responses of Fig. S18.1a and S18.1b. When both controllers are in automatic
with Z-N settings, undesirable damped oscillations result due to the control loop
interactions. The multiloop tuning method results in more conservative settings
and more sluggish responses.
1.6
1.4
1.2
1
T17
0.8
0.6
0
0 5 10 15
Time(min)
Figure S18.1a. Set point responses for Exercise 18.1. Analysis for T17
18-1
1.8
1.6
1.4
1.2
T4
0.8
0.6
Single loop tuning
(one loop in manual)
0.4 Single loop tuning
(both loops in automatic)
0.2 Multiloop tuning
0
0 5 10 15
Time(min)
Figure S18.1b. Set point responses for Exercise 18.1. Analysis for T4
18.2
The characteristic equation is found by determining any one of the four transfer
functions Y1(s)/Ysp1(s), Y1(s)/Ysp2(s), Y2(s)/Ysp1(s) and Y2(s)/Ysp2(s), and setting its
denominator equal to zero.
In order to determine, say, Y1(s)/Ysp1(s), set Ysp2 = 0 in Fig 18.3b and use
block diagram algebra to obtain
Simplifying (2),
18-2
C1 ( s) (GC1 GP12 )(1 GC2 GP21 ) GC1 GC2 GP11 GP22
R1 ( s) (1 GC1 GP12 )(1 GC2 GP21 ) GC1 GC2 GP11 GP22
So that the stability of the overall system merely depends on the stability
of the two individual feedback control loops in Fig. 18.3b since the third
loop containing Gp11 and Gp22 is broken.
18.3
Consider the block diagram for the 1-1/2-2 control scheme in Fig.18.3a but
including a sensor and valve transfer function (Gv1,Gv2) ,(Gm1,Gm2) for each output
(y1,y2). The following expressions are easily derived,
E(s)= Ysp(s)-Gm(s)Y(s)
If Eqs. 1 through 3 are solved for the response of the output to variations of set
points, the result is
18-3
Y(s) = Gp(s)Gc(s) Gv(s) [I + Gp(s)Gc(s)Gm(s)]-1 Ysp (s) =
1 1 h22 ( s) h12 ( s )
V-1
h21 ( s) 1 h11 ( s )
The inverse of V, if it exists, is
where = (1+h11(s))(1+h22(s))-h12(s)h21(s)
By accounting for Y(s) = [Gp(s)Gc(s) Gv(s) V-1(s)] Ysp (s), the closed-loop transfer
functions are (see book notation):
T11(s) =
1
h11 (s)(1 h22 (s)) h12 (s)h21 (s)
Gm1 ( s)
h12 ( s )
T12(s) =
Gm 2 ( s)
h21 ( s)
T21(s) =
Gm1 ( s)
T22(s) =
1
h22 (s)(1 h11 (s)) h21 (s)h12 (s)
Gm 2 ( s )
18.4
From Eqs. 6-91 and 6-92 and from physical reasoning, it is evident that although
h is affected by both the manipulated variables, T is affected only by wh and is
18-4
independent of w. Hence, T can be paired only with wh. Thus, the pairing based on
this reasoning for the control scheme is T-wh, h-w.
18.5
2 1.5
10s 1 s 1
Gp s (1)
1.5 2
s 1 10s 1
2.5
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
18-5
Step response of Y 2
6
1-1/2-2 pairing
0
0 10 20 30 40 50 60 70 80 90 100
Time
0.6
0.5
0.4
0.3
0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
Time
18-6
Step response of Y 2
1.4
1-1/2-2 pairing
1.2
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
Time
46 Step response of Y 1
x 10
6
1-1/2-2 pairing
5
-1
-2
0 50 100 150 200 250 300
Time
18-7
46 Step response of Y 2
x 10
1.5
1-1/2-2 pairing
1
0.5
-0.5
-1
-1.5
-2
-2.5
-3
-3.5
0 50 100 150 200 250 300
Time
18.6
X D 0.97 0.93
K11 8 104 min/lb
R S (125 175) lb/min
X D 0.96 0.94
K12 5 103 min/lb
S R (24 20) lb/min
X B 0.06 0.04
K 21 4 104 min/lb
R S (175 125)lb/min
X B 0.04 0.06
K 22 5 10 3 min/ lb
S R ( 24 20)lb / min
18-8
1
2
(5*10 )(4*104 )
3
1
(8*104 )(5*103 )
R S
x D 2 1
x B 1 2
18.7
12.8 18.9
K
6.6 19.4
2 1
Λ
1 2
18-9
18.8
(Th T ) / w (Tc T ) / w
G p11 ( s) , G p12 ( s)
s 1 s 1
1/ AP 1/ AP
G p21 ( s) , G p22 ( s )
s s
Thus K11 Th T , K12
Tc T
w w
and since Gp21, Gp22 contain integrating elements,
1
K 21 lim sGP21 ( s )
s 0 AP
1
K 22 lim sGP22 ( s)
s 0 AP
wh wc
Th T T Tc
T T T Th Tc
h c
T T Th T
h
c
Th Tc Th Tc
b) Assume that 0.5 so that the pairing is T-wh, h-wc. Assume valve gains
to be unity. Then the ideal decoupling control system will be as in Fig.18.9
where Y1T , Y2h , U1wh , U2wc, and using Eqs. 18-78 and 18-80,
18-10
(1/ AP) s
T21 ( s ) 1
(1/ AP) s
[(Tc T ) / w] /(s 1) T T c
T12 ( s )
[(Th T ) / w] /(s 1) Th T
18.9
1.5 0.5
K
2 1.7
1.65 0.65
Λ
0.65 1.65
1.5 0.5
K
3.4 2.9
1.64 0.64
Λ
0.64 1.64
18-11
OPTION C: Controlled variable: T24, T30
Manipulated variables: u1, u2
2 1.7
K
3.4 2.9
290 289
Λ
289 290
18.10
dh1 h
A1 q1 q6 1 K (h1 h2 ) (1)
dt R1
dh2 h
A2 q2 2 K (h1 h2 ) (2)
dt R2
1
A1sH1 ( s) Q1 ( s) Q6 ( s) ( ) H1 ( s) K [ H1 ( s) H 2 ( s)]
2 R1 h1
1
A2 sH 2 ( s) Q2 ( s) ( ) H 2 ( s) K [ H1 ( s) H 2 ( s)]
2 R2 h2
1 1
Let K1 and K 2 , and
2 R1 h1 2 R2 h2
18-12
Solve the above equations simultaneously to get,
[( A1s K1 K )( A2 s K 2 K ) K 2 ]H1 ( s )
(3)
( A2 s K 2 K )[Q1 ( s ) Q6 ( s )] KQ2 ( s )
[( A1s K1 K )( A2 s K 2 K ) K 2 ]H 2 ( s )
(4)
K [Q1 ( s ) Q6 ( s )] ( A1s K1 K )Q2 ( s )
The four steady-state process gains are determined using Eqs. 3 and 4 as
H ' ( s) K2 K
K11 lim 1
s 0 Q ' ( s )
1 K1 K 2 K ( K1 K 2 )
H ' ( s) K
K12 lim 1
s 0 Q ' ( s )
2 K1 K 2 K ( K1 K 2 )
H ' ( s) K
K 21 lim 2
s 0 Q ' ( s )
1 K1 K 2 K ( K1 K 2 )
H ' ( s) K1 K
K 22 lim 2
s 0 Q ' ( s )
2 K1 K 2 K ( K1 K 2 )
1 ( K 2 K )( K1 K )
K 2
K1 K 2 K ( K1 K 2 )
1
( K 2 K )( K1 K )
Thus RGA is
q1 q2
1 ( K1 K )( K 2 K ) K 2 h1
K1 K 2 K ( K1 K 2 ) K 2 ( K1 K )( K 2 K ) h2
q1 q2
h1 2.50 1.50
h2 1.50 2.50
18-13
For the relative gains to be positive, the preferred pairing is h1-q1, h2-q2.
18.11
a) Let
H ( s) Q ( s )
Y ( s)
1
,U ( s) 1 , D( s ) Q6 ( s )
H ( s) Q ( s )
2 2
Then by inspection of Eqs. (3) and (4) in the solution to Exercise 18-10,
1 A2 s K 2 K K
GP ( s) 2
( A1s K1 K )( A2 s K 2 K ) K K A1s K1 K
and
1 A2 s K 2 K
Gd ( s) K
( A1s K1 K )( A2 s K 2 K ) K 2
where A1, A2, K1, K2 are as defined in the solution to Exercise 18.10.
b) The block diagram for h1-q1 / h2-q2 pairing is identical to Fig.18.3a with
the addition of the load. Thus the signal D(s) passes through a block Gd1
whose output is added to the summer with output Y1. Similarly, the
summer leading to Y2 is influenced by the signal D(s) that passes through
block Gd2.
18.12
18-14
F P
20( P0 P1 ) 20u1 1 (3)
u1 u2 u1 u2
and
F
20( P0 P1 ) (4)
u1 P2
F P
30M 2 1 (5)
u1 u2 u1 u2
P
Substituting for 1 from (5) into (3) and simplifying
M 1 M 2
F 20( P0 P1 )
(6)
u1 u2 1
20u1
30u 2
F F
u1 1/ 2 , u2 2/3
20( P0 P1 ) 30( P1 P2 )
Substituting into (7), 11 = 2/3 > 0.5. Hence, the best controller pairing is
F-u1, P1-u2.
18.13
18-15
dh
A q1 q2 q3 (1)
dt
d ( Ahc3 )
c1q1 c2 q2 c3q3 (2)
dt
dC3
Ah (c1 c3 )q1 (c2 c3 )q2 (3)
dt
Ah c1 c3 c2 c3
s 1 C3 ( s) Q1 ( s ) Q2 ( s ) (4)
3
q 3
q q 3
H ( s ) H ( s ) 1
1
As As
Q1 ( s ) Q3 ( s )
G(s)
(c1 c3 ) / q3
C3 ( s ) C3 ( s )
0
Q (s) Ah s 1
1 Q3 ( s ) q
3
0.1415 0.1415
s s
G(s)
0.0075 0
1.06s 1
18-16
0.15 0.15
Gv ( s) (6)
10 0.167 s 1
s 1
60
Thus,
0.0212 0.0212
s(0.167 s 1) s(0.167 s 1)
GP ( s) Gv ( s)G ( s)
0.0011
(1.06s 1)(0.167 s 1) 0
c) For the pairing determined above, Fig.18.9 can be used with Y1 H , Y2
C3 , U1 Q3 , U2 Q1 . Notice that this pairing requires Gp(s) above the
switch columns. Then using Eqs. 18-78 and 18-80,
GP21 ( s ) 0
T21 ( s) 0
GP22 ( s) 0.0011
(1.06s 1)(0.167 s 1)
GP12 ( s) 0.0212 / s(0.167 s 1)
T12 ( s) 1
GP11 ( s) 0.0212 / s(0.167 s 1)
18.14
In this case, an RGA analysis is not needed. The manipulated and controlled
variables are:
Basically, the pairing could be done based on dynamic considerations, so that the
time constants and dead times in the response must be as low as possible.
The level of the interface “I” may be easily controlled with m3 so that any change
in the set-point is controlled by opening or closing the valve in the bottom of the
decanter.
The manipulated variable m1 could be used to control the inflow rate F1. If F1 is
moved away from its set-point, the valve will respond quickly to control this
change.
18-17
The decanter overhead pressure P1 is controlled by manipulating m2. That way,
pressure changes will be quickly treated. This control configuration is also used in
distillation columns.
18.15
3 0.5
K
10 2
Using the formula in Eq.18-34, we obtain 11 = 6
6 5
Λ
5 6
3 1/ 2
K
10 4
0.71 0.29
Λ
0.29 0.71
18-18
Manipulated variables: U2, U3
0.5 1/ 2
K
2 4
0.67 0.33
Λ
0.33 0.67
18.16
q2 q1
MIX
T2 = 140 F T1 = 70 F
q3 T3 = 110 F
q1 + q2 = q3 (1)
18-19
Steady state energy balance:
q1 = 9/7 gpm
q2 = 12/7 gpm
q1
T3 (T1 T2 ) (5)
q1 q 2
T (q q 2 ) q1 (T1 T2 )q 2
K 11 3 (T1 T2 ) 1
q1 q2 (q1 q 2 ) (q1 q 2 )
2 2
T q1
K 12 3 (T1 T2 ) 2
q 2 q1 (q1 q 2 )
RGA analysis:
1 1 q2 q1
11 12 1 11
1 12 21 1 q1 q2 q1 q2 q1
K K
K11 K 22 q2
18-20
q1 q2
q2 q1
T3
q 2 q1 q 2 q1
Λ
q1 q2
q3
q 2 q1 q 2 q1
q1 q2
4 3
T3
7 7
Λ
3 4
q3
7 7
Pairing: T3 - q 2 / q 3 - q 1
18.17
a) Dynamic Model:
Mass Balance:
dh
A (1 f ) w1 w2 w3 (1)
dt
d (hT3 )
C p A C p (1 f ) w1T1 C p w2T2 C p w3T3 UAc (T3 Tc ) (2)
dt
Mixing Point:
w4 w3 fw1 (3)
18-21
C p w4T4 C p w3T3 C p fw1T1 (4)
Control valves:
U C3 X c (5)
b) Degrees of freedom:
Variables: 14
h, w1, w2, w3, w4 ,T1, T2, T3, T4, Tc, xc, x3, f, U
Equations: 6
c) Controlled variables:
T4 G3 and G5
w4 G3 and G5
d) RGA
0 (1 f ) w1 w2 w3 (7)
18-22
C p (1 f ) w1 C p w2T2 C3 xc AcTc
T3 (9)
C3 w3 C3 xc Ac
Rearrange (7)
w3 (1 f ) w1 w2 (10)
C p (1 f ) w1 C p w2T2 C 3 x c Ac Tc
T3 (11)
C 3 (1 f ) w1 C 3 w2 C 3 xc Ac
C p (1 f ) w1 C p w2T2 C3 xc AcTc
+ (1 f ) w1 w2 (13)
C3 (1 f ) w1 C3 w2 C3 xc Ac
Rearrange,
(14)
Rearrange (6),
w3 x3C 2 fw1
h (15)
x3C1
(1 f ) w1 w2 x3C 2 fw1
h (16)
x3C1
fw1T1 E E8 f w2 E 2 f E3 w2 E 4
T4 1 (17)
w1 w2 w1 w2 E5 f E6 w2 E7
18-23
where:
E1 w1 E 2 C p w1 E3 C p T2
E 4 C3 X c ATc C p w1 E 5 C 3 w1 (18)
E6 C3 E7 C3 X c A C3 w1 E8 w1
fw1T1
T4
w1 w2
F1
E8 E 2 f 2 ( E3 E8 E 2 ) fw2 ( E1 E3 E 4 ) w2 ( E1 E 2 E8 E 4 ) f E1 E 4
E w ( w E E ) w2 w1 E5 f E5 w2 f E7 w1
2
621 6 7
F2
(19)
Thus
T4 w1T1 2 E E f ( E3 E8 E 2 ) w2 E1 E 2 E8 E 4
K11 B 2
f w1 w2 [ F2 ]
( F )w E E w
1 1 52 5 2 (20)
F2
Similarly
T4
K 12
f
From (16)
h x C w w1
K 21 3 2 1
f x3C1
h 1
K 22
w2 x3 C1
Then
18-24
1
1
where
1
K12 K 21
1
K11 K 22
18.18
F F
K11 1 K12 1
F1 F2 F2 F1
w 0.4 F2 w 0.4 F 0.4 F2
K 21 0.025 K 22 0.025
F1 F2 F2 F2 F1 F2
(b) RGA:
1 1 F1 F F2
11
K K
1 12 21 1 0.4 F2 / F 2
F1 F2 F
K11 K 22 0.4F 0.4 F2 / F 2
18-25
F F2 F2
F F
F2 F F2
F F
(c)
1 1
11 0.5
K12 K 21 1 0.025 / 0.025
1
K11 K 22
0.5 0.5
Thus,the RGA array becomes: , in this case, either pairing is
0.5 0.5
recommended.
18.19
a)
i) Static considerations:
The some pairing results in the smallest time constants for tank 1.
It is also dynamically best for tank 2 because it avoids the large /
ratio of 0.8.
18-26
0.42 0.41
K
0.32 0.32
1
11 0.506
(0.41)(0.32)
1
(0.42)(0.32)
Thus
0.506 0.494
Λ
0.494 0.506
18.20
Overall: wF – E wS – wP 0 (1)
Solute: wFxF - wPxP 0 (2)
From (1):
wF = wS E + wP
From (2):
xF x
xP wF F ( ws E wP ) (3)
wP wP
18-27
wF ws E wP
Linearizing (3):
x P x P
xP xP ( wP ) ( ws )
wP wP , ws
ws wP , ws
x F Ews x E
x P 2
wP F ws
w (5)
wP P
w P ws
x F Ew s xF E
x P
w 2
P wP
w F 1 E
1 Ews
11 = 22
wP Ews wp
1
Ews
wp
12 21 1 11
Ews wp
So the RGA is
Ews wP
Ew w Ews wp
s p
Λ
wP Ews
Ews wp Ews wp
18-28
18.21
0.04 0.0005
K
0.22 0.02
1.16 0.16
Λ
0.16 1.16
18.22
For higher-dimension process (n>2) the RGA can be calculated from the
expression
By using MATLAB,
18-29
210.34 211.18 1.89
Λ 390.95 406.58 14.642
181.60 194.39 13.80
This RGA analysis shows the control difficulties for this process because of the
control loop interactions. For instance, if the pairings are 1-3, 2-2, 3-1, the third
loop will experience difficulties in closed-loop operation. But other options not be
better.
SVA analysis:
Determinant of K = K = 0.0034
The condition number = CN = 1845
Since the determinant is small, the required adjustments in U will be very large,
resulting in excessive control actions. In addition, this example shows the K
matrix is poorly conditioned and very sensitive to small variations in its elements.
18.23
Determinant of K = K = -6.76
The condition number = CN = 542.93
The large condition number indicates poor conditioning. Therefore this process
will require large changes in the manipulated variables in order to influence the
controlled variables. Some outputs or inputs should be eliminated to achieve
better control, and singular value decomposition (SVD) can be used to select the
variables to be eliminated.
21.3682
6.9480
=
1.1576
0.0394
18-30
Note that 3/4 > 10, then the last singular value can be neglected. If we eliminate
one input and one output variable, there are sixteen possible pairing shown in
Table S18.23, along with the condition number CN.
18-31
18.24
1-2/2-1 controller pairing has a larger stability region compared with 1-1/2-2.
RGA:
1 1
11 2.28
K12 K 21 1.5 1.5
1 1
K11 K 22 2 2
2.28 1.28
1.28 2.28
Based on RGA, controller pairing should be 1-1/2-2 to avoid negative values.
Stability analysis is based on dynamic effects and employs the numerical region
of controller gain to get a stable closed-loop response. RGA is based on static
process gain (Kij) analysis, which only show the open loop steady state behavior.
For this problem, 1-2/2-1 pairing has a larger stability region, which means choice
of Kc1 and Kc2 has a larger margin with guaranteed stability. However, around the
steady state, the negative RGA indicates control loop “fighting”, which may be
vulnerable to process noise. Thus, 1-2/2-1 pairing should be avoided in this case.
18-32
Chapter 19
19.1
Let three initial points in [0,1] be 0.25, 0.5 and 0.75. Calculate x4 using Eq. 19-
8,.
x1 f1 x2 f2 x3 f3 x4
0.25 8.02 0.5 6.52 0.75 3.98 0.0167
For next iteration, select x4, and x1 and x2 since f1 and f2 are the largest among f1,
f2, f3. Thus successive iterations are
x1 f1 x2 f2 x3 f3 x4
0.25 8.02 0.5 6.52 0.017 1.24 0.334
0.25 8.02 0.5 6.52 0.334 7.92 0.271
0.25 8.02 0.334 7.92 0.271 8.06 0.280
0.25 8.02 0.271 8.06 0.280 8.06 not needed
19.2
As shown in the drawing, there is both a minimum and maximum value of the
air/fuel ratio such that the thermal efficiency is non- zero. If the ratio is too low,
there will not be sufficient air to sustain combustion. On the other hand, problems
in combustion will appear when too much air is used.
19-1
19.3
X1 X2
Initial values 1 1
Final values 0.776344 0.669679
max Y= 0.55419
Constraints
0 X1 2
0 X2 2
19.4
NP = 300,000 (1)
$ 0.4 hr $ batch
min TC = 400,000 +2P 50 N
batch batch hr yr
$
+ 800 P0.7
yr
19-2
b) There are three constraints on P
i) P0
ii) N is integer. That is,
(300,000/P) = 0, 1, 2,…
hr batch
(2 P0.4 + 14) N 7680
batch yr
d (TC )
c) 0 3 107 (0.6) P 1.6 800(0.7) P 0.3
dP
1/1.3
3 107 (0.6) lb
P opt
2931
800(0.7) batch
d 2 (TC )
2
3 107 (0.6)(1.6) P 2.6 800(0.7)( 0.3) P 1.3
dP
2
d (TC )
2
2.26 102 0 hence minimum
dP P Popt
Time constraint is
19-3
19.5
Subject to constraints
By using Excel-Solver,
x1 x2
Initial values 1 1
Final values 0 14634.15
max P = 29268.3
Constraints
0.70 x1 + 0.31 x2 6000
0.06 x1 + 0.09 x2 1317
0.24 x1 + 0.60 x2 7317
19-4
19.6
*Balance on column 2
x2 = x4 + x5 (2)
* From column 1,
1.0
x1 = x2 1.667( x4 x5 ) (3)
0.60
0.4
x3 = x2 0.667( x4 x5 ) (4)
0.60
x4 200 (5)
x4 400 (6)
x1 2000 (7)
x4 0 x5 0 (8)
x4 x4
0.5 0.7 or 0.5 0.7
x2 x4 x5
Simplifying,
x4 –x5 0 (9)
0.3 x4 –0.7x5 0 (10)
No additional constraint is needed for the heavy solvent. That the heavy solvent
will be 30 to 50% of the bottoms is ensured by the restriction on the medium
solvent and the overall balance on column 2.
19-5
By using Excel-Solver,
x1 x2 x3 x4 x5
Initial values 1 1 1 1 1
Final values 1333.6 800 533.6 400 400
max R = 13068.8
Constraints
x2 - x4 - x5 0
x1 - 1.667x2 7.467E-10
x3 - 0.667x2 -1.402E-10
x4 400
x4 400
x1 - 1.667x2 1333.6
x4 - x5 0
0.3x4 - 0.7x5 -160
Substituting into (5), the maximum revenue is 13,068 $/day, and the
percentage of output streams in column 2 is 50 % for each stream.
19.7
The objective is to minimize the sum of the squares of the errors for the material
balance, that is,
min E = (wA + 11.3 – 92.1)2 + (wA +10.9 –94.2)2 + (wA + 11.6 –93.6)2
Subject to wA 0
Solve analytically,
dE
0 2 (wA + 11.3 – 92.1) + 2(wA +10.9 –94.2)
dwA
+2(wA + 11.6 –93.6)
19-6
Check for minimum,
d 2E
2
2 2 2 6 0 , hence minimum
dwA
19.8
function dx = reactor(t,x)
dx = zeros(2,1); % A column vector
dx(1) = -k1*x(1);
dx(2) = k1*x(1)-k2*x(2);
end
end
19-7
19.9
By using Excel-Solver:
Initial values 1 0
Final values 2.907801325 1.992609
19.10
Subject to
x1 + x2 + x3 = 10,000 (2)
19-8
x1 2000 (4)
x1 9000 (5)
x2 0 (6)
x3 0 (7)
x1 x2 x3
Initial values 1 0 0
Final values 2000 7333.333 666.6666667
Objective function 3533.333333
Constraints
x1+x2+x3 10000 = 10000
0.03x1+0.06x2 500 = 500
x1 2000 >= 2000
x1 2000 <= 9000
x2 7333.333333 >= 0
x3 666.6666667 >= 0
We obtain: suds = 2000 gallons; premium = 7333.3 gallons; water= 666.7 gallons,
with the minimum cost of $3533.3.
19.11
Subject to
19-9
xA xB
Initial values 1 1
Final values 20 60
max P = 1040
Constraints
120xA+ 100xB 8400
0.5 xA + 0.5 xB 40
(1/20)xA + (1/10)xB 7
19.12
PID controller parameters are usually obtained by using either process model,
process data or computer simulation. These parameters are kept constant in many
cases, but when operating conditions vary, supervisory control could involve the
optimization of these tuning parameters. For instance, using process data, Kc ,I
and D can be automatically calculated so that they maximize profits. Overall
analysis of the process is needed in order to achieve this type of optimum control.
19.13
max f = D e
Subject to
0.063 c –D e = 0 (1)
0.9 s e – 0.9 s c – 0.7 c – D c = 0 (2)
19-10
-0.9 s e + 0.9 s c + 10D – D s = 0 (3)
D, e, s, c 0
where f = f(D, e, c, s)
c D e s
Initial values 1 1 1 1
Final values 0.479031 0.045063 0.669707 2.079784
max f = 0.030179
Constraints
0.063 c –D e 2.08E-09
0.9 s e – 0.9 s c – 0.7 c – Dc -3.1E-07
-0.9 s e + 0.9 s c + 10D – Ds 2.88E-07
19.14
Material balance:
Overall : FA + FB = F
Subject to:
FB 200
CA, CB, FB 0
19-11
By using Excel- Solver, the optimum values are
FB = 200 l/hr
19.15
Material balance:
Overall : FA + FB = F
Subject to:
FB 200
300 T 500
CA, CB, FB 0
FB = 200 l/hr
CA = 0.104 molA/l
T = 311.3 K
19-12
Chapter 20
20.1
3e −2 s 1 −2 s 1 45 20
Y ( s ) = G p ( s )U ( s ) = = 3e − +
(15s + 1)(10 s + 1) s s 15s + 1 10 s + 1
Therefore,
For ∆t = 1,
20.2
Ym ( s ) 4(1 − 3s )
= G= ( s) (1)
P( s) (15s + 1)(5s + 1)
1 4(1 − 3s )
Ym ( s ) =
s (15s + 1)(5s + 1)
20 - 1
Partial Fraction Expansion:
A B C 1 4(1 − 3s )
Ym ( s ) = + + = (2)
s (15s + 1) (5s + 1) s (15s + 1)(5s + 1)
where:
4(1 − 3s )
=A = 4
(15s + 1)(5s + 1) s =0
4(1 − 3s )
B= = −108
s (5s + 1) s = − 1
15
4(1 − 3s )
=C = 16
s (15s + 1) s = − 1
5
36 16
4 − e − t99 /15 + e − t99 /5
3.96 = (4)
5 5
20 - 2
20.3
From the definition of matrix S, given in Eq. 20-28, for P=5, M=1, with Si
obtained from Exercise 20.1,
S1 0
S 0.01811
2
S = S 3 = 0.06572
S 4 0.1344
S 5 0.2174
Kc = (STS)-1ST
Because Kc1T is defined as the first row of Kc, Using the given analytical
result,
Kc1T = 5
1
[S1 S 2 S 3 S 4 S 5 ]
∑ (S i )
2
i =1
Kc1T =
1
[0 0.01811 0.06572 0.1344 0.2174]
0.06995
which is the same as the answer that was obtained above using (20-65).
20.4
The step response is obtained from the analytical unit step response as in
Example 20.1. The feedback matrix Kc is obtained using Eq. 20-65 as in
Example 20.5. These results are not reported here for sake of brevity. The
closed-loop response for set-point and disturbance changes are shown
below for each case. The MATLAB MPC Toolbox was used for the
simulations.
20 - 3
i) For this model horizon, the step response is over 99% complete as in
Example 20.5; hence the model is good. The set-point and disturbance
responses shown below are non-oscillatory and have long settling times
Outputs
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
2
1.5
u 1
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
Outputs
0.8
0.6
y 0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
0
-0.5
-1
-1.5
0 10 20 30 40 50 60 70 80 90 100
Time
20 - 4
ii) The set-point response shown below exhibits same overshoot, smaller
settling time and undesirable "ringing" in u compared to part i). The
disturbance response shows a smaller peak value, a lack of oscillations,
and faster settling of the manipulated input.
Outputs
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
15
10
5
u
0
-5
-10
0 10 20 30 40 50 60 70 80 90 100
Time
Outputs
0.4
0.3
y 0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
0
-0.5
-1
-1.5
0 10 20 30 40 50 60 70 80 90 100
Time
20 - 5
iii) The set-point and disturbance responses shown below show the same
trends as in part i).
Outputs
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
10
u 0
-5
-10
0 10 20 30 40 50 60 70 80 90 100
Time
Outputs
0.4
0.3
y 0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
0
-0.5
-1
-1.5
0 10 20 30 40 50 60 70 80 90 100
Time
20 - 6
iv) The set-point and load responses shown below exhibit the same trends as
in parts (i) and (ii). In comparison to part (iii), this controller has a larger
penalty on the manipulated input and, as a result, leads to smaller and less
oscillatory input effort at the expense of larger overshoot and settling time
for the controlled variable.
Outputs
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
4
2
u
1
-1
0 10 20 30 40 50 60 70 80 90 100
Time
Outputs
0.5
0.4
0.3
y
0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
0
-0.5
-1
-1.5
0 10 20 30 40 50 60 70 80 90 100
Time
20 - 7
20.5
There are many sets of values of M, P and R that satisfy the given
constraint for a unit load change. One such set is M=3, P=10, R=0.01 as
shown in Exercise 20.4(iii). Another set is M=3, P=10, R=0.1 as shown in
Exercise 20.4(iv). A third set of values is M=1, P=5, R=0 as shown in
Exercise 20.4(i).
20.6
Outputs
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
15
10
5
u
0
-5
-10
0 10 20 30 40 50 60 70 80 90 100
Time
20 - 8
Outputs
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
15
10
5
u
0
-5
-10
0 10 20 30 40 50 60 70 80 90 100
Time
Outputs
0.4
0.3
y 0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
0
-0.5
-1
-1.5
0 10 20 30 40 50 60 70 80 90 100
Time
20 - 9
Outputs
0.4
0.3
y 0.2
0.1
0
0 10 20 30 40 50 60 70 80 90 100
Time
Manipulated Variables
0
-0.5
-1
-1.5
0 10 20 30 40 50 60 70 80 90 100
Time
20.7
The unconstrained MPC control law has the controller gain matrix:
Kc = (STQS+R)-1STQ
Kc = (STQS+R)-1STQ
∑S +1
2
i
i =1
20 - 10
20.8
2
XD
1.5 XB
1
y(t)
0.5
-0.5
0 20 40 60 80 100 120 140
Time (min)
0.2
R
S
0.1
u(t) 0
-0.1
-0.2
0 20 40 60 80 100 120 140
Time (min)
2
XD
1.5 XB
1
y(t)
0.5
-0.5
0 20 40 60 80 100 120 140
Time (min)
0.2
R
S
0.1
u(t) 0
-0.1
-0.2
0 20 40 60 80 100 120 140
Time (min)
20 - 11
b) R=0.1I .vs R=I
2
XD
1.5 XB
1
y(t)
0.5
-0.5
0 20 40 60 80 100 120 140
Time (min)
0.2
R
S
0.1
u(t) 0
-0.1
-0.2
0 20 40 60 80 100 120 140
Time (min)
2
XD
1.5 XB
1
y(t)
0.5
-0.5
0 20 40 60 80 100 120 140
Time (min)
0.2
R
S
0.1
u(t) 0
-0.1
-0.2
0 20 40 60 80 100 120 140
Time (min)
Notice that the larger control horizon M and the smaller input weighting
R, the more control effort is needed.
20 - 12
20.9
e −6 s 1
y (t ) = L-1
1
= L-1 e −6 s −
10
= S (t − 6) 1 − e [
− ( t − 6 ) / 10
]
10 s + 1 s s 10 s + 1
The coefficients {S i } are obtained from the expression for y(t) and the
predictive controller is obtained following the procedure of Example 20.5.
The closed-loop responses for a unit set-point change are shown below for
the three sets of controller design parameters.
20.10
Note: These results were generated using the PCM Furnace Module, MPC option
20 - 13
Figure S20.10a. CO2 Set-point change from 0.922 to 1.0143 for P=20, M=1, and
Q = diag [0.1, 1]. The two series represent R = diag [0.1, 0.1] and R = diag
[0.5, 0.5].
20 - 14
d) Step disturbance in hydrocarbon flow rate
Figure S20.10b. The two series represent R = diag [0.1, 0.1] and R = diag [0.5,
0.5].
20.11
We repeat 20.10 for R [0.1 0.1], Q = [0.1 1] and (a) M=1 and (b) M=4
First we evaluate the controller response to a step change in the oxygen concentration setpoint
from 0.922 to 1.0143.
20 - 15
Figure S20.11a. Step change in oxygen concentration setpoint for P=20, Q =
diag [0.1, 1], R = diag [0.1, 0.1], and M=1 or M=4.
Next we test a step change in the hydrocarbon flow rate from 0.035m3/min to 0.038m3/min.
20 - 16
Figure S20.11b. Step change in fuel gas flow rate for P=20, Q = diag [0.1, 1], R
= diag [0.1, 0.1], and M=1 or M=4.
20.12
Note: These results were generated using the PCM Distillation Column Module,
MPC option
For parts (a) and (b), the step response for the models were generated in the
workspace. Then the PCM distillation column module was opened. The controller
parameters were entered into the MPC controller as specified in parts (a) and (b).
Then, the tests described in parts (c)-(e) were carried out for each controller. The
results are shown below.
20 - 17
Figure S20.12a. Step change in xD setpoint from 0.85 to 0.8 for Q=diag [0.1
0.1] and Q=diag [0.5 0.5].
20 - 18
(d) Step change in xB setpoint from 0.15 to 0.20
Figure S20.12b. Step change in xB setpoint from 0.15 to 0.2 for Q=diag [0.1
0.1] and Q=diag [0.5 0.5].
20 - 19
(e) Step change in column feed flow rate from 0.025 to 0.03
Figure S20.12a. Step change in column feed flow rate from 0.025 to 0.03 for
Q=diag [0.1 0.1] and Q=diag [0.5 0.5].
20.13
We repeat problem 20.12, but this time we look at the case where R = [0.1 1], Q = [0.1 0.1], and
M=1 or M=5. The same three tests are repeated from 20.12.
20 - 20
Figure S20.13a. Step change in xD setpoint from 0.85 to 0.8 for M=1 and M=5.
20 - 21
(d) Step change in xB setpoint from 0.15 to 0.20
Figure S20.13b. Step change in xB setpoint from 0.15 to 0.2 for M=1 and M=5.
20 - 22
(e) Step change in column feed flow rate from 0.025 to 0.03
Figure S20.13c. Step change in column feed flow rate from 0.025 to 0.03 for
M=1 and M=5.
20 - 23
Chapter 21 ©
21.1
No. It is desirable that the minimum value of the output signal be greater
than zero, in order to readily detect instrument failures. Thus, for a
conventional electronic instrument, an output signal of 0 mA indicates that
a malfunction has occurred such as a power failure. If the instrument range
were 0-20 mA, instead of 4-20 mA, the output signal could be zero during
normal operation. Thus, instrument failures would be more difficult to
detect.
21.2
The difference between a measurement of 6.0 and the sample mean, 5.75,
is 0.25 pH units. Because the standard deviation is s = 0.05 pH units, this
measurement is five standard deviations from the mean. If the pH
measurement is normally distributed (an assumption), then Fig. 21.7
indicates that the probability that the measurement is less than or equal to
five standard deviations from the mean is 0.99999943. Thus, the probability
p of a measurement being greater than five standard deviations from the
mean is only p =1 - 0.99999943 = 5.7x10-7. Consequently, the probability
that a measurement will be larger than five standard deviations from the
mean is half of this value, p/2, or 2.85x10-7. A very small value!
21.3
21.4
21.5
A plot of the data in Figure S21.5 does not indicate any abnormal
behavior.
0.85
0.84
0.83
0.82
Impurity 0.81
(%)
0.8
0.79
0.78
0 2 4 6 8 10
Sample Number
Figure S21.5. Impurity data for Exercise 21.5.
The following statistics and chart limits can be calculated from the data:
UCL = T + 3 = 0.8 + 3(0.021) = 0.863 %
LCL = T - 3 = 0.8 - 3(0.021) = 0.737 %
21-2
Figure S21.5 indicates that all eight data points are within the Shewhart
chart limits.
A standard CUSUM chart (k=0.5, h=5) also does not exhibit any chart
violations since the CUSUM chart limit is h = 5and neither C+ or
C- calculated from Eq. 21-21 and 21-22 exceed this limit. The CUSUM
calculations are shown in Table S21.5.
21.6
(a) The Shewhart chart for the rainfall data is shown in Fig. S21.6a. The
following items were calculated from the data for 1870-1919:
The rainfall exceeded a chart limit for only one year, 1941.
21-3
50
UCL
40
Rainfall 30
(in)
20
10
0
LCL
-10
1860 1880 1900 1920 1940 1960 1980 2000
Year
Figure S21.6a. Shewhart chart for rainfall data.
(b) The control chart for the standard deviation of the subgroup data (for each
decade) is shown in Fig. S21.6b. The following items were calculated for
the sub-group data prior to 1940:
s = 6.87 in.
UCL = B4 s = (1.716)(6.87 in) = 11.8 in.
LCL = B3 s = (0.284)(6.87 in) = 1.95 in.
The sub-group data does not violate the chart limits for 1940-1990.
12 UCL
10
Standard deviation (in)
2
LCL
0
1940 1950 1960 1970 1980 1990
Year (end of decade)
21-4
21.7
The CUSUM and EWMA control charts for the period 1900-1960 are
shown in Figure S21.7. The Shewhart chart and the data are also shown in
the top portion, for the sake of comparison. The following statistics and
chart limits were calculated from the data for 1900 through 1929:
The rainfall exceeded a Shewhart chart limit for only one year, 1941 the
wettest year in the dataset. The CUSUM chart has both high (C+) and low
(C-) chart violations during the initial period, 1900-1929. Two subsequent
low limit violations occurred after 1930. After each CUSUM violation, the
corresponding sum was reset to zero. No chart violations occur for the
EWMA chart and the entire dataset.
The CUSUM chart indicate that the period from 1930 to 1950 had two dry
spells while the Shewhart chart identifies one wet spell. The rainfall during
the 1950s was quite normal.
21-5
UCL
40
Rainfall (in)
20
LCL
0
+
C C
20
10
0
1900 1910 1920 1930 1940 1950 1960
30
25 UCL
EWMA
20
15
LCL
10
1900 1910 1920 1930 1940 1950 1960
Year
Fig. S21.7. Control charts for Rainfall Data.
21.8
21.9
The control charts in Fig. S21.9 do not exhibit any control chart violations.
Thus, the process performance is considered to be normal. The CUSUM
chart was designed using the default values of K = 0.5σˆ = 0.5s and
H = 5σˆ = 5s where s is the sample standard deviation. The EWMA chart
was designed using =0.25.
21-6
40
BOD (mg/L)
UCL
20
LCL
0
0 5 10 15 20 25 30
30
UCL
CUSUM
20
10 C+ C-
0
0 5 10 15 20 25 30
30 UCL
EWMA
20
LCL
10
0 5 10 15 20 25 30
Sample Number
Figure S21.9. Control charts for the BOD data of Example 21.5.
21.10
By definition,
USL LSL
Cp (21 25)
6
35 5
Cp 0.924
6 (5.41)
21-7
Capability index Cpk is defined as:
min [ x LSL, USL x ]
C pk (21 26)
3
The sample mean for the BOD data is x = 20.6 mg/L. Substituting
numerical values into (21-26) gives:
min [20.6 5, 35 20.6]
C pk 0.887
3(5.41)
Because both capability indices are less than one, the product specifications
are not being met and process is considered to be performing poorly.
21.11
By definition,
USL LSL
Cp (21 25)
6
1600 1200
Cp 1.18
6 (56.3)
The sample mean for the solids data is x = 1413 mg/L. Substituting
numerical values into (21-26) gives:
Because both capability indices are well below the acceptable value of 1.5,
the process is considered to be performing poorly.
21-8
21.12
The new data are plotted on a T2 chart in Fig. S21.12. A chart violation
occurs for the second data point. Because one of the six measurements
is beyond the chart limit, it appears that the process behavior could be
abnormal. However, this measurement may be an “outlier” and thus
further investigation is advisable. Also, additional data should be
collected before concluding that the process operation is abnormal.
Note that the previous control chart limit of 11.63 from Example 21.6
is also used in this exercise.
14
13
12 UCL
11
10
T2
9
8
7
6
5
0 1 2 3 4 5 6
Sample Number
21-9
Chapter 22
22.1
Safety Issues:
o Door switch is always OFF before the microwave generator is turned ON.
o Fan always ON when microwave generator is ON.
22.2
Input Variables:
ON
STOP
EMERGENCY
Output Variables:
START (1)
STOP (0)
22-1
Truth Table
The truth state table is used to find the logic law that relates inputs with
outputs:
ON STOP EMERGENCY
Finally the binary logic and ladder logic diagrams are given in Figure
S22.2:
ON
STOP
EMERGENCY
22-2
Start
CR1
CR1
Stop
CR2
CR2
CR3
TH
CR3
Figure S22.2.
22.3
A B Y
0 0 1
1 0 1
0 1 0
1 1 1
From the truth table it is possible to find the logic operation that gives the
desired result,
A B
A
Y
B
Figure S22.3.
22-3
22.4
START
Inlet valve
open
Outlet valve
close
No
Stop
L>LH
Stirrer ON
Yes
Yes Stop No
T=Tsetpoint
Inlet valve
closed
Outlet valve
open
Stirrer OFF
Inlet valve
closed
Outlet valve Yes Stop No
open
Stirrer OFF
L<LL
22-4
Ladder Logic Diagram
Start
CR1
LH Tsetpoint
CR1
CR2 CR2
Stop
M1 M2
LH LL Tsetpoint
22-5
1 Fill the tank
Liquid Level = LH
2 Heat liquid
Temperature = Tsetpoint
3 Empty tank
Liquid Level = LL
Figure S22.4.
22-6
22.5
START
Open V1
No
P1 ON
L=L1 No L=L0
Heat ON
Close V1
P1 OFF
No
Temperature>TH
Heat OFF
Open V2
P2 ON
No
L=L0
Close V2
P2 OFF
22-7
Ladder Logic Diagram:
Start
CR2 CR1
L1
CR1
CR3
TH L0
CR3
CR4 CR2
TH L0
CR4
1 Initial Step
Fill
V1
1
Fill
Heat Q V1
2
1 L1
Temp TH Full
4 V1
L0
Figure S22.5.
22-8
22.6
START
L<L1
L<L3
No
Open V1
No No No
Open V2
L<L2 L<L4
Close V1 Close V2
Open W 1 Open W 2
No No
L<L1 L<L3
Close W 1 Close W 2
22-9
Sequential Function Chart:
Fill Fill
Q V1
2 2
L2 L4
1 Open W1 2 Open W2
L1 L3
Valve 1
Start
CR1 CR3 CR1
L1 L3 Valve 2
CR2
W1
CR3 W4
CR4
L1
CR5
L3
CR6
Figure S22.6.
22-10
22.7
Information Diagram:
No
START
LS2
Start M
No
LS1 P=Ps Yes Close V2
No
No
LS3 LS1
Stop M
Close V2
Close V3
Open V4
No
LS2
22-11
Ladder Logic Diagram:
Start
CR3 CR1
LS2
CR1
CR2
LS2 LS1
CR2
CR3
LS3 LS2
CR3
CR3 CR5
LS2 Ps LS1
CR5
Init Open V1
LS2
Mix Start M
P = PS
pH
Open V2
1
L = LS3 P = PS
Close V2
Full Drain Close V2
Open V3
LS1
Reduce Open V4
Stop
Level Stop M
Close V3
LS2
Figure S22.7.
22-12
22.8
The discrete steps necessary to carry out this operation could be:
.- Turn on pump 1
.- Empty the tank car by using the pump and transfer the chemical
to the storage tank (assume the storage tank has larger capacity
than the tank car)
.- Close tank car valve (to prevent backup from storage tank)
.- Close the storage tank exit valve and turn off pump 2.
Safety concerns:
22-13
.- Chemical leak testing, detection, and emergency shut-down
Pressure, level, flow and temperature control could be utilized in all units. Hence,
they must be equipped with instrumentation to monitor these variables. For
instance, tank levels can be measured accurately with a float-type device, and
storage temperatures could be maintained with external heating pads operated by
steam or electricity. It is possible for a leak to develop between the tank car and
storage tank, which could cause high flow rates, so a flow rate upper limit may be
desirable.
Valves and piping should have standard connections. Enough valves are required
to control flow under normal and emergency conditions. Centrifugal pumps are
often preferred for most hazardous chemicals. In any case, the material of
construction must take into account product chemical properties.
Don't forget that batch process control often requires a considerable amount of
logic and sequencing for their operation. Besides, interlocks and overrides are
usually considered to analyze and treat possible failure modes.
22.9
1.- Because there is no steady state for a batch reactor, a new linearization
point is selected at t = 0. Then,
22-14
BTU
C 0.843 V 1336 ft 3
lb o F
lb ft 3
52 3 q 26
ft min
kJ mol
( H ) 500 C Ai 0.8 3
mol ft
Ti 150o F Ts 25o C
kJ
UA 142.03
min o F
Problem solution:
A stirred batch reactor has the following material and energy balance
equations:
dC A
kC A (1)
dt
dT
( H ) kVC A UA(Ts T ) V C (2)
dt
where k k 0 e E / RT
E
( H )V k *C A* k *C A C A* k 0 e E / RT T
*
*2
RT
dT
UA(Ts T ) V C (4)
dt
22-15
dC A
b11C A b12T (5)
dt
dT
b21C A b22T b23Ts (6)
dt
where
* E
b12 k 0 e E / RT C A
*
*2
0.586
RT
( H ) k 0 e E / RT
*
b21 155.30
C
1 E UA
( H ) k 0 e E / RT C A*
*
b22 6.66
C RT
*2
VC
UA
b23 2.43 10 3
VC
a12 8.35 10 4
a 21 155 .27
a 22 0.0159
b2 2.43 10 3
Hence the transfer functions relating the steam jacket temperature T s(s )
and the tank outlet concentration C A (s ) are:
22-16
Continuous reactor:
C A ( s ) 2.03 10 6 5.86 10 6
Ts( s ) s 2 13.651s 0.3464 2.887 s 2 39.4 s 1
Batch reactor:
C A ( s ) 1.424 10 3 5.47 10 3
2
Ts( s ) s 6.931s 0.26 3.84 s 2 26.65 s 1
As noted in transfer functions above, the time constant for the batch is
smaller than the time constant for the continuous reactor, but the gain is
much larger.
22.10
dx 1
k 1 x1 (1)
dt
dx 2
k1 x1 k 2 x 2 (2)
dt
22-17
b) Cubic temperature profile: the values of the parameters in T=a0 +
a1t + a2t2 + a3t3 that maximize x2(8) are:
a0 = 372.78
a1 = -10.44 and x2max = 0.3699
a2 = 2.0217
a3 = -0.1316
370
365
T(K)
360
Isothermal operation
355
350
0 1 2 3 4 5 6 7 8
time
function dx_dt=batchreactor(time_row,x)
global Temp
dx_dt(1,1)=-1.335e10*x(1)*exp(-75000/8.31/Temp);
dx_dt(2,1)=1.335e10*x(1)*exp(-75000/8.31/Temp) -
1.149e17*x(2)*exp(-125000/8.31/Temp);
2.- Define a function called conversion that gives the final value of x2 (given a
value of the temperature)
function x2=conversion(T)
global Temp
Temp=T;
x_0=[0.7,0];
[time_row, x] = ode45('batchreactor', [0 8], x_0 );
x2=-(x(length(x),2));
22-18
[T,negative_x2max]=fminsearch('conversion', To)
function dx_dt=batchreactor2(time_row,x)
global a0 a1 a2 a3
Temp=a0+a1*time_row+a2*time_row^2+a3*time_row^3;
dx_dt(1,1)=-1.335e10*x(1)*exp(-75000/8.31/Temp);
dx_dt(2,1)=1.335e10*x(1)*exp(-75000/8.31/Temp) -
1.149e17*x(2)*exp(-125000/8.31/Temp);
2.- Define a function called conversion2 that gives the final value of x2 (given
the values of the temperature coefficients)
function x2b=conversion(a)
global a0 a1 a2 a3
a0=a(1);a1=a(2);a2=a(3);a3=a(4);x_0=[0.7,0];
[time_row, x] = ode45('batchreactor2', [0 8], x_0 );
x2b=-x(length(x),2);
3.- Find the optimum temperature profile by using the command fminserach
[T,negative_x2max]=fminsearch('conversion2', ao)
where ao is the vector of initial values to find the optimum temperature profile.
22.11
The intention is to run the reactor at the maximum feed rate of the gas to
minimize the time cycle, but the reactor is also cooling-limited. Therefore,
if the pressure controller calls for a gas flow that exceeds the cooling
capability of the reactor, the temperature will start to rise. The reaction
temperature is not critical, but it must not exceed some maximum
temperature. The temperature controller will then take over control of the
feed valve and reduce the feed rate. The output of the selector sets the
setpoint of a flow controller. The flow controller minimizes the effects of
supply pressure changes on the gas flow rate. So this is a cascade type
control system, with the primary controller being an override control
system.
22-19
In an override control system, one of the controllers is always in a standby
condition, which will cause that controller to saturate. Reset windup can
be prevented by feeding back the selector relay output to the setpoint of
each controller. Because the reset actions of both controllers have the
same feedback signal, control will transfer when both controllers have no
error. Then the outputs of both controllers will be equal to the signal in the
reset sections. Because neither controller has any error, the outputs of both
controllers will be the same. Particular attention must be paid to make sure
that at least one controller in an override control system will always be in
control. If not, then one of the controllers can wind up, and reset windup
protection is necessary.
<
FC EXTERNAL FEEDBACK
EXTERNAL FEEDBACK
TC
FT PC PT TT
GAS
22.12
Material balance:
dC A
( rA ) kC A 0 (1 X )( B 2 X )
2
dt
Since
C A C A0 (1 X )
22-20
then
dX 1 dC A
dt C A0 dt
Therefore
dX
kC A 0 (1 X )( B 2 X ) (1)
dt
Energy balance:
dT Q g Q r
(2)
dt NC p
where Qg kC AO 2 (1 X )( B 2 X )V ( H RX )
Q r UA(T 298 )
We will first carry out the reaction isothermally at 175 C up to the time
the cooling was turned off at 45 min.
Figure S22.12a shows the isothermal behavior for these first 45 minutes.
22-21
0.04 449
0.03 448.5
Temperature
Conversion 0.02 448
0.01 447.5
--- Conversion
__
Temperature
0 447
0 5 10 15 20 25 30 35 40 45
Time
The cooling is turned off for 45 to 55 min. We will now use the conditions
at the end of the period of isothermal operation as our initial conditions for
adiabatic operation period between 45 and 55 minutes.
0.04 460
Temperature
Conversion
0.035 450
__
Temperature
Conversion
0.03 440
45 46 47 48 49 50 51 52 53 54 55
Time
22-22
C.- BATCH OPERATION WITH HEAT EXCHANGE
Return of the cooling occurs at 55 min. The values at the end of the period
of adiabatic operation are:
t = 55 T = 468 K X = 0.0423
1.5 1000
Temperature
Conversion
900
1
800
Temperature
Conversion
700
0.5
600
500
0
60 70 80 90 100 110 120 130
Time
. Feed composition = 9.044 kmol of ONCB, 33.0 kmol of NH3, and 103.7
kmol of H20
. Shut off cooling to the reactor at 45 minutes and resume cooling reactor
at 55 minutes.
MATLAB simulation:
1.- Let's define the differential equation system in a file called reactor.
function dx_dt=reactor(t,x)
dx_dt(1,1)=((17e-5*exp(11273/1.987*(1/461-
1/x(2))))*1.767*(1-x(1))*(3.64-2*x(1)));
dx_dt(2,1)=((-(17e-5*exp(11273/1.987*(1/461-
1/x(2))))* 122*(1-x(1))*(3.64-2*x(1))*5.119*(-5.9e5)
- 35.85*(x(2)-298))/2504 );
22-23
where dx_dt(2,1)the must be equal to 0 for the isothermal operation
[times_row,x]=ode45('reactor',[to, tf],[X0,T0]);
plot(times_row,x(:,1),times_row,x(:,2));
22.13
a) PID controller:
Kc = 26.5381
I = 2.8658
D = 0.4284
140
Tr
Tjsp
120
100
80
T (C)
60
40
20
0
0 20 40 60 80 100 120
time (min)
22-24
b) Batch unit
Kc = 10.7574
I = 53.4882
120
Tr
Tjsp
100
80
T(C)
60
40
20
0
0 20 40 60 80 100 120
time(min)
Kc = 10.7574
I = 53.4882
120
Tr
Tjsp
100
80
T(C)
60
40
20
0
0 20 40 60 80 100 120
time(min)
22-25
d) Dual mode controller
1.- Full heating is applied until the reactor temperature is within 5% of its
set point temperature.
2.- Full cooling is then applied for 2.8 min
3.- The jacket temperature set point Tjsp of controller is then set to the
preload temperature (46 C) for 2.4 min.
140
Tr
Tjsp
120
100
80
T (C)
60
40
20
0
0 20 40 60 80 100 120
time (min)
MATLAB simulation:
function dy=brxn(t,y)
%
% Batch reactor example
% Cott & Machietto (1989); "Temperature control
% of exothermic batch reactors using generic model
% control", I&EC Research, 28, 1177
%
% Parameters
cpa=18.0; cpb=40.0; cpc=52.0; cpd=80.0;
cp=0.45; cpj=0.45;
dh1=-10000.0; dh2=6000.0;
uxa=9.76*6.24;
rhoj=1000.0;
k11=20.9057; k12=10000;
k21=38.9057; k22=17000;
vj=0.6921;
22-26
tauj=3.0;
wr=1560.0;
dy=zeros(7,1);
ma=y(1); mb=y(2); mc=y(3); md=y(4); tr=y(5);
tj=y(6);
tjsp=y(7);
k1=exp(k11-k12/(tr+273.15));
k2=exp(k21-k22/(tr+273.15));
r1=k1*ma*mb;
r2=k2*ma*mc;
qr=-dh1*r1-dh2*r2;
mr=ma+mb+mc+md;
cpr=(cpa*ma+cpb*mb+cpc*mc+cpd*md)/mr;
qj=uxa*(tj-tr);
dy(1)=-r1-r2;
dy(2)=-r1;
dy(3)=r1-r2;
dy(4)=r2;
dy(5)=(qr+qj)/(mr*cpr);
dy(6)=(tjsp-tj)/tauj-qj/(vj*rhoj*cpj);
dy(7)=0;
Note: The error between the reactor temperature and its set-point (e=cvsp-cv) is
computed at each sampling time. That is, control actions are computed in the
discrete-time. For the integral action, error is simply summed (se = se+e).
Controller output is estimated by mv=Kc*e+Kc/taui*se*st, where Kc =
proportional gain, taui=integral time, e=error, se=summation of error and
st=sampling time
clear
clf
%
% batch reactor control system
% PID controller (velocity form)
%
y0=[ma,mb,mc,md,tr,tj,tjsp];
% simulation
st=0.2;
t0=0; tfinal=120;
22-27
ntf=round(tfinal/st)+1;
cvt=zeros(1,ntf); mvt=zeros(1,ntf);
for it=1:ntf
[tt,y]=ode45('brxn',[(it-1)*st it*st],y0);
y0=y(length(y(:,1)),:);
cv=y0(5);
e=cvsp-cv;
mv=mv+kc*(e*st/taui+(e-en)+taud*(e-2*en+enn)/st);
if mv>120, mv=120; elseif mv<20, mv=20; end
enn=en; en=e;
y0(7)=mv;
cvt(it)=cv; mvt(it)=mv;
end
t=(1:it)*st;
plot(t,cvt,'-r',t,mvt,'--g')
% controller
kc=10.7574; taui=53.4882;
mh=120; ml=20; mq=46;
mv=20;
cvsp=92.83;
% simulation
st=0.2;
z=ml; al=exp(-st/taui);
t0=0; tfinal=120;
ntf=round(tfinal/st)+1;
for it=1:ntf
[tt,y]=ode45('brxn',[(it-1)*st,it*st],y0);
y0=y(length(y(:,1)),:);
cv=y0(5);
e=cvsp-cv;
m=kc*e+z;
if m>mh, m=mh;
end
f=m
z=al*z+(1-al)*f; [f z m]
y0(7)=m;
22-28
cvt(it)=cv;
mvt(it)=m;
end
t=(1:it)*st;
plot(t,cvt,'-r',t,mvt,'-g');
% controller
kc=10.7574; taui=53.4882;
mh=120; ml=20; mq=46;
mv=20;
cvsp=92.83;
% simulation
st=0.2;
z=ml; al=exp(-st/taui);
t0=0; tfinal=120;
ntf=round(tfinal/st)+1;
for it=1:ntf
[tt,y]=ode45('brxn',[(it-1)*st,it*st],y0);
y0=y(length(y(:,1)),:);
cv=y0(5);
e=cvsp-cv;
m=kc*e+z;
y0(7)=m;
cvt(it)=cv;
mvt(it)=m;
end
t=(1:it)*st;
plot(t,cvt,'-r',t,mvt,'-g');
clear
clf
%
% batch reactor control system
% dual-mode controller
%
22-29
% initial values
ma=12.0; mb=12.0; mc=0; md=0; tr=20.0; tj=20.0;
tjsp=20.0;
y0=[ma,mb,mc,md,tr,tj,tjsp];
% simulation
st=0.2;
t0=0; tfinal=120;
ntf=round(tfinal/st)+1;
cvt=zeros(1,ntf); mvt=zeros(1,ntf);
for it=1:ntf
[tt,y]=ode45('brxn',[(it-1)*st it*st],y0);
y0=y(length(y(:,1)),:);
cv=y0(5);
22-30
mv=mv+kc*(e*st/taui+(e-en)+taud*(e-
2*en+enn)/st);
if mv>120, mv=120; elseif mv<20, mv=20; end
enn=en; en=e;
end
y0(7)=mv;
cvt(it)=cv;
mvt(it)=mv;
end
t=(1:it)*st;
plot(t,cvt,'-r',t,mvt,'-g')
22-31
Chapter 23
23.1
(a) Use IMC-tuning-based PI: identify open loop model as τ=4.5h, K=44 (average of high and
low open-loop step changes), pick τc as 1/3 of τ. PI tuning: Kc=-.07 L/g-h, τI=4.5h. Closed-loop
responses are given in the following figure:
7.5
Setpoint -1.0
Setpoint -0.5
7 Setpoint +0.5
Setpoint +1.0
6.5
Biomass (g/L)
5.5
4.5
0 20 40 60 80 100
Time (h)
23- 1
(b) Closed-loop simulation for a -12.5% step change in the maximum growth rate (µm):
6.5
6.4
6.3
Step disturbance in maximum growth rate
6.2
Biomass (g/L)
6.1
5.9
5.8
5.7
5.6
5.5
0 5 10 15 20 25 30 35 40
Time (h)
(c) From setpoint response, get slightly underdamped response on negative setpoint
changes – corresponding to strong open-loop nonlinearity observed in Figure 23.2.
(d) Major difference is new gain (with opposite sign), and different time constant. Gain is
smaller, time constant is larger, suggesting larger τI, and larger controller gain.
23- 2
23.2
[tsim,ysim_rescaled]=MPCSim(P,M,Weights,Penalize,Nominals,Constrains,Nomin
alModelFlag,SimTime,StepTarget,StepTime);
plotsimresults(tsim,ysim_rescaled,Constrains,'Nominal Controller');
23- 3
Nominal Controller
Bulk 100
50
0
0 5 10 15 20 25 30 35 40 45 50
460
440
5
d
420
400
0 5 10 15 20 25 30 35 40 45 50
1640
1620
90
d
1600
1580
0 5 10 15 20 25 30 35 40 45 50
Nominal Controller
300
u1
200
100
0 5 10 15 20 25 30 35 40 45 50
300
u2
200
100
0 5 10 15 20 25 30 35 40 45 50
300
u3
200
100
0 5 10 15 20 25 30 35 40 45 50
time
Figure S23.2a. Setpoint response for closed-loop granulation system under MPC control
(nominal case)
23- 4
(b) Sample code for MPC design provided below
P=40; % Prediction Horizon
M=2; % Control Horizon
Weights=[0.1,0,0]; % Manipulated Variables Weights
(Default = 0,0,0)
Penalize=[2,1,1]; % [Bulk Weight, d5 Weight, d90
Weight]
Nominals=[180,180,180,40,400,1600]; % [Flow Rates 1-3, Bulk density, d5,
d90]
Constrains=[105,345]; % Lower and Upper Flow Rates
NominalModelFlag=0; % 1=Nominal Model, Otherwise ->
Actual plant model
SimTime=[0,100]; % Simulation time [Start,End]
StepTarget=[90,400,1600]; % Simulated step change in physical
units: [Bulk, d5, d90]
StepTime=1; % Time of Simulated step change;
[tsim,ysim_rescaled]=MPCSim(P,M,Weights,Penalize,Nominals,Constrains,Nomin
alModelFlag,SimTime,StepTarget,StepTime);
plotsimresults(tsim,ysim_rescaled,Constrains,'Actual Plant Simulation');
100
Bulk
50
0
0 10 20 30 40 50 60 70 80 90 100
440
420
5
d
400
380
0 10 20 30 40 50 60 70 80 90 100
1700
1650
90
d
1600
1550
0 10 20 30 40 50 60 70 80 90 100
23- 5
Actual Plant Simulation
300
u1
200
100
0 10 20 30 40 50 60 70 80 90 100
300
u2
200
100
0 10 20 30 40 50 60 70 80 90 100
300
u3
200
100
0 10 20 30 40 50 60 70 80 90 100
time
Figure S23.2b. Setpoint response for closed-loop granulation system under MPC control
(uncertain case)
23- 6
(c) Sample code provided for each scenario below:
[tsim,ysim_rescaled]=MPCSim(P,M,Weights,Penalize,Nominals,Constrains,Nomin
alModelFlag,SimTime,StepTarget,StepTime);
plotsimresults(tsim,ysim_rescaled,Constrains,'Scenario c - 1');
23- 7
Scenario c - 1
150
100
Bulk
50
0
0 10 20 30 40 50 60 70 80 90 100
450
5
400
d
350
0 10 20 30 40 50 60 70 80 90 100
1660
1640
90
d
1620
1600
0 10 20 30 40 50 60 70 80 90 100
Scenario c - 1
300
u1
200
100
0 10 20 30 40 50 60 70 80 90 100
300
u2
200
100
0 10 20 30 40 50 60 70 80 90 100
300
u3
200
100
0 10 20 30 40 50 60 70 80 90 100
time
23- 8
ii) simultaneous change in 5th percentile from 400 to 375, and 90th percentile from 1620
to 1630
[tsim,ysim_rescaled]=MPCSim(P,M,Weights,Penalize,Nominals,Constrains,Nomin
alModelFlag,SimTime,StepTarget,StepTime);
plotsimresults(tsim,ysim_rescaled,Constrains,'Scenario c - 2');
23- 9
Scenario c - 2
60
40
Bulk
20
0
0 10 20 30 40 50 60 70 80 90 100
450
5
400
d
350
0 10 20 30 40 50 60 70 80 90 100
1660
1640
90
d
1620
1600
0 10 20 30 40 50 60 70 80 90 100
Scenario c - 2
300
u1
200
100
0 10 20 30 40 50 60 70 80 90 100
300
u2
200
100
0 10 20 30 40 50 60 70 80 90 100
300
u3
200
100
0 10 20 30 40 50 60 70 80 90 100
time
23-10
23.3
(b)
25
Set point change -10 mm Hg
20
ICP (mm Hg)
15
10
0
0 5 10 15 20
Time (h)
Undershoot=2/10=.2
Minimum = 8 mm Hg
(c) Overshoot is modest, the settling time is a bit long, but possibly acceptable for a delay
system. Smith predictor and/or MPC would make good sense.
23-11
23.4
Figure E23.4
Tau=(1/3)*.5=.167min
Gain=(84-72)/2.5=4.8
23-12
(b)
15
Set point change +10 bpm
Heart Rate (bpm)
10
0
0 1 2 3 4 5
Time (min)
(c) Improved response might be possible with multiple step changes, larger step changes,
second-order model
23-13
23.5
RGA =
τ
Kc =
Kτ c
τI =τ
(c) Following are step test for setpoint change of 10% of steady-state values for each of
the controlled variables (using τ c = τ / 3 ) . The fourth step test is a combined change
in both variables 2 & 3.
23-14
Step Change of 10% in variable 1 - output variables
0.1
DT [K]
0
f
-0.1
0 5 10 15 20 25 30 35 40
time [sec]
0.05
DT [K]
0
s
-0.05
0 5 10 15 20 25 30 35 40
time [sec]
-3
x 10
M [Kg/Kg H O
0
2
-0.5
-1
p
0 5 10 15 20 25 30 35 40
time [sec]
-7
x 10 Step Change of 10% in variable 1 - input variables
4
W [m3/s]
2
f
0
0 5 10 15 20 25 30 35 40
time [sec]
0.05
T [K]
-0.05
0 5 10 15 20 25 30 35 40
time [sec]
-7
x 10
1
W la [m3/s]
0.5
c
0
0 5 10 15 20 25 30 35 40
time [sec]
23-15
Step Change of 10% in variable 2 - output variables
0.05
DT [K]
0
f
-0.05
0 5 10 15 20 25 30 35 40
time [sec]
1
DT [K]
0
s
-1
0 5 10 15 20 25 30 35 40
time [sec]
-3
x 10
M [Kg/Kg H O
4
2
0
p
0 5 10 15 20 25 30 35 40
time [sec]
-6
x 10 Step Change of 10% in variable 2 - input variables
1
W [m3/s]
0
f
-1
0 5 10 15 20 25 30 35 40
time [sec]
0
T [K]
-0.5
-1
0 5 10 15 20 25 30 35 40
time [sec]
-7
x 10
0
W la [m3/s]
-2
-4
c
0 5 10 15 20 25 30 35 40
time [sec]
23-16
Step Change of 10% in variable 3 - output variables
0.05
DT [K]
0
f
-0.05
0 5 10 15 20 25 30 35 40
time [sec]
0.5
DT [K]
0
s
-0.5
0 5 10 15 20 25 30 35 40
time [sec]
M [Kg/Kg H O
0.02
2
0.01
p
0
0 5 10 15 20 25 30 35 40
time [sec]
-7
x 10 Step Change of 10% in variable 3 - input variables
5
W [m3/s]
0
f
-5
0 5 10 15 20 25 30 35 40
time [sec]
0
T [K]
-0.1
-0.2
0 5 10 15 20 25 30 35 40
time [sec]
-7
x 10
4
W la [m3/s]
2
c
0
0 5 10 15 20 25 30 35 40
time [sec]
23-17
Step Change of 10% in variable 2&3 - output variables
0.05
DT [K]
0
f
-0.05
0 10 20 30 40 50 60
time [sec]
2
DT [K]
0
s
-2
0 10 20 30 40 50 60
time [sec]
M [Kg/Kg H O
0.02
2
0.01
p
0
0 10 20 30 40 50 60
time [sec]
-7
x 10 Step Change of 10% in variable 2&3 - input variables
5
W [m3/s]
0
f
-5
0 10 20 30 40 50 60
time [sec]
0
T [K]
-0.5
-1
0 10 20 30 40 50 60
time [sec]
-7
x 10
5
W la [m3/s]
0
c
-5
0 10 20 30 40 50 60
time [sec]
(a) To calculate an approximate second-order insulin-glucose model for the patient we shall
set the disturbance, D, to zero. A step of one mU/min shall be introduced to the system.
One simulates the response for 400 min with constant insulin injection of 15 mU/min to
reach a steady state. Then introduce a step change. Using Smith’s method one can
identify from the figurer below a second- order model of the form:
𝐾𝐾
𝐺𝐺(𝑠𝑠) =
𝜏𝜏 2 𝑠𝑠 2 + 2ξτs + 1
K=-5.16
t20/t60≅0.5 ξ≅0.48 and τ≅59min
−5.16
𝐺𝐺(𝑠𝑠) =
592 𝑠𝑠 2 + 2 ∙ 0.48 ∙ 59s + 1
90
Process
89
88
87
Glucose (mg/dL)
86
85
84
83
82
81
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (min)
23-19
90
Process
89 Model
88
87
Glucose (mg/dL)
86
85
84
83
82
81
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (min)
(b) Using IMC- Based PID controller settings for Gc for a second-order model:
Kc=2* ξ * τ /K/τc=-10.29/τc
τ i=2* ξ * τ=53.1
τ d= τ /2/ ξ=65.56
(c) Simulation results of the closed-loop system response to a step setpoint change in
blood glucose of -20 mg/dl. As can be seen from figure below, one can tune τc to
improve the transient response.
23-20
120
τc =.1
110 τc =.5
τc =1
100
Glucose (mg/dL)
90
80
70
60
50
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (min)
(d) With τc=0.5 as can be seen in figure below, one can maintain the hypoglycemic
boundary but one still violates the upper constraint with maximum glucose of 159
mg/dL
23-21
160
150
140
130
Glucose (mg/dL)
120
110
100
90
80
70
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Time (min)
(e) With 10 min sensor delay the response is sluggish and one violates the upper
constraint. The response will become unstable if one tries to tune τc to a lower value
23.7
(a) On the basis of the transfer function characteristics, the glucagon pump has more
favorable qualities for use as a manipulated variable.
• The time delay is smaller, meaning the MV will have an effect on the CV more
quickly
• The glucagon pump has simpler (first order versus second order) dynamics and a
smaller time constant. Overall the dynamics of the glucagon pump are faster.
• The glucagon pump has a larger gain, meaning it will take less glucagon to have
the same magnitude of effect on the blood glucose.
• There are fewer safety concerns with a glucagon pump (the insulin pump has a
risk of overdosing insulin and causing death, whereas the glucagon pump does not
23-22
have the same type of risk). Also, the glucagon pump has the ability to correct
hypoglycemia, while the insulin pump does not.
Note that if the glucagon pump is used as the MV, insulin would still need to be delivered
either by the patient manually or by a set pattern on an insulin pump. Insulin is necessary
for survival. Also, glucagon alone cannot be used to lower the BG following the meal
disturbance.
(b) For the insulin pump, the process transfer function parameters are given as follow:
K = -1.5
τ1 = 20 min
τ2 = 25 min
θ = 30 min
Using IMC tuning rules, the PID controller parameters are given by the following
expressions from Table 12.1, row I (with τC=20min and τ3=0):
τ1 + τ 2 20 + 25
KC = = = −0.6
K (τ C + θ ) −1.5(20 + 30)
τ I =τ 1 + τ 2 = 20 + 25 = 45 min
τ 1τ 2 20(25)
τD =
= = 11.1min
τ 1 + τ 2 20 + 25
G (20 s + 1)(25s + 1) 5 20 s
(c) Gf = − d = e
Gp (30 s + 1) 1.5
This controller is not realizable due to the positive 20 min delay (requiring knowledge
from the future) and the fact that the numerator order is greater than the denominator
order.
To make the controller realizable, you could set the delay to zero (remove the delay
term from the controller) and introduce a filter to increase the order of the
denominator.
23-23
23.8
(a) and (b) Reading from the graph, we can generate the following readings:
Using these readings, we can calculate the percentage time from 70-180 mg/dL and from
80-140 mg/dL as determined by each sensor.
BG CGM1 CGM2
70-180 66.7 67.2 65.5
80-140 40.7 44.3 41.3
According to the BG measurement, the algorithm kept the BG between 70 and 180mg/dL
for 66.7% of the time. The BG spent 0.6% of time below 70mg/dL and 32.7% of time
above 180mg/dL. This means that the BG was in the desired range for about 2/3 of the
total time. Most of the time that was not spent within 70-180mg/dL was spent above
180mg/dL. Very little time was spent below 70mg/dL, which is good for safety. The time
spent below 70mg/dL should be minimized, although in reality it is very difficult to
completely eliminate hypoglycemia. According to the graph, very little time was spent
with BG above 300mg/dL, which is also good for safety.
23-24
(c) The two CGMs overestimated the time that was spent below 70 mg/dL. In fact, from
the graph we see that the CGMs overestimated the time spent below glucose levels up to
about 200mg/dL. This difference indicates a bias of the sensor to read below the actual
BG. The differences could also be due to lags and delays in the CGMs. Generally the two
CGMs had similar readings, meaning they are fairly precise. The resolution is to the ones
place in mg/dL.
23-25
Chapter 24
24.1
[problem adapted from Alon, Introduction to Systems Biology, Chapman & Hall]
a)
dM
= G0 − kdmRNA M where G0 is the input. Solve steady-state balance:
dt
G0
= M ss
kdmRNA
b)
dP
= kT M − kdP M
dt
c) step change in G0 from basal value to G1, mRNA has first order response with time
constant and gain both equal:
1
τ=
1 K=
1 mRNA
k d
Protein has first order response to mRNA with gain and time constant:
1
τ2 =
kdP
kT
K2 =
kdP
24 - 1
Analytical expression for deviation protein concentration (P’) is given by the expression
for two first-order systems in series:
kT 1 A A
P′ = • mRNA 1 + 1 e − t /tt
1
+ 2 e−t / 2
tt
P
kd kd 1 2
(τ s + 1) g ( s ) 1
A1 =
lim 1
s →−1/τ1
Ks ( −1/ τ 1 ) ( ( −τ 2 / τ 1 ) + 1)
(τ s + 1) g ( s ) 1
A1 =
lim 2
s →−1/τ1
Ks ( −1/ τ 2 ) ( ( −τ 1 / τ 2 ) + 1)
24.2
(i-a)
y = P1 P2 P3u
(i-b)
P1 P2 P3
y= u
1 − C3 P3 − C2 P2 P3 − C1 P1 P2 P3
(i-c)
P1 P2 P3
y= u
1 − C1 P1 P2 P3
24 - 2
(ii)
P1 P2 P3
y= u
1 − K c 3 P3 − K c 2 P2 P3 − K c1 P1 P2 P3
(iii)
P1 P2 P3
y= u
1 − K c1 P1 P2 P3
(iv) More attenuation possibilities in case (b) since there are more control loops that can
regulate the process
24 - 3
24.3
(a)
In this figure, four states (synthesis of free operator, mRNA transcription, translation and
tryptophan synthesis) are represented as each block. Also, controllers (regulation, Attenuation
and inhibition) are connected to the specific states. This block diagram is exactly the same as in
Exercise 24.2, excluding one less state.
-4
x 10
1.5
Tryptophan (Moles)
0.5
0
0 200 400 600 800
(b) Time (min)
24 - 4
-6
x 10
7
y/x=0.16
x/z=0.4
6 tr=4 min
ts=30 min
x y
5
Tryptophan (Moles)
3
z
1
tr ts
0
0 10 20 30 40 50 60 70 80
Time (min)
(c) Rise time=4 mins, overshoot=0.4, decay ratio=0.16, settling time=30 mins
(d) Response of tryptophan after deleting the two feedback loops (red curve; blue curve is
with all the feedback loops). Here, system is sluggish taking almost 50 mins to reach
steady state without any overshoot.
24 - 5
-6
x 10
Tryptophan (Moles) 8
0
0 20 40 60 80
Time (min)
24.4
(a) Algebra for derivation follows (recall that numerator of the first term involves an
additional differentiation wrt s compared to the example derived in the chapter):
∫t
2
y (t )dt
=Tdur t =0
∞
− Tsig2
∫
t =0
y (t )dt
− dsd ( λα 4 ( s + λ ) −2 ( s + β ) −4 + 4λα 4 ( s + λ ) −1 ( s + β ) −5 ) 1 4
2
s =0
− +
α4 λ β
β4
24 - 6
8 2 20
λα 4 + +
λ β β λ λβ 6 1 4
2 5 4 3 2
− +
α4 λ β
β4
1 4
= +
λ 2
β2
(b) Algebra, combining results from part (a) with results in chapter:
∞
α4 λα 4
∫t =0 y(t )dt β4 2β 4
=A = =
2Tdur 1 4
2 2+ 2 4λ 2
1+ 2
λ β β
24 - 7
24.5
y
=y k u −
s
Transfer function has a pole located at s=-k, therefore if k is positive, loop is stable. With
integrator in loop, require zero activity at steady state
(b)
y ks
=
u s+k
(c)
Receptor activity always resets to zero, always capable of full range of action
24.6
[Adapted from problem described in Goldbeter & Koshland, PNAS, 78, 6840-6844,
1981]
d [ P]
=−a1[ P][ E1 ] + d1[ PE1 ] + k2 [ P* E2 ]
dt
d [ P1 ]
= a1[ P][ E1 ] − (d1 + k1 )[ PE1 ]
dt
d [ P* ]
= −a2 [ P* ][ E2 ] + d 2 [ P* E2 ] + k1[ PE1 ]
dt
d [ P* E2 ]
= a2 [ P* ][ E2 ] − (d 2 + k2 )[ P* E2 ]
dt
24 - 8
Invoking assumption about fixed total amounts, and dropping concentration notation ([.]):
P + P* + PE1 + P* E2 =
PT
E1T= E1 + + PE1
E2=
T E2 + P* E2
Algebra leads to
1/2
V1 K1 V1 V1 V1
2
V1 V1 K1
− 1 − K 2 + +
− 1 − K 2 + + 4 K 2 − 1
P* V2 V2 K 2 V2 V2 K 2 V2 V2
=
PT V
2 1 − 1
V2
V1 = k1 E1T
V1 = k2 E2T
d1 + k1
K1 =
a1 PT
d 2 + k2
K2 =
a2 PT
Invoking the conservation balance on P at steady-state, and assuming that V1 and V2 are
not equal, one can derive the following simplified expression:
24 - 9
P* P*
1 − + K1
V1 PT PT
=
V2 P* P*
1 − + K 2
PT PT
(b) and (c) [combined plot, also included K1=K2=.01 for illustration]
1
K1=K2=1
0.9 K1=K2=0
K1=K2=.01
P*/PT (molar fraction at steady-state)
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-2 -1 0 1 2
10 10 10 10 10
V1/V2
(d) For small values of K1 and K2, the response approaches a switch-like shape. Larger
values lead to more sigmoidal response profiles. Hence, this biochemical network
24 - 10
consisting of two antagonistic enzymes can be tuned (or regulated) to give switch like
behavior under appropriate conditions. In some texts this is referred to as “zero order
ultra-sensitivity”.
24.6
24 - 11
Simplifying this expression gives:
Y (s) Ga GbGc
=
X ( s ) 1 + Gb + GbGc + Ga GbGc
(c) Now we can substitute the given values for the biological processes:
Ga = 5
1
Gb =
2s
3
Gc =
s
1 3
5
Y (s) 2s s
=
X (s) 1 + 1 + 1 3 + 5 1 3
2s 2s s 2s s
15
= 2s 2
1 3 15
1+ + 2 + 2
2s 2s 2s
15
= 2
2 s + s + 18
Since the real part of both roots is negative, the system is stable.
24.7
5
= G=
Gtranscription
s +1
1
= G=
Gtranslation −deg 2 Ke −θ s
24 - 12
5
AR(G1 ) =
ω2 +1
φ (G1 ) = − tan −1 (ω )
AR(G2 ) = K
φ (G2 ) = −θω
5
=
AR(G1 (ω ω=
circ )) = 4.84
ω +1 2
circ
1
=K = 0.207
AR(G1 (ωcirc ))
24 - 13