Process Modeling Lecture 6
Process Modeling Lecture 6
Process Modeling
Lecture 6
1
Outline
• Numerical integration
• Integral equations and integral functions
• Distributions and their properties
• Population balances
2
Numerical integration
2.5
2
Trapezoid
1.5
y=ex Rectangle
1
0.5
0
4
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Midpoint and trapezoid
1
Exact value y e dx e e 1.718281828
x 1 0
Rectangle ye 1/ 2
1.648721271
4% relative error
e e 1 0
Trapezoid y 1.859140914
2 8.2% relative error
5
Midpoint and trapezoid
ba
Simpson’s rule y f 0 4f 0.5 f 1
6
e 4e e
0 0.5 1
y 1.718861152
6
0.03 % relative error
11
Integral functions
When differential equations are solved,
integration is the final step. Sometimes there is no
analytical solution to the integral. In those cases
the solution is given in terms of integral functions
x
erf x
2
2
Error function exp t dt
0
cx, t c
2
c(0,t)=c0 c(,t)=0
D 2
t x c(x,0)=0
”diffusion equation” 12
Integral functions
cx, t c 2
c(0,t)=c0 c(,t)=0
D 2
t x c(x,0)=0
1.2
Analytical solution: 1
0.0001
x
0.8 0.001
0.05
0.6
0.2
2 Dt 0.4
0.2
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
• Distributed variable
• Length (m) 14
Distributions Size(m)
0.001
number
1
Distribution (1/m) 0.002 3
0.003 6
0.004 10
0.005 8
0.006 5
0.007 2
0.008 1
Standard
deviation?
16
Integral equations, example
y
Overall sample property f(s) is
measured, and we know the sample
size distribution y(s,L).
17
Integral equations, example
Example continues. L indicates athlete’s length and y is
probability that there is such an athlete in a team. Find a
function g that predicts how well the team succeeds (f).
19
What is the population balance
concept?
Population balance is about counting:
6 in
20
Compare to molar concentration:
Number of per unit
y
p1
x p2
22
Every dispersed phase property that is not assumed
constant, adds one dimension
nLdL
• Number density, total number
Np
of particles (per unit volume)
L 0
• Moments of the distribution mi n L L i
dL
L 0
24
Mean diameters from
mi nLL dL
i
moments L 0
28
Example
L 2
nL
1 22
e
2
29
250
average size
200
0.02 m
150
0.002 m
50
0
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
L 2
1 22
mk
k
n L L dL e Lk dL
L 0 L 0 2
30
How to scale the quadrature points?
250
200
150
100
50
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0.61931 0.23395697 0 0
0.38069 0.23395697 0 0
0.169395 0.18038079 0 0
0.033765 0.08566225 1.03E-08 8.84E-10
32
Scale the points from 0.013 m to 0.027 m
250
200
150
100
50
0
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
x 0 L a, x 1 L b L b a x a
33
What would be a linear variable transformation L=f(x)?
Scaling
L b a x a This is similar what you have done
dL b a dx
when non-dimensionalizing models.
Here you are actually doing the other
x0 La way around, as the points were
originally non-dimensional (0 to 1), but
x 1 L b you transform them into physical sizes
b 1
y f L dL b a f b a x a dx
a 0
n
b a w i f b a x i a
i 1 34
xi wi Li f(Li) f(Li) wi
0.966235 0.08566225 0.026527 0.970432 0.083129
0.830605 0.18038079 0.024628 13.70599 2.472297
0.61931 0.23395697 0.02167 140.7405 32.92721
0.38069 0.23395697 0.01833 140.7405 32.92721
0.169395 0.18038079 0.015372 13.70599 2.472297
0.033765 0.08566225 0.013473 0.970432 0.083129
Matlab: q = integral(fun,xmin,xmax) 35
Example: Other moments and
average diameters
n
m k f L L dL b a w i f L i L
k k
i
0 i 1
n
b a w i f b a x i a b a x i a k
i 1
36
m0 0.993513837
m1 0.019870277 m
m2 0.00040156 m2
m3 8.19738E-06 m3
d10=m1/m0 0.02 m
d21=m2/m1 0.020209078 m
d32=m3/m2 0.020413829 m
2
m1 m 2 m1
d10 0.02m 0.002045m
m0 m0 m0 37
Population balances
In population balances, the number balance equation is
formulated for a fraction of the distribution
c c 2c
v D 2 r
t h h
L
38
Population balance equation
9000000
8000000
7000000
6000000
5000000
4000000
3000000
2000000
1000000
0
10.2 14.35 20.35 28.8 40.8 57.5 81.5 115 163 230 326 460
42
”Easy” problem: initial value ODE
Linear terms Nonlinear terms
Flow in Birth by breakage Birth by agglomeration
gL Y Y FL , L Y
Y
NC Li , L
NC
j G Lj Yj Li Li
L j
i ,out i i i i j j
j1 j1
Flow out Death by Death by Growth Primary
breakage agglomeration nucleation
43
Discretization tables
Construction of these tables is characteristic to the discretization
method
Breakage Agglomeration
gL Y Y FL , L Y
Y
NC Li ,
NC L j G Lj Yj Li Li
L j
i ,out i i i i j j
j1 j1
Growth
L ab L L
La Lb
3 3 1/ 3
a b 45
Generally, the size of the bubble resulting from the
coalescence does not coincide with any category. In
case of equal diameter discretization it never does.
L ab L L
3
a b
3 1/ 3 46
Distribute the new bubble in two closest categories. A
reasonably good method, 2 properties can be
conserved, typically number and volume. Perhaps the
most popular method nowadays.
L ab L L
3
a b
3 1/ 3
y1 y 2 1 number
L ab L L
3
a b
3 1/ 3
49
Conclusions
• There are several methods for evaluating
definite integrals numerically. The simplest
ones are not usually very effective
• Gaussian quadratures are usually quite good
• Integral equations are such where unknown
function is under integral sign
• Integral functions are such where an integral
needs to be evaluated in order to calculate the
function value
50
Conclusions
• In population balances, distributions are
considered. For example particle size
distributions, when all particles are not of the
same size
• Moments are important measures of distribution
properties
• Population balances can be solved e.g. by
discretizing the internal coordinate into several
size classes, and following number of particles
in them 51