Process Control-Lecture 16
Process Control-Lecture 16
CE 560 / MT 580
Process control
Lecture 16
Solution of process models using Laplace Transforms
C. Botha (Mr.)
Contacts: Chemical Engineering Department
Email: [email protected]
Alt. Email: [email protected]
May, 2023
Solution of some process models by Laplace transforms: Stirred tank heater
o The model describing the dynamic behaviour of the stirred tank heater was derived and
is given by:
dT Q
Ah Fi (Ti T ) ...................................................(15.1)
dt cp
dT F UAi Fi UAi
T T Tst .................................(15.8)
V V cp V c p
i
dt V
V UAi
, K= .................................................................(15.8)
Fi V cp
o Then equation 15.8 yields;
dT 1 1
K T Ti KTst ..........................................(15.9)
dt
1
o Furthermore, if a = + 𝐾, then;
𝜏
dT 1
aT Ti KTst ..............................................(15.10)
dt
o At steady state:
1
0 aTs Ti ,s KTst ,s ..............................................(15.11)
Solution of some process models by Laplace transforms: Stirred tank heater
o Assuming that the tank is initially at steady state i.e. 𝑇 ′ 0 = 0. At time 𝑡 > 0, the inlet
temperature 𝑇𝑖 increases by a step of magnitude 10oF and remains at this new
temperature. Thus, 𝑇 ′ 𝑖 t = 10oF. The temperature of the liquid in the tank will start
increasing and it is required to know how this temperature will change with time (dynamic
behaviour).
o Taking the Laplace transform of both sides of equation 15.14 yields;
dT
dt
aT
1
T K
i Tst ....................(15.15)
1
sT ( s ) T (0) aT ( s ) Ti ( s ) KTst ( s )............................(15.16)
o The tank is initially at steady state therefore, 𝑇 ′ (0ሻ = 0.
Solution of some process models by Laplace transforms: Stirred tank heater
o Furthermore, nothing is said about the change in steam temperature, hence it stays the
same so that 𝑇ത𝑠𝑡
′
(𝑠ሻ = 0. Since, 𝑇 ′ 𝑖 𝑡 = 10oF, then;
T (t ) T ( s ) 10 .........................................(15.17)
i i s
o Thus, equation 15.16 yields;
10
sT ( s ) aT ( s ) .............................................(15.18)
s
10
T ( s ) s a ..................................................(15.19)
s
10 1 10 1 1
T ( s ) . ......................(15.19)
s s a s s a
o The function 𝑇 ′ 𝑡 whose Laplace transform is given by the RHS of 15.19 is the solution
and hence the dynamic behaviour.
Solution of some process models by Laplace transforms: Stirred tank heater
1 1
o To find the inverse transform of the RHS of equation 15.19 requires breaking .
𝑠 𝑠+𝑎
into partial fractions. Therefore;
1 1 C C2
. 1 .................................(15.20)
s s a s s a
o To compute 𝐶1, multiply both sides by 𝑠 and set 𝑠 = 0.
1 1 C1 C2 s
. .s .s .................................(15.21)
s s a s s a
1 C2 s
C1 ...........................................(15.22)
o 𝑠 = 0 then, s a s a
1 1
C1 0 or C1 ...........................................(15.23)
a a
Solution of some process models by Laplace transforms: Stirred tank heater
10 1 1
T ( s ) ........................................(15.28)
a s s a
Solution of some process models by Laplace transforms: Stirred tank heater
o Finally, taking the inverse transform of 15.28 gives the required solution. That is,
10 1 1
1
T ( s ) 1
........................................(15.29)
a s s a
10
T (t ) 1 e at .....................................................(15.30)
a
o Thus, to obtain the solution of a differential equation using Laplace transform:
1) Express the differential equation in terms of the deviation variables (if required) and
take the Laplace transform.
o Initial conditions are incorporated at this stage.
2) Solve the resulting algebraic equation in terms of the Laplace transform of the unknown
function.
Inverse of Laplace transforms by partial fractions
3) Find the time function that has the Laplace transform given by the RHS of the equation
in step 2.
o The third step is the most tedious step. For example given the following Laplace
transform;
s 2 a1s b1 (s c1 )
x ( s) ...............................(15.31)
s ( s a2 s b2 s c2 )
3 2
o It may not be obvious what function 𝑥(𝑡ሻ has its Laplace transform given by equation
15.31.
o And inversion by partial fractions to find the time domain function 𝑥(𝑡ሻ may not be
obvious.
o Thus, determining the inverse Laplace transform in a crucial step in finding the solution.
o General procedure may be summarised as
Inverse of Laplace transforms by partial fractions
o Assuming that the resulting Laplace transform has the following form:
Q( s)
x ( s) ...........................................(15.32)
P( s)
1) Expanding the RHS into partial fractions yields;
Q( s) C C C C
x ( s) 1 2 3 .... n ................(15.33)
P( s ) r1 ( s ) r2 ( s ) r3 ( s ) rn ( s )
2) Where 𝑟1 (𝑠ሻ, 𝑟2 (𝑠ሻ, 𝑟3 (𝑠ሻ are the lower-order polynomials such as first- or second-
order.
3) Find the inverse Laplace transform of every resulting partial fraction, that is,
C1 C1 C1 Cn
x(t ) 1
x (s) 1
1
1
....
1
....(15.34)
r1 ( s ) r1 ( s ) r1 ( s) rn ( s)
Inverse of Laplace transforms by partial fractions
P( s ) s 3 2s 2 s 2...........................................(15.36)
o The roots of the third-order polynomial, eq. 15.36, can be found, for example, by
synthetic division and are as follows:
s 1, s 1 and s 2 or the factors are: s -1, s 1, s - 2....................(15.37)
o Therefore;
s2 s 6 s2 s 6
x ( s) 3 .....................................(15.38)
s 2s s 2 ( s 1)( s 1)( s 2)
2
Inverse of Laplace transforms by partial fractions: Different real roots
s 2
s 6 s 1
C1
C2 s 1 C3 s 1
............................(15.41)
( s 1)( s 1)( s 2) s 1 s2
6
And C1 0 0 or C1 3
2
Inverse of Laplace transforms by partial fractions: Different real roots
3 3
Inverse of Laplace transforms by partial fractions: Distinct complex roots
2. Distinct complex roots: Consider the function 𝑥(𝑡ሻ with the Laplace transform:
s 1
x ( s) 2 ...........................................(15.43)
s 2s 5
o The polynomial 𝑃(𝑠ሻ is second-order and has two distinct roots which are not real, but
rather complex conjugates.
b b 2 4ac
s ...........................................(15.44)
2a
(2) (2) 2 4(1)(5)
s
2(1)
2 16 2 4 1
s = or s 1 j 2 and 1 j 2
2 2
o That is, complex conjugates.
Inverse of Laplace transforms by partial fractions: Distinct complex roots
s 1 s 1
x ( s) ...................(15.45)
s 2 s 5 s 1 j 2 s 1 j 2
2
s 1 s 1 j 2 C2 s 1 j 2
C1 + ..............................(15.47)
s 1 j 2 s 1 j 2 s 1 j 2
1 j 2 1 C + C2 1 j 2 1 j 2 ..............................(15.48)
1 j 2 1 j 2 1 j 2 1 j 2
1
2 j 2 C +0 or C 2 j 2 1 j j = j 1 1 j ......................(15.49)
2
1 1
j4 j4 j2 j 2
Inverse of Laplace transforms by partial fractions: Distinct complex roots
s 1 s 1 j 2 C1 s 1 j 2
C2 ..............................(15.50)
s 1 j 2 s 1 j 2 s 1 j 2
1 j 2 1 C1 1 j 2 1 j 2 C ..............................(15.51)
1 j 2 1 j 2 1 j 2 1 j 2
2
C2
1 j 2 1
=
2 j2
=
2 j2 1 j
= .........(15.52)
1 j 2 1 j 2 1 j 2 1 j 2 j 4 2
C1 C2
x ( s) + .....................................(15.54)
s 1 j 2 s 1 j 2
Inverse of Laplace transforms by partial fractions: Distinct complex roots
o Then
C1
C2
1
x ( s) 1
+
1
...............(15.55)
s 1 j 2
s 1 j 2
x(t ) C1e
1 j 2 t
+C2e
1 j 2 t
...............................................................(15.56)
o Substituting 𝐶1 and 𝐶2 .
1 j 1 j 2t 1 j 1 j 2t
x(t ) e + e .............................................(15.57)
2 2
1 j j 2t t 1 j j 2t t
x(t ) e .e + e .e ...........................................(15.57)
2 2
et
x(t ) 1 j e j 2t + 1 j e j 2t ......................................(15.57)
2
Inverse of Laplace transforms by partial fractions: Distinct complex roots
o Thus, complex conjugate roots will give rise to a periodic function i.e., sinusoidal
function.
Inverse of Laplace transforms by partial fractions: Repeated roots
o Expansion into partial fractions and computation of the coefficients in this case is
different when the polynomial 𝑃(𝑠ሻ contains multiple roots.
o As an example, the Laplace transform of the function 𝑥(𝑡ሻ given below has repeated or
multiple roots:
1
x ( s) ..............................................(15.66)
( s 1) ( s 2)
3
s1 s2 s3 1 and s4 2...........................................(15.68)
Inverse of Laplace transforms by partial fractions: Repeated roots
o Compute 𝐶3 : Applying the method as before i.e. multiply 15.67 by 𝑠 + 1 3 and set 𝑠 =
− 1.
Inverse of Laplace transforms by partial fractions: Repeated roots
1 C4
=C1 ( s 1) +C2 ( s 1)+C3
2
( s 1)3.............................(15.71)
( s 2) s2
1 C4
=C1 (1 1) +C2 (1 1)+C3
2
( 1 1)3.............................(15.72)
(1 2) 1 2
C3 1
o Compute 𝐶2 : The coefficient 𝐶2 cannot be computed as before since multiplying 15.67
1
by (𝑠 + 1ሻ2 and setting 𝑠 = −1 will result in which is undefined (check).
0
d 2x dx
a2 dt 2 1 dt a0
a x f (t ).........................15.78
o Since dx
x(0) 0 x(0)........................................15.77
dt t 0
o Then; a2 s 2 x ( s ) a1 sx ( s ) a0 x ( s ) f ( s )..................15.80
o Assuming that 𝑓(𝑡ሻ is a step function of magnitude 1, i.e. unit step function. Then;
1
f (t ) 1 and f ( s ) .......................................15.81
s
o Equation 15.80 becomes;
1
x ( s ) a2 s a1s a0 .............................15.82
2
s
1
x ( s) .............................15.83
s a2 s a1s a0
2
Second-order differential equation using Laplace transform
o Case II: when 𝑎12 − 4𝑎2 𝑎0 = 0. Results in two equal or repeated roots.
o Computation of the partial fractions coefficients can be performed as in the case for
repeated or multiple roots already discussed.
o Case III: when 𝑎12 − 4𝑎2 𝑎0 < 0. Results in two distinct complex conjugate roots.
o Computation of the coefficients in the resulting partial fractions can be performed as in
the case for distinct complex conjugate roots previously described.