Chapter 2 - Mathematical Modelling
Chapter 2 - Mathematical Modelling
Chapter 2:
Mathematical Modelling of Chemical Processes
BY
Assoc. Prof. Dr Marappagounder Ramasamy / Dr Serene Lock /
Dr Mohd Hilmi Noh / Dr Nurul Aini Amran
CLO1
Develop dynamic models of chemical processes
CLO2
Design feedback control systems using modern IT tools
CLO3
Select appropriate instruments for control systems
Mathematical Model (Eykhoff, 1974)
DESIGN
Exploring the sizing and arrangement of processing equipment
for dynamic performance.
PLANT OPERATION
State the modeling objectives and the end use of the model.
02 They determine the required levels of model detail and
model accuracy
Conservation of Component i
• For these reasonable assumptions, the energy balance in Eq. 2.3 can
be written as
dU int
dt
wH Q (2-10) (2.5)
(1)
𝑞ሶ = ℎ𝐴 𝑇2 − 𝑇1
2
• h = heat transfer coefficient (W/m K)
• The effect of flow field on the heat transfer rate is included in the
heat transfer coefficient, h.
Transport equations
3. Mass Transfer
(4)
is of the form
Where
k is the reaction rate coefficient
cA and cB are concentration of A and B with a and b as stoichiometric coefficients
k0 is the pre-exponential factor
E is the activation energy
R is universal gas constant
T is absolute temperature
Black box (empirical) model
Model structure is
Dangerous to extrapolate
subjective
Semi empirical model
or
d Vρ (2.6)
w1 w2 w (2-2)
dt
where w1, w2, and w are mass flow rates.
Development of dynamic models
A Blending Process
d Vρx
w1 x1 w2 x2 wx (2.7)
(2-3)
dt
0 w1 w2 w (2-4)
(2.8)
0 w1 x1 w2 x2 wx (2-5)
28
The Blending Process Revisited
dV
w1 w2 w (2.9)
(2-12)
dt
d Vx
w1x1 w2 x2 wx (2-13)
(2.10)
dt
Equation 2-10 can be simplified by expanding the accumulation term
using the “chain rule” for differentiation of a product:
d Vx dx dV
V x (2-14) (2.11)
dt dt dt
dx
V x w1 w2 w w1x1 w2 x2 wx (2.13)
(2-16)
dt
dV 1
w1 w2 w (2-17)
(2.14)
dt
dx w1 w2
x1 x x2 x (2-18)
(2.15)
dt V V
The Blending Process Revisited
The dynamic model in Eqs. 2-14 and 2-15 is in a convenient form for
subsequent investigation based on analytical or numerical techniques
dUˆ int dH
ˆ CdT (2.16)
(2-29)
dU int dT (2.18)
VC (2-31)
dt dt
Note that this term appears in the general energy balance of Eq. 2-5.
ˆ H
H ˆ
ref C T Tref (2.19)
(2-32)
Stirred-Tank Heating Process
H
ˆ C T T
ref (2.20)
(2-33)
Substituting (2-20) and (2-21) into the convection term of (2-5) gives:
wHˆ w C Ti Tref w C T Tref
(2.22)
(2-35)
𝑑𝑦
𝑉𝐶 = 𝑤𝐶 −𝑦 + ∆𝐻𝑣 𝑢
𝑑𝑡
𝑉 𝑑𝑦 ∆𝐻𝑣
= −𝑦 + 𝑢
𝑤 𝑑𝑡 𝑤𝐶
Stirred-Tank Heating Process
Define deviation variables (from desired operating/set point)
y T T T is desired operating point
u ws ws ws (T ) from steady state
V dy H v H v V
y u note that K p and 1
w dt wC wC w
dy
note when 0 y K pu
dt
dy
1 y K pu
dt
General linear ordinary differential equation solution: sum of exponential(s)
Suppose u 1 (unit step response)
t
y (t ) K p 1 e 1
Stirred-Tank Heating Process
Solution of linear ODE: 𝑡 𝐾𝑝 𝑡
𝑦𝑒 𝜏1 =න 𝑒 𝜏1 𝑑𝑡
𝜏1
𝑑𝑦
𝜏1 = −𝑦 + 𝐾𝑝 𝑢
𝑑𝑡 𝑡 𝑡
𝑦𝑒 𝜏1 = 𝐾𝑝 𝑒 𝜏1 +C
Re-written as, with 𝑢 = 1
𝑡
−𝜏
𝑑𝑦 1 𝐾𝑝 𝑦 = 𝐾𝑝 + C𝑒 1
+ 𝑦=
𝑑𝑡 𝜏1 𝜏1
1 𝑡 Initial condition: 𝑦 𝑡 = 0 = 0
𝑡𝑑 𝜏
Integrating factor: 𝑒 1 =𝑒 𝜏1
𝐶 = −𝐾𝑝
𝑡 𝑑𝑦 1 𝜏𝑡 𝐾𝑝 𝑡 𝑡
−𝜏
𝑒 𝜏1 + 𝑒 1𝑦= 𝑒 𝜏1 𝑦 = 𝐾𝑝 − 𝐾𝑝 𝑒 1
𝑑𝑡 𝜏1 𝜏1
𝑡 𝑡
−𝜏
𝑑(𝑦𝑒 𝜏1 ) 𝐾𝑝 𝑡 𝑦 = 𝐾𝑝 1 − 𝑒 1
= 𝑒 𝜏1
𝑑𝑡 𝜏1
Stirred-Tank Heating Process
Example 1
Ti = 40 C, T = 90 C, Ti = 0 C
o o o V
2 104 kg
4 2hr
w 10 kg hr
w s =0.83 106 g hr
H v =600 cal g H v 600(cal/g)
Kp 4
wC 10 10 3 (g/hr) 1 (cal/g o C )
C=l cal g o C
6 10 5 ( o C hr/kg)
w=104 kg hr
=103 kg m3 y T T
V=20 m3 u ws ws
V 2 104 kg
T(0) = T y(0) = 0
ws
u = +0.83 10 g hr
6
ws
5
K pu 6 10 0.83 10 6
t=
50 0
2
dy
dt
= -y + 50
y = 50 l - e -0.5t
o
Final T = y ss + T = 50 + 90 = 140 C
Example 1
New steady
Step 2: Maintain T = 140o C / 24 hr
state
dy
2 = - y + 6 10-5 u, y (0) = 50
dt
2
dy
dt
= - y - 50
y = - 50 l - 2e -0.5t
𝑦 0 = 50
Energy balances
dT
Tank: wCTi he A(Te T ) wCT mC
dt
Specify Q Calculate T, Te
m me C e d 2 y me C e me C e m dy 1
2
y u
he Ae dt he Ae wC w dt wC
1
q= h Rv: line resistance
Rv
dh 1
A qi h (2 - 57)
dt Rv
linear ODE
If P p gh
dh Non-linear
A qi Cv* ρgh qi Cv h (2-61)
dt ODE
Degrees of freedom analysis
List all quantities in the model that are known constants (or
1 parameters that can be specified) on the basis of equipment
dimensions, known physical properties, etc.
Kindly go through:
Laplace Transforms
Xerox Laplace Transform Table 3.1. Page 42-43, Seborg
Book 3rd Ed.