Documente Academic
Documente Profesional
Documente Cultură
Previous Lecture
Introduction to process models: what is process modelling,
why process modelling etc
Different types of modelling equations, i.e., algebraic equations, ordinary differential equations and partial differential
equations
Different classification of process models, e.g. linear vs
nonlinear.
Today we are going to learn to develop chemical process
models from the first principle.
2 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Conservation Principle
The basis for all theoretical process models is the conversation principle.
[Input] [Output] + [Internal Production] = [Accumulation]
(1)
We can also express the conservation principle in terms of
rates (per unit time):
Rate of
Rate of
Rate of
+
input of S
output of S
production of S
Rate of
=
accumulation of S
where S is a conserved quantity within the boundaries of a
system.
3 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Mass Balance
Mass balance:
Rate of
Rate of
input of mass
output of mass
Rate of
Rate of
+
=
generation of mass
accumulation of mass
The rate of mass accumulation in a system has the form
where m is the total mass in the system.
dm
in m
out + m
generated
=m
dt
dm
dt
(2)
Conservation Principle
Examples
Constitutive Relationships
Examples
Energy Balance
Energy balance:
Rate of
Rate of
input of energy
output of energy
Rate of
Rate of
+
=
generation of energy
accumulation of energy
Similarly, the rate of energy accumulation has the form
where E is the total energy in ta system.
dE
= E in E out + E generated
dt
dE
dt
(3)
5 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Fi
Consider a liquid surge tank with one inlet stream and one
outlet stream, as shown in Figure 1. Find how the height of
the tank varies as a function of time.
Here we define:
Fi = inlet volumetric flow rate
(vol/time)
Fo = outlet volumetric flow
rate
V = volume of liquid
Fo
Figure 1: A tank system
h = height of liquid
= liquid density (mass/vol)
A = cross-sectional area
6 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
input of mass
output of mass
Rate of
=
accumulation of mass
Rate of input of mass: Fi
Rate of output of mass: Fo
Rate of accumulation of mass:
dm
dt
d(V )
dt
7 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
(4)
dh
= Fi Fo
(5)
dt
The outlet flow rate can be assumed to be proportional to
the square root of the height of liquid in the tank:
dh
Fi
k
=
h
(6)
dt
A
A
Given the initial condition, we can predict how the height of
the tank changes with the inlet flow rate Fi (t), by solving
ODE (6).
A
8 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Blending System
Consider an isothermal blending system as shown in Figure 2. w represents mass flow rate (mass/time) while x, x1
and x2 represent the mass fraction of component A. Obtain
the overall mass balance and mass balance on component
A.
Conservation Principle
Examples
Constitutive Relationships
Examples
Blending System
Mass balance:
dm
= w1 + w2 w
dt
dV
= w1 + w2 w
dt
(7)
(8)
(9)
Conservation Principle
Examples
Constitutive Relationships
Examples
Blending System
Substituting m = V into (9)
d(Vx)
= w1 x1 + w2 x2 wx
dt
dV
dx
x
+ V
= w1 x1 + w2 x2 wx
dt
dt
(10)
(11)
dx
= w1 x1 + w2 x2 wx
dt
(12)
Simplifying:
dx
w1
w2
=
(x1 x) +
(x2 x)
dt
V
V
(13)
11 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Constitutive Relationships
Some chemical processes require more than simple material balances to define the modelling equations.
These required relationships are known as constitutive equations.
Examples: Ideal gas law, chemical reactions and heat transfer correlations.
12 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
(14)
13 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Chemical Reactions
The rate of reaction per unit volume (mol/volume*time) is
usually a function of the concentration of the reacting species.
A + 2B
C + 3D
If the rate of reaction of A is first-order in both A and B, the
rate of reaction can be expressed as:
rA = kCA CB
(15)
Conservation Principle
Examples
Constitutive Relationships
Examples
Chemical Reactions
(16)
rC = rA = kCA CB
(17)
rD = 3rA = 3kCA CB
(18)
15 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Chemical Reactions
Usually the reaction rate coefficient is a function of temperature. The most commonly used representation is the Arrhenius rate law:
k (T ) = AeE/RT
(19)
where k (T ) is the reaction rate constant, A is the preexponential factor, E is the activation energy, R is the ideal
gas constant and T is the absolute temperature.
A and E can be estimated by having the data of the reaction
constant as a function of reaction temperature:
E 1
ln k = ln A
(20)
R T
where A and E can be found from the intercept and slope
of a plot of (ln k ) vs T1 .
16 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Heat Transfer
17 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Thermodynamics
The total energy (TE) of a system consists of internal (U),
kinetic (KE) and potential energy (PE).
TE = U + KE + PE
where the kinetic and potential energy terms are:
1
KE = mv 2
2
PE = mgh
(22)
(23)
(24)
For most chemical processes where there are thermal effects, we will neglect the KE and PE terms because their
contribution is significantly less than that of U.
When dealing with flowing systems, we will work with enthalpy. Total enthalpy is defined as:
H = U + pV
(25)
18 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
V
Q
Heater
T
F
Conservation Principle
Examples
Constitutive Relationships
Examples
input of energy
output of energy
Rate of
Rate of
+
=
heat addition
accumulation of energy
dH
+Q
= Fi Hi F H
(27)
dt
is the specific enthalpy:
where H
Z T
H=
Cp dT
(28)
Tref
20 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
(29)
(30)
where Tref is the reference temperature and Cp is the specific heat capacity.
The total enthalpy of the system is:
H = V H
(31)
21 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
22 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Simplifying:
dV
= (Fi F )
dt
dT
Fi
Q
= (Ti T ) +
dt
V
VCp
(36)
(37)
23 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Batch Reactor
1
A
B
24 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Batch Reactor
Material balance gives:
Rate of flow
Rate of flow
dNA
dt
25 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
Batch Reactor
Hence,
dNA
= rA V
dt
1 dNA
d(NA /V )
dCA
=
=
= rA
V dt
dt
dt
Since the equation is a first-order reaction,
rA = kCA
(38)
(39)
(40)
(41)
26 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
V
CA
CB
Fo
CA , CB
B
A
Find how the concentration of reactant A changes with time.
27 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
(42)
d(CA V )
dt
28 / 40
Conservation Principle
Examples
Constitutive Relationships
Examples
dCA
+ CA (Fi F0 ) = Fi CAi F0 CA kCA V
dt
dCA
Fi
= (CAi CA ) kCA
dt
V
(43)
(44)
(45)
(46)
29 / 40
Unsolvable equations?
Have you ever set up a set of equations and discovered
that despite doing all the algebra right you still couldnt get
an answer? Some problems just cant be solved they are
not specified correctly.
Other problems have multiple solutions; and this can also
pose difficulties.
To solve a system of equations, the number of variables
must equal to the number of independent equations.
An equivalent way of stating this condition is to require the
degree of freedom (DOF), NF be zero:
NF = NV NE
(47)
Example 1
Consider the following set of equations:
x + 2y + z = 1
2x + y z = 2
y + 2z = 5
Number of variables NV = 3
Number of independent equations NE = 3
NF = 3 3 = 0
Problem is exactly specified. The set of equations has a
unique solution, i.e., x = 6, y = 5, z = 5.
32 / 40
Example 2
Consider the following set of equations:
x + 2y + z = 1
2y + 4z = 10
y + 2z = 5
Number of variables NV = 3
Number of independent equations NE = 2
NF = 3 2 = 1
Problem is underspecified. The set of equations has no
unique solution. There are infinite number of solutions.
33 / 40
Example 3
Consider the following set of equations:
x + 2y + z = 1
2x + y z = 2
y + 2z = 5
x +z =3
Number of variables NV = 3
Number of independent equations NE = 4
NF = 3 4 = 1
Problem is overspecified. The set of equations has no unique
solution. It can be solved by an optimization approach (e.g.,
linear least squares) to get the "best answer" that most
closely solves the set of equations.
34 / 40
35 / 40
V
Fo
The above system can be modelled as:
A
dh
= Fi Fo
dt
(48)
36 / 40
37 / 40
V
Q
Heater
T
F
(49)
(50)
38 / 40
Summary
40 / 40