Professional Documents
Culture Documents
1 Funded
Book Description
Title: Diffusion: Mass Transfer In Fluid Systems
Author: E. L. Cussler
Publisher: Cambridge University Press
Edition: 2
Year: 1997
ISBN: 0521564778
Scilab numbering policy used in this document and the relation to the
above book.
Exa Example (Solved example)
Eqn Equation (Particular equation of the above book)
AP Appendix to Example(Scilab Code that is an Appednix to a particular
Example of the above book)
For example, Exa 3.51 means solved example 3.51 of this book. Sec 2.3 means
a scilab code whose theory is explained in Section 2.3 of the book.
Contents
List of Scilab Codes
4 Dispersion
10
12
18
23
31
10 Absorption
35
40
12 Differential Distillation
43
13 Staged Distillation
46
14 Extraction
50
15 Adsorption
53
56
58
18 Membranes
62
68
20 Heat Transfer
70
75
3.2.4
3.3.1
4.2.1
4.2.2
5.1.1
5.1.2
5.1.3
5.2.1
5.2.2
5.2.3
5.5.1
5.5.2
6.1.1
6.1.2
6.1.5
6.2.1
6.4.1
6.4.2
6.4.3
6.4.4
8.1.1
8.1.2
8.1.3
8.1.4
8.2.1
8.2.2
8.3.1
8.3.2
Average velocity . . . . . . . . . . . .
Error calculation . . . . . . . . . . . .
Dispersion coefficient . . . . . . . . . .
Percent of pipe . . . . . . . . . . . . .
Diffusion Coefficient . . . . . . . . . .
Diffusion coefficient and error . . . . .
Diffusion coefficient . . . . . . . . . .
Diffusion coefficient stokes . . . . . . .
a b calculation . . . . . . . . . . . . .
Diffusion coefficient . . . . . . . . . .
Diffusion coefficient . . . . . . . . . .
Diffusion coefficient . . . . . . . . . .
Diffusion coefficient and transference .
Diffusion coefficient . . . . . . . . . .
Diffusion coefficient . . . . . . . . . .
Diffusion coefficient . . . . . . . . . .
Tortuosity calculation . . . . . . . . .
Diffusion coefficient . . . . . . . . . .
Diffusion flux . . . . . . . . . . . . . .
Diffusion coefficient in gel . . . . . . .
Time taken . . . . . . . . . . . . . .
Mass transfer coefficient . . . . . . . .
Mass transfer coefficient . . . . . . . .
Mass transfer coefficient . . . . . . . .
Mass transfer coefficient . . . . . . . .
Mass transfer coefficient liquid and gas
Column length . . . . . . . . . . . . .
Mass flux in air and water . . . . . . .
5
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8
8
10
11
12
12
13
14
15
15
16
16
18
18
19
19
20
21
21
22
23
23
24
24
25
26
26
27
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
8.5.1
8.5.2
8.5.3
8.5.4
9.1.1
9.2.1
9.3.1
9.4.1
9.4.2
10.2.1
10.3.1
10.3.2
10.4.1
11.1.1
11.2.1
11.2.2
12.2.1
12.2.2
12.4.1
13.1.1
13.2.1
13.2.2
13.4.1
13.4.2
14.3.1
14.4.1
14.5.1
15.3.2
15.3.3
15.4.1
15.4.2
16.3.2
16.3.3
17.1.1
17.1.2
17.1.3
17.2.1
17.4.1
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
28
29
29
30
31
31
32
33
33
35
35
36
37
40
40
41
43
43
44
46
47
47
48
49
50
51
51
53
53
54
55
56
57
58
58
59
59
60
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
Exa
17.5.1
18.1.1
18.2.1
18.2.2
18.3.1
18.3.2
18.4.1
18.5.2
19.1.1
19.2.1
20.1.1
20.3.1
20.3.2
20.3.3
20.4.1
20.4.2
21.1.2
21.3.1
21.3.2
21.4.1
21.5.1
relaxation time . . . . . . . . .
Rapidness calculation . . . . .
Permeability calculation . . . .
Time spent . . . . . . . . . . .
Osmotic pressure difference . .
Transport coefficient . . . . . .
Membrane selectivity . . . . .
total flux . . . . . . . . . . . .
Permeability . . . . . . . . . .
Membrane area calculation . .
Thermal diffusivity . . . . . . .
Overall heat transfer coefficient
Time taken . . . . . . . . . . .
Savings calculation . . . . . . .
Overall heat transfer coefficient
heat transfer coefficient . . . .
Thermal diffusivity . . . . . . .
Time taken . . . . . . . . . . .
Mass transfer and time taken .
Flow rate area and length . . .
Time taken . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
61
62
62
63
64
65
65
66
68
69
70
70
71
72
72
73
75
76
76
77
78
Chapter 3
Diffusion in concentrated
solutions
clc
D = 0.1 // cm2/ s e c
l = 10 // cm
C10 = 1
C1l = 0
C1 = 0.5
V1 = ( D / l ) *( C10 - C1l ) / C1 // Cm/ s e c
V2 = - V1
M1 = 28
M2 = 2
omeg1 = C1 * M1 /( C1 * M1 + C1 * M2 )
omeg2 = C1 * M2 /( C1 * M1 + C1 * M2 )
V = omeg1 * V1 + omeg2 * V2
printf ( The mass a v e r a g e v e l o c i t y i s %. 5 f cm/ s ,V )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
// At 6 d e g r e e c e n t i g r a d e
p1sat = 37 // Vapor p r e s s u r e o f b e n z e n e i n mm Hg
p = 760 // a t m o s p h e r i c p r e s s u r e i n mm Hg
y1l = 0
y10 = p1sat / p
n1byDcbyl = log ((1 - y1l ) /(1 - y10 ) ) // b e c a u s e f l u x n1 =
D c / l l n (1 y11 /1 y10 )
n2byDcbyl = y10 - y1l // Flux c a l c u l a t e d a s s u m i n g
d i l u t e s o l u t i o n a s n1 = Dc/ l ( y10y 1 l )
err1 = (( n1byDcbyl - n2byDcbyl ) / n2byDcbyl ) *100 //
Percentage error
printf ( The e r r o r i n measurement a t 6 d e g r e e
c e n t i g r a d e i s %. 1 f p e r c e n t , err1 )
// At 60 d e g r e e c e n t i g r a d e
p1sat = 395 // Vapor p r e s s u r e o f b e n z e n e i n mm Hg
p = 760 // a t m o s p h e r i c p r e s s u r e i n mm Hg
y1l = 0
y10 = p1sat / p
n1byDcbyl = log ((1 - y1l ) /(1 - y10 ) ) // b e c a u s e f l u x n1 =
D c / l l n (1 y11 /1 y10 )
n2byDcbyl = y10 - y1l // Flux c a l c u l a t e d a s s u m i n g
d i l u t e s o l u t i o n a s n1 = Dc/ l ( y10y 1 l )
err1 = (( n1byDcbyl - n2byDcbyl ) / n2byDcbyl ) *100 //
Percentage error
printf ( \n The e r r o r i n measurement a t 60 d e g r e e
c e n t i g r a d e i s %. 1 f p e r c e n t , err1 )
Chapter 4
Dispersion
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
z = 80 // m e t r e s
c1 = 410 //ppm
c = 860 // ppm
d = 2 //km
v = 0.6 //km/ h r
r = 3600 // s e c / h r
// C a l c u l a t i o n s
t1 = ( d / v ) * r // s e c
E = ( -(( z ^2) /(4* t1 ) ) /( log (410/860) ) ) *10^4 // cm2/ s e c
// a n s w e r i n t e x t b o o k i s wrong
d2 = 15 //km
c2 = c *( sqrt ( d / d2 ) ) //ppm
// R e s u l t s
printf ( The v a l u e o f d i s p e r s i o n c o e f f i c e n t i s %. f cm
2/ s e c ,E )
printf ( \n The v a l u e o f maximum c o n c e n t r a t i o n
a t 15
km downstream i s %. f ppm , c2 )
10
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
d = 10 //cm
s = 3 // km
v = 500 //cm/ s e c
nu = 0.15 // cm2/ s e c
// C a l c u l a t i o n s
E = 0.5* d * v // cm2/ s e c
c1 = 1000 // m/km
c2 = 1/100 // m/cm
z = sqrt (4* E * c1 * c2 * s / v )
percent = z *100/( s * c1 )
// R e s u l t s
printf ( The p e r c e n t o f p i p e c o n t a i n i n g mixed g a s e s
i s %. 1 f p e r c e n t , percent )
11
Chapter 5
Values of Diffusion Coefficients
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
m = 20/(6*10^23) // wt o f e a c h m o l e c u l e
kb = 1.38*10^ -16 // gcm2/ s e c K
T = 298 // K e l v i n
dou = 0.04*10^ -7 // cm
// C a l c u l a t i o n s
v = sqrt ( kb * T *2/ m ) //cm/ s e c
D = ( dou * v /6) *10^5 // i n x 10 5 cm2/ s e c
// R e s u l t s
printf ( The v a l u e o f D i f f u s i o n c o e f f i c i e n t
x10 5 cm2/ s e c ,D )
12
i s %. f
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// I n i t i a l i z a t i o n o f v a r i a b l e s
sigma1 = 2.92 // a n g s t r o m s
sigma2 = 3.68 // a n g s t r o m s
sigma12 = ( sigma1 + sigma2 ) /2 // a n g s t r o m s
T = 294 // K e l v i n
M1 = 2.02 // Mol wt o f h y d r o g e n
V1 = 7.07
V2 = 17.9
M2 = 28 // Mol wt o f N i t r o g e n
p = 2 // atm
Omega = 0.842
Dexp = 0.38 // cm2/ s e c
// c a l c u l a t i o n s
D1 = ((1.86*10^ -3) *(( T ) ^1.5) *(((1/ M1 ) +(1/ M2 ) ) ^0.5) )
/(( p ) *(( sigma12 ) ^2) * Omega ) //cm2/ s e c
err1 = (( Dexp - D1 ) / Dexp ) *100
D2 = ((10^ -3) *(( T ) ^1.75) *(((1/ M1 ) +(1/ M2 ) ) ^0.5) ) /(( p )
*(((( V1 ) ^(1/3) ) + (( V2 ) ^(1/3) ) ) ^2) ) //cm2/ s e c
err2 = (( Dexp - D2 ) / Dexp ) *100
// R e s u l t s
printf ( The d i f f u s i o n c o e f f i c i e n t u s i n g Chapman
e n s k o n g t h e o r y i s %. 2 f cm2/ s e c , D1 )
printf ( \ nThe e r r o r f o r t h e a b o v e c o r r e l a t i o n i s %. f
p e r c e n t , err1 )
printf ( \ nThe d i f f u s i o n c o e f f i c i e n t u s i n g F u l l e r
c o r r e l a t i o n i s %. 2 f cm2/ s e c , D2 )
printf ( \ nThe e r r o r f o r t h e a b o v e c o r r e l a t i o n i s %. f
p e r c e n t , err2 )
of variables
13
p0 = 1 // atm
p = 33 // atm
D0 = 0.043 // cm2/ s e c
// C a l c u l a t i o n s
D = ( p0 * D0 / p ) *10^5 // x 10 5 cm2/ s e c
// R e s u l t s
printf ( The d i f f u s i o n c o e f f i c i e n t f o r t h e g i v e n
c o n d i t i o n s i s %. 3 f x10 5 cm2/ s e c ,D )
12 disp ( The a n s w e r i s a b i t d i f f e r e n t due t o r o u n d i n g
o f f e r r o r in textbook . Also p l e a s e v e r i f y that
10 5 f a c t o r i s u t i l i z e d o u t s i d e . )
5
6
7
8
9
10
11
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
R0 = 1.73*10^ -8 //cm
kb = 1.38*10^ -16 // gcm2/ s e c 2K
T = 298 // k e l v i n
Mu = 0.01 // g /cms e c
Mu2 = 1 // C e n t i p o i s e
DE = 1.80 // x 10 5 cm2/ s e c
phi = 2.6
VH2O = 18 // c c / gmol
VO2 = 25 // c c / gmol
// c a l c u l a t i o n s
D1 = (( kb * T ) /(6* %pi * Mu * R0 ) ) *10^5 // x 10 5 cm2/ s e c
err1 = ( DE - D1 ) *100/ DE // e r r o r p e r c e n t a g e
D2 = (((8.2*10^ -8) * T /( Mu2 *(( VO2 ) ^(1/3) ) ) ) *(1+ ((3*
VH2O / VO2 ) ^(2/3) ) ) ) *10^5 // x 10 5 cm2/ s e c
17 err2 = ( D2 - DE ) *100/ DE // E r r o r p e r c e n t a g e
18 D3 = (((7.4*10^ -8) *(( phi * VH2O ) ^0.5) * T ) /( Mu2 *(( VO2 )
^0.6) ) ) *10^5 // x 10 5 cm2/ s e c
19 err3 = ( D3 - DE ) *100/ DE // E r r o r p e r c e n t a g e
14
// R e s u l t s
printf ( The d i f f u s i o n c o e f f i c e n t u s i n g S t o k e s
e i n s t i e n c o r r e l a t i o n i s %. 1 f x10 5 cm2/ s e c , D1 )
22 printf ( \ nThe e r r o r r e g a r d i n g a b o v e c o r r e l a t i o n i s %
. 1 f p e r c e n t low , err1 )
23 printf ( \ nThe d i f f u s i o n c o e f f i c e n t u s i n g Wilke
Chang c o r r e l a t i o n i s %. 1 f x10 5 cm2/ s e c , D3 )
24 printf ( \ nThe e r r o r r e g a r d i n g a b o v e c o r r e l a t i o n i s %
. 1 f p e r c e n t h i g h , err3 )
20
21
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
kb = 1.38*10^ -16 // gcm2 s e c 2K
T = 310 // k e l v i n
k = 30 // which i s a / b
D = 2.0*10^ -7 // cm2/ s e c
Mu = 0.00695 // g /cms e c
// C a l c u l a t i o n s
a = (( kb * T /(6* %pi * Mu * D ) ) *(( log ( k + (( k ^2 -1) ^(0.5) ) ) )
/((1 -(1/ k ^2) ) ^0.5) ) ) *10^7 // nm
11 b = a / k // nm
12 // R e s u l t s
13 printf ( The r e s u l t s o f a and b a r e %. f nm and %. 1 f
nm ,a , b )
of variables
15
4
5
6
7
8
9
10
11
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
m = 20/(6*10^23) // wt o f e a c h m o l e c u l e
kb = 1.38*10^ -16 // gcm2/ s e c K
T = 298 // K e l v i n
dou = 0.04*10^ -7 // cm
// C a l c u l a t i o n s
v = sqrt ( kb * T *2/ m ) //cm/ s e c
D = ( dou * v /6) *10^5 // i n x 10 5 cm2/ s e c
// R e s u l t s
printf ( The v a l u e o f D i f f u s i o n c o e f f i c i e n t
x10 5 cm2/ s e c ,D )
16
i s %. f
3 // I n t i a l i z a t i o n o f v a r i a b l e s
4 sigmasquare = 0.014 // S l o p e o f t h e g r a p h
5 t = 150 // s e c o n d s
6 // C a l c u l a t i o n s
7 D = ( sigmasquare /(2* t ) ) *10^5 // i n x 10 5 cm2/ s e c
8 // R e s u l t s
9 printf ( The v a l u e o f d i f f u s i o n c o e f f i c i e n t i s %. 1 f
x10 5 cm2/ s e c ,D )
17
Chapter 6
Diffusion of Interacting Species
cm2/ s e c
tHplus = DHplus /( DHplus + DClminus )
percentage = tHplus *100 // p e r c e n t
// R e s u l t s
printf ( The d i f f u s i o n c o e f f i c i e n t o f t h e s o l u t i o n
i s %. 1 f x10 5 cm2/ s e c , DHCl )
printf ( \n The t r a n s e f e r e n c e f o r p r o t o n s i s %. f
p e r c e n t , percentage )
18
1
2
3
4
5
6
7
8
9
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
z1 = 3
z2 = 1
D2 = 2.03*10^ -5 // cm2/ s e c
D1 = 0.62*10^ -5 // cm2/ s e c
// C a l c u l a t i o n s
D = (( z1 + z2 ) /(( z1 / D2 ) +( z2 / D1 ) ) ) *10^5 // x 10 5 cm2/
sec
10 // R e s u l t s
11 printf ( The d i f f u s i o n c o e f f i c i e n t i s %. 2 f x10 5 cm
2/ s e c ,D )
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
zCa = 2
zCl = 1
DCl = 2.03*10^ -5 // cm2/ s e c
DCa = 0.79*10^ -5 // cm2/ s e c
// C a l c u l a t i o n s
DCaCl2 = (( zCa + zCl ) /(( zCa / DCl ) +( zCl / DCa ) ) ) *10^5 // x
10 5 cm2/ s e c
10 // R e s u l t s
11 printf ( The d i f f u s i o n c o e f f i c i e n t o f CaCl2 i s %. 2 f
x10 5 cm2/ s e c , DCaCl2 )
19
2
3
4
5
6
7
8
9
10
11
12
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
pKa = 4.756
DH = 9.31*10^ -5 // cm2/ s e c
DCH3COO = 1.09*10^ -5 //cm2/ s e c
D2 = 1.80*10^ -5 //cm2/ s e c
Ct = 10 // m o l e s / l i t
// C a l c u l a t i o n s
K = 10^ pKa // l i t r e s / mol
D1 = 2/((1/ DH ) +(1/ DCH3COO ) )
D = 2/((1/ D1 ) +(1/ D2 ) ) *10^5 // D i f f u s i o n c o e f f i c i e n t
i n x 10 5 cm2/ s e c
13 // R e s u l t s
14 printf ( The d i f f u s i o n c o e f f i c i e n t o f a c e t i c a c i d i n
w a t e r i s %. 1 f x10 5 cm2/ s e c ,D )
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
sigma1 = 4.23 // a n g s t r o m s
sigma2 = 4.16 // Angstroms
sigma12 = ( sigma1 + sigma2 ) /2 // a n g s t r o m s
T = 573 // K e l v i n
M1 = 28
M2 = 26
p = 1 // atm
Omega = 0.99
Deff = 0.17 //cm2/ s e c
// c a l c u l a t i o n s
D = ((1.86*10^ -3) *(( T ) ^1.5) *(((1/ M1 ) +(1/ M2 ) ) ^0.5) )
/(( p ) *(( sigma12 ) ^2) * Omega ) //cm2/ s e c
15 Tou = D / Deff
16 // R e s u l t s
20
17
clc
// I n i t i a l z a t i o n o f v a r i a b l e s
kb = 1.38*10^ -16 // gcm2/ s e c 2K
T = 310 // K e l v i n
Mu = 0.01 // g /cms e c
R0 = 2.5*10^ -8 //cm
d = 30*10^ -8 //cm
// C a l c u l a t i o n s
D = ( kb * T /(6* %pi * Mu * R0 ) ) *(1+((9/8) *(2* R0 / d ) *( log (2*
R0 / d ) ) ) +(( -1.54) *(2* R0 / d ) ) ) //cm2/ s e c
11 // R e s u l t s
12 printf ( The d i f f u s i o n c o e f f i c i e n t i s %. 8 f cm2/ s e c ,
D)
clc
// I n i t i a l z a t i o n o f v a r i a b l e s
kb = 1.38*10^ -16 // gcm2/ s e c 2K
T = 373 // K
T0 = 273 // K
sigma = 2.83*10^ -8 // cm
p = 1.01*10^6 // g /cms e c 2
l = 0.6 // cm
d = 13*10^ -7 // cm
m = 2/(6.023*10^23) // gm/ s e c
M1 = 2.01
21
13 M2 = 28.0
14 sigma1 = 2.92 //cm
15 sigma2 = 3.68 //cm
16 sigma12 = ( sigma1 + sigma2 ) /2
17 omega = 0.80
18 deltac1 = (1/(22.4*10^3) ) *( T0 / T )
19 // C a l c u l a t i o n s
20 DKn = ( d /3) *( sqrt ((2* kb * T ) / m ) ) //cm2/ s e c
21 flux1 = ( DKn * deltac1 / l ) *10^5 // i n x 10 5 mol /cm2 s e c
22 D = (1.86*10^ -3) *( T ^(1.5) ) *(((1/ M1 ) +(1/ M2 ) ) ^0.5) /( p
23
24
25
26
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
d =0.01 //cm
s =2*10^ -2 //cm
// c a l c u l a t i o n s
phi = 4/3 * %pi *( d /2) ^3 /( s ^3)
disp ( On s o l v i n g , D )
D =5*10^ -7 //cm2/ s
// r e s u l t s
printf ( D i f f u s i o n i n homogeneous g e l = %. 1 e cm2/ s e c
,D )
22
Chapter 8
Fundamentals of Mass Transfer
clc
// i n i t i l i a z a t i o n o f v a r i a b l e s
Vap = (0.05/22.4) *23.8/760 // Vapour c o n c e n t r a t i o n
V = 18.4*10^3 // A i r Volume i n c c
A = 150 // L i q u i d Area i n Cm2
t1 = 180 // Time i n s e c
N1 = ( Vap * V ) /( A * t1 )
k = 3.4*10^ -2 // cm/ s e c
C = 0.9
// C a l c u l a t i o n s
t = ( - V /( k * A ) ) * log (1 - C )
thr = t /3600
// R e s u l t s
printf ( t h e t i m e t a k e n t o r e a c h 90 p e r c e n t
s a t u r a t i o n i s %. 3 f h r , thr )
1
2
3
4
5
6
7
8
9
10
11
12
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
Vo = 5 // cm/ s e c
a = 23 //cm2/cm3
z = 100 //cm
Crat = 0.62 // R a t i o o f c / C s a t
// C a l c u l a t i o n s
k = -( Vo /( a * z ) ) * log (1 - Crat )
// R e s u l t s
printf ( t h e mass t r a n s f e r c o e f f i c i e n t
s e c ,k )
i s %. 1 e cm/
p r o d u c t w i t h a i s %. 1 e s e c 1 , ka )
24
along the
4
5
6
7
8
9
10
11
12
13
14
// i n i t i a l i a z a t i o n o f v a r i a b l e s
rin = 0.05 // i n i t i a l r a d i u s o f o x y g e n b u b b l e i n cm
rf = 0.027 // f i n a l r a d i u s o f o x y g e n b u b b l e i n cm
tin = 0 // i n i t i a l t i m e i n s e c o n d s
tf = 420 // f i n a l t i m e i n s e c o n d s
c1 = 1/22.4 // o x y g e n c o n c e n t r a t i o n i n t h e b u b b l e i n
mol / l i t r e s
c1sat = 1.5*10^ -3 // o x y g e n c o n c e n t r a t i o n o u t s i d e
which i s s a t u r a t e d i n mol / l i t r e s
// C a l c u l a t i o n s
k = -(( rf - rin ) /( tf - tin ) ) *( c1 / c1sat )
// R e s u l t s
printf ( The mass t r a n s f e r c o e f f i c i e n t i s %. 1 e cm/
s e c ,k )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
kc = 3.3*10^ -3 // M. T . C i n cm/ s e c
d = 1 // d e n s i t y o f o x y g e n i n g /cm3
M = 18 // Mol wt o f w a t e r i n g / mol
Hatm = 4.4*10^4 // H e n r y s c o n s t a n t i n atm
HmmHg = Hatm *760 // H e n r y s c o n s t a n t i n mm Hg
// c a l c u l a t i o n s
ratio = d /( M * HmmHg ) // R a t i o o f c o n c e n t r a t i o n and
p r e s s u r e o f oxygen
12 kp = kc * ratio // M. T . O=C i n x 1 0 1 2 mol /cm2 s e c mm
Hg
13 // R e s u l t s
14 printf ( t h e M. T . C i n g i v e n u n i t s i s %. 1 e , kp )
25
Scilab code Exa 8.2.2 Mass transfer coefficient liquid and gas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
k1 = 1.18 // M. T . C i n l b mol NH3/ hr f t 2
k2 = 1.09 // M. T . C i n l b mol NH3/ hr f t 2
M2 = 18 // Mol wt o f NH3 i n l b / mol
d = 62.4 // D e n s i t y o f NH3 i n l b / f t 3
c1 = 30.5 // C o n v e r s i o n f a c t o r from f t t o cm
c2 = 1/3600 // C o n v e r s i o n f a c t o r from s e c o n d s t o
hour
R = 1.314 // Gas c o n s t a n t i n atm f t 3/ l b molK
T = 298 // T e m p e r a t u r e i n K e l v i n s c a l e
// C a l c u l a t i o n s
kf1 = ( M2 / d ) * k1 * c1 * c2 // M. T . C i n cm/ s e c
kf2 = R * T * k2 * c1 * c2 // M. T . C i n cm/ s e c
// R e s u l t s
printf ( t h e M. T . C f o r l i q u i d i s %. 1 e cm/ s e c , kf1 )
printf ( \n t h e M. T . C f o r g a s i s %. 1 f cm/ s e c , kf2 )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
l = 0.07 // f l i m t h i c k n e s s i n cm
v = 3 // w a t e r f l o w i n cm/ s e c
D = 1.8*10^ -5 // d i f f u s i o n c o e f f i c i e n t i n cm2/ s e c
crat = 0.1 // R a t i o o f c 1 and c 1 ( s a t )
// C a l c u l a t i o n s
26
length
// R e s u l t s
printf ( t h e column l e n g t h n e e d e d i s %. 1 f cm ,z )
sec
Da = 0.233 // D i f f u s i o n c o e f f i c i e n t i n cm2/ s e c
Nua = 0.15 // K i n e m a t i c v i s c o u s i t y i n a i r i n cm2/
sec
c1satw = 0.003 // S o l u b i l i t y o f b e n z o i c a c i d i n
w a t e r i n gm/cm3
p1sat = 0.30 // E q u i l i b r i u m Vapor p r e s s u r e i n mm Hg
ratP = 0.3/760 // R a t i o o f p r e s s u r e s
c1 = 1/(22.4*10^3) // M o l e s p e r volume
c2 = 273/298 // R a t i o o f t e m p e r a t u r e s
c3 = 122 // Grams p e r mole
// C a l c u l a t i o n s
kw = 0.62* Dw *(( omeg / Nuw ) ^0.5) *(( Nuw / Dw ) ^(1/3) ) // cm/
sec
Nw = kw * c1satw *10^6 // mass f l u x i n x 10 6 i n g /cm
2 s e c
ka = 0.62* Da *(( omeg / Nua ) ^0.5) *(( Nua / Da ) ^(1/3) ) //cm/
sec
c1sata = ratP * c1 * c2 * c3 // S o l u b i l i t y o f b e n z o i c a c i d
i n a i r i n gm/cm3
Na = ka * c1sata *10^6 // mass f l u x i n x 10 6 i n g /cm
2 s e c
27
// R e s u l t s
printf ( t h e mass f l u x i n w a t e r i s %. 1 f x10 6 g /cm
2 s e c , Nw )
23 printf ( \n t h e mass f l u x i n a i r i s %. 1 f x10 6 g /cm
2 s e c , Na )
21
22
f o r Oxygen i n
a i r i n cm2/ s e c
Dg = 0.23 // D i f f u s i o n c o e f f i c i e n t f o r Oxygen i n
w a t e r i n cm2/ s e c
R = 82 // Gas c o n s t a n t i n cm3atm / gmolK
T = 298 // T e m p e r a t u r e i n K e l v i n
l1 = 0.01 // f i l m t h i c k n e s s i n l i q u i d s i n cm
l2 = 0.1 // f i l m t h i c k n e s s i n g a s e s i n cm
H1 = 4.3*10^4 // H e n r y s c o n s t a n t i n atm
c = 1/18 // c o n c e n t r a t i o n o f w a t e r i n gmol /cm3
// C a l c u l a t i o n s
kl = ( Dl / l1 ) * c // m. t . c i n l i q u i d p h a s e i n mol /cm2/
sec
kp = ( Dg / l2 ) /( R * T ) // m. t . c i n g a s p h a s e i n gmol /cm
2 s e c atm
KL = 1/((1/ kl ) +(1/( kp * H1 ) ) ) // O v e r a l l m. t . c i n mol /
cm2 s e c l i q u i d p h a s e
// R e s u l t s
printf ( The o v e r a l l m. t . c i n l i q u i d s i d e i s %. 1 e mol
/cm2 s e c , KL )
28
for liquid
p h a s e i n cm2/ s e c
5 Dg = 0.090 // D i f f u s i o n c o
6
7
8
9
10
11
12
13
14
15
efficient
f o r gas phase in
cm2/ s e c
R = 82 // Gas c o n s t a n t i n cm3atm / gmolK
T = 363 // T e m p e r a t u r e i n K e l v i n
H1 = 0.70 // H e n r y s c o n s t a n t i n atm
c = 1/97 // c o n c e n t r a t i o n o f w a t e r i n gmol /cm3
// C a l c u l a t i o n s
kl = ( Dl /0.01) * c // m. t . c i n l i q u i d p h a s e i n mol /cm
2/ s e c
kp = ( Dg /0.1) /( R * T ) // m. t . c i n g a s p h a s e i n gmol /cm
2 s e c atm
KL = 1/((1/ kl ) +(1/( kp * H1 ) ) ) *10^5 // O v e r a l l m. t . c i n
x 10 5 mol /cm2 s e c l i q u i d p h a s e
// R e s u l t s
printf ( The o v e r a l l m. t . c i n l i q u i d s i d e i s %. 2 f x10
5 mol /cm2 s e c , KL ) // a n s w e r wrong i n t e x t b o o k
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
k1 = 3.0*10^ -4 // m. t . c i n b e n z e n e i n cm/ s e c
k2 = 2.4*10^ -3 // m. t . c i n w a t e r i n cm/ s e c
ratio = 150 // S o l u b i l i t y r a t i o i n b e n z e n e t o w a t e r
// C a l c u l a t i o n s
K1 = (1/((1/ k1 ) +( ratio / k2 ) ) ) *10^5 // O v e r a l l m. t . c
t h r o u g h b e n z e n e p h a s e i n x 10 5 cm/ s e c
29
9
10
// R e s u l t s
printf ( The o v e r a l l M. T . C t h r o u g h b e n z e n e p h a s e i s %
. 1 f x10 5 cm/ s e c , K1 )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
H1 = 75 // h e n r y s c o n s t a n t f o r ammonia i n atm
H2 = 41000 // h e n r y s c o n s t a n t f o r methane i n atm
p = 2.2 // p r e s s u r e i n atm
kya = 18 // p r o d u c t o f m. t . c and p a c k i n g a r e a p e r
t o w e r volume i n l b mol / hr f t 3
kxa = 530 // p r o d u c t o f m. t . c and p a c k i n g a r e a p e r
t o w e r volume i n l b mol / hr f t 3
// c a l c u a t i o n s
Kya1 = 1/((1/ kya ) + ( H1 / p ) / kxa ) // The o v e r a l l
c o e f f i c i e n t f o r ammonia i n l b mol / hr f t 3
Kya2 = 1/((1/ kya ) + ( H2 / p ) / kxa ) // The o v e r a l l
c o e f f i c i e n t f o r methane i n l b mol / hr f t 3
// R e s u l t s
printf ( The o v e r a l l c o e f f i c i e n t f o r ammonia i s %. 1 f
l b mol / hr f t 3 , Kya1 )
printf ( \n The o v e r a l l c o e f f i c i e n t f o r methane i s %
. 2 f l b mol / hr f t 3 , Kya2 )
30
Chapter 9
Theories of Mass Transfer
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
p1 = 10 // p r e s s u r e i n atm
H = 600 // h e n r y s c o n s t a n t i n atm
c1 = 0 // gmol / c c
N1 = 2.3*10^ -6 // mass f l u x i n mol /cm2 s e c
c = 1/18 // t o t a l C o n c e n t r a t i o n i n gmol / c c
D = 1.9*10^ -5 // D i f f u s i o n c o e f f i c i e n t i n cm2/ s e c
// C a l c u l a t i o n s
c1i = ( p1 / H ) * c // Component c o n c e n t r a t i o n i n gmol / c c
k = N1 /( c1i - c1 ) // Mass t r a n s f e r c o e f f i c i e n t i n cm/
sec
13 l = D / k // Film t h i c k n e s s i n cm
14 // R e s u l t s
15 printf ( The f i l m t h i c k n e s s i s %. 5 f cm ,l )
1
2
3
4
5
6
7
8
9
10
11
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
D = 1.9*10^ -5 // D i f f u s i o n c o e f f i c i e n t i n cm2/ s e c
k = 2.5*10^ -3 // M. T . C i n cm/ s e c
// C a l c u l a t i o n s
Lbyvmax = 4* D /(( k ^2) * %pi ) // s e c
tou = D / k ^2 // s e c
// R e s u l t s
printf ( The c o n t a c t t i m e i s %. 1 f s e c , Lbyvmax )
printf ( \ nThe s u r f a c e r e s i d e n t t i m e i s %. 1 f s e c , tou
)
6
7
8
9
10
11
12
13
14
b y p a s s e s t h e r e g i o n where t h e mass t r a n s f e r
occurs
v1 = 1 // cm/ s e c
al = 10^3
k = 10^ -3 // cm/ s e c
v2 = 3 // cm/ s e c
// C a l c u l a t i o n s
C1byC10first = const + (1 - const ) *( exp ( - k * al / v1 ) ) //
c1 / c10
appk1 = ( v1 / al ) *( log (1/ C1byC10first ) ) // Apparent m. t
. c f o r f i r s t c a s e i n cm/ s e c
C1byC10second = const + (1 - const ) *( exp ( -( sqrt (3) ) * k *
al / v2 ) ) // c 1 / c 1 0 i n s e c o n d c a s e
appk2 = ( v2 / al ) * log (1/ C1byC10second ) // a p p a r e n t m. t .
c f o r s e c o n d c a s e i n cm/ s e c
32
15
16
17
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
D = 1*10^ -5 //cm2/ s e c
d = 2.3 // cm
L = 14 // cm
v0 = 6.1 // cm/ s e c
// c a l c u l a t i o n s
k = ((3^(1/3) ) /( gamma (4/3) ) ) *(( D / d ) ) *((( d ^2) * v0 /( D * L
) ) ^(1/3) ) // cm/ s e c
10 // R e s u l t s
11 printf ( The a v e r a g e mass t r a n s f e r c o e f f i c i e n t i s %. 6
f cm/ s e c ,k )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
tn = 300000 // t u r b u l e n c e number
v0 = 10 // cm/ s e c
p = 1 // g / c c
33
7
8
9
10
11
12
13
14
15
16
17
18
19
mu = 0.01 // g /cms e c
delta = 2.5 //cm
D = 1*10^ -5 // cm2/ s e c
// C a l c u l a t i o n s
x = tn * mu /( v0 * p ) // cm
delta = ((280/13) ^(1/2) ) * x *(( mu /( x * v0 * p ) ) ^(1/2) ) //cm
deltac = (( D * p / mu ) ^(1/3) ) * delta //cm
k = (0.323*( D / x ) *(( x * v0 * p / mu ) ^0.5) *(( mu /( p * D ) ) ^(1/3)
) ) *10^5 // x 10 5 cm/ s e c
// R e s u l t s
printf ( The d i s t a n c e a t which t u r b u l e n t f l o w s t a r t s
i s %. f cm ,x )
printf ( \ nThe boundary l a y e r f o r f l o w a t t h i s p o i n t
i s %. 1 f cm , delta )
printf ( \ nThe boundary l a y e r f o r c o n c e n t r a t i o n a t
t h i s p o i n t i s %. 2 f cm , deltac )
printf ( \ nThe l o c a l m. t . c a t t h e l e a d i n g e d g e and a t
t h e p o s i t i o n o f t r a n s i s t i o n i s %. 1 f x10 5 cm/
s e c ,k )
34
Chapter 10
Absorption
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
c = 0.92
F = 93 // f t 1
nu = 2 // c s
dl = 63 // l b / f t 3
dg = 2.8 // l b / f t 3
G = 23 // l b / s e x
// C a l c u l a t i o n s
G11 = c *(( dl - dg ) ^0.5) /((( F ) ^0.5) *( nu ^0.05) ) // l b / f t
2 s e c
A = G / G11 // f t 2
d = sqrt (4* A / %pi ) // f t
// R e s u l t s
printf ( The d i a m e t e r o f t h e t o w e r i s %. 1 f f t ,d )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
G = 2.3 // Gas f l o w i n gmol / s e c
L = 4.8 // L i q u i d f l o w i n gmol / s e c
y0 = 0.0126 // e n t e r i n g g a s Mole f r a c t i o n o f CO2
yl = 0.0004 // E x i t i n g g a s mole f r a c t i o n o f CO2
xl = 0 // E x i t i n g l i q u i d mole f r a c t i o n o f CO2
d = 40 // D i a m e t e r o f t h e t o w e r i n cm
x0star = 0.0080 // i f t h e amine l e f t i n e q u i l i b r i u m
w i t h t h e e n t e r i n g g a s would c o n t a i n 0 . 8 0 p e r c e n t
C02
Kya = 5*10^ -5 // O v e r a l l M. T . C and t h e p r o d u c t t i m e s
t h e a r e a p e r volume i n gmol /cm3 s e c
// C a l c u l a t i o n s
A = %pi *( d ^2) /4
x0 = (( G *( y0 - yl ) ) /( L ) ) + xl // E n t e r i n g l i q u i d mole
f r a c t i o n o f CO2
m = y0 / x0star // E q u i l i b i r u m c o n s t a n t
c1 = G /( A * Kya )
c2 = 1/(1 -( m * G / L ) )
c3 = log (( y0 - m * x0 ) /( yl - m * xl ) )
l = ( G /( A * Kya ) ) *(1/(1 -(( m * G ) / L ) ) ) *( log (( y0 - m * x0 ) /( yl
- m * xl ) ) ) /100 // l e n g t h o f t h e t o w e r i n m e t r e s
// R e s u l t s
printf ( The l e n g t h o f t h e t o w e r i s %. 1 f m ,l )
36
7 Lf = 300 // L i q u i d f l o w i n c c / s e c
8 Kx = 2.2*10^ -3 // dominant t r a n s f e r c o
9
10
11
12
13
14
15
16
17
18
19
e f f i c i e n t in
l i q u i d i n cm/ s e c
// C a l c u l a t i o n s
A = %pi *60*60/4 // Area o f t h e c r o s s s e c t i o n i n s q
cm
L = Lf / A // L i q u i d f l u x i n cm2/ s e c
ratio = 1/( exp (( l * Kx ) / L ) )
percentage = (1 - ratio ) *100 // P e r c e n t a g e r e m o v a l o f
Oxygen
// R e s u l t s
printf ( t h e p e r c e n t a g e o f o x y g e n we can remove i s %
. 1 f , percentage )
// Rounding o f e r r o r i n t e x t b o o k
mixture e n t e r i n g
y2in =0.16 // mole f r a c t i o n o f n i t r o g e n i n g a s
mixture e n t e r i n g
y3in = 0.47 // mole f r a c t i o n o f h y d r o g e n i n g a s
mixture e n t e r i n g
x1out = 0.23 // mole f r a c t i o n o f Ammonia i n l i q u i d
coming o u t
y1out = 0.01 // mole f r a c t i o n o f ammonia i n g a s
coming o u t
G0 = 1.20 // Gas g l o w e n t e r i n g i n m3/ s e c
37
11 Mu = 1.787*0.01*0.3048/2.23 // l i q u i d
viscousity in
american u n i t s
12 dl = 62.4 // D e n s i t y o f
l i q u i d i n l b / f t 3
13 KG = 0.032 // O v e r a l l m. t . c i n g a s p h a s e i n
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
gas
s i d e m/ s e c
a = 105 // s u r f a c e a r e a i n m2/m3
gc = 32.2 // a c c e l e r a t i o n due t o g r a v i t y i n f t / s e c 2
dg = 0.0326 // D e n s i t y o f g a s i n l b / f t 3
// M o l e c u l a r w e i g h t s o f Ammonia , N2 , H2
M1 = 17
M2 = 28
M3 = 2
Nu = 1 // V i s c o u s i t y
// C a l c u l a t i o n s
AG0 = ( y2in + y3in ) * G0 /22.4 // T o t a l f l o w o f non
a b s o r b e d g a s e s i n kgmol / s e c
ANH3 = y1in * G0 /22.4 - ( y1out * AG0 ) /(1 - y1out ) //
Ammonia a b s o r b e d kgmol / s e c
AL0 = ((1 - x1out ) / x1out ) * ANH3 // t h e d e s i r e d w a t e r
f l o w i n kgmol / s e c
avg1 = 11.7 // A v e r a g e mol wt o f g a s
avg2 = 17.8 // avg mol wt o f l i q u i d
TFG = avg1 * AG0 /( y2in + y3in ) // T o t a l f l o w o f g a s i n kg /
sec
TFL = avg2 * AL0 /(1 - x1out ) // t o t a l f l o w o f l i q u i d i n kg
/ sec
F = 45 // P a c k i n g f a c t o r
GFF = 1.3*(( dl - dg ) ^0.5) /(( F ^0.5) *( Nu ^0.05) ) // Flux
we r e q u i r e i n l b / f t 2 s e c
GFF1 = GFF *0.45/(0.3^2) // i n kg /m2 s e c ( a n s w e r
wrong i n t e x t b o o k )
Area = TFG / GFF1 // Area o f t h e c r o s s s e c t i o n o f
tower
dia = ( sqrt (4* Area / %pi ) ) // d i a m e t e r i n m e t r e s
HTU = (22.4* AG0 / %pi * dia ^2) /( KG * a *4)
NTU = 5555
l = HTU * NTU // Length o f t h e t o w e r
// R e s u l t s
38
printf ( The f l o w o f p u r e w a t e r i n t o t h e t o p o f t h e
t o w e r %. 4 f kgmol / s e c , AL0 )
40 printf ( \n The d i a m e t e r o f t h e t o w e r i s %. 1 f m , dia )
41 printf ( \n The l e n g t h o f t h e t o w e r i s %. f m ,l )
39
39
Chapter 11
Mass Transfer in Biology and
Medicine
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
N1 = 1.6*10^ -10 // mol /cm2 s e c
c1star = 0 // mol / c c
c1 = 2.7*10^ -4/1000 // mol / c c
// C a l c u l a t i o n s
K = N1 /( c1 - c1star ) // cm/ s e c
// R e s u l t s
printf ( The mass t r a n s f e r c o e f f i c i e n t
s e c ,K )
40
i s %. 4 f cm/
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
d = 400*10^ -4 // cm
D = 10^ -5 // cm2/ s e c
v = 1 // cm/ s e c
l = 30 // cm
nu = 0.01 // cm2/ s e c
// C a l c u l a t i o n s
k1 = ( D / d ) *1.62*((( d ^2) * v / D * l ) ^(1/3) ) // Mass
t r a n s f e r co e f f i c i e n t i n s i d e the hollow f i b e r s i n
cm/ s e c
k2 = ( D / d ) *0.8*(( d * v / nu ) ^0.47) *(( nu / D ) ^(1/3) ) // Mass
t r a n s f e r co e f f i c i e n t o u t s i d e the hollow f i b e r s
i n cm/ s e c
// R e s u l t s
printf ( Mass t r a n s f e r c o e f f i c i e n t i n s i d e t h e h o l l o w
f i b e r s %. 2 e cm/ s e c , k1 )
printf ( \ nMass t r a n s f e r c o e f f i c i e n t o u t s i d e t h e
h o l l o w f i b e r s %. 1 e cm/ s e c , k2 )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
phi = 0.2
d = 200*10^ -4 // cm
dia = 3.8 // cm
Q = 4.1 // b l o o d f l o w i n c c / s e c
k = 3.6*10^ -4 // cm/ s e c
l = 30 // cm
// C a l c u l a t i o n s
a = 4* phi / d // cm2/cm3
B = Q /(( %pi * dia ^2) /4) // cm/ s e c
ratio1 = 1/(1+( k * a * l / B ) ) // D e q u a l s B
41
14
15
16
17
18
19
20
21
22
23
42
Chapter 12
Differential Distillation
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
l = 1.22 // l e n g t h o f t o w e r
Gflow = 0.026 // mol / s e c
GbyL = 0.07
dia = 0.088 // m
pl = 1.1/100 // p l = 1 y l
p0 = 0.04/100 // p0 = 1y0
// C a l c u l a t i o n s
A = %pi *( dia ^2) /4 // c r o s s s e c t i o n a l o f t o w e r i n m2
G = Gflow / A // Gas f l u x i n mol /m2 s e c
Kya = ( G / l ) *(1/(1 - GbyL ) ) *( log ( pl / p0 ) ) // Mass
t r a n s f e r p e r volume i n mol /m3 s e c
14 // R e s u l t s
15 printf ( The mass t r a n s f e r p e r volume i s %. 1 f mol /m
3 s e c , Kya )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
x1 =0.99
x2 =0.99
y1 =0.95
y2 =0.95
alpha =1.5
m =0.42
l =2
HTU =0.34
// c a l c u l a t i o n s
y1s = ( y1 -0.58) / m
xrd = ( x2 - y2 ) /( x1 - y1s )
Rd = xrd /(1 - xrd )
Rds = alpha * Rd
xl = (( Rds +1) * y1 - x1 ) /( Rds )
function z = ystar ( y )
z =0.58+0.42* y
endfunction
NTU = log (( ystar ( xl ) - y1 ) /( ystar ( x1 ) - x1 ) ) /(1 - m *(
Rds +1) / Rds )
NTU2 = l / HTU
xd2 =( ystar ( y1 ) - y1 ) / %e ^( NTU2 *(1 - m ) )
xd =(0.58 - xd2 ) /(1 - m )
// r e s u l t s
printf ( I n c a s e 1 , NTU = %. 2 f , NTU )
printf ( \n I n c a s e 2 , xd = %. 3 f , xd )
of variables
44
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
xf =0.4
x1 =0.98
y1 =0.97
y2 =0.625
x1 =0.97
x2 =0.4
ratio =1.5
HTU =0.2
// c a l c u l a t i o n s
A =[1 1; x1 1 - x1 ]
B =[ F ; xf * F ]
C=A\B
DA = C (1)
BA = C (2)
Rds =( y1 - y2 ) /( x1 - x2 )
Rd = Rds /(1 - Rds )
Rdreq = ratio * Rd
NTU =13.9
l = HTU * NTU
// r e s u l t s
printf ( l e n g t h o f t h e t o w e r = %. 1 f m ,l )
45
Chapter 13
Staged Distillation
clc
// I n t i a l i z a t i o n o f v a r i a b l e s
xD = 0.90 // D i s t i l l a t e mole f r a c t i o n
xB = 0.15 // R e b o i l e r mole f r a c t i o n
xF = 0.50 // Feed mole f r a c t i o n
F = 10 // mol / s e c
dg = 3.1*10^ -3 // g / c c
dl = 0.65 // g / c c
C = 0.11 // m/ s e c
// C a l c u l a t i o n s
D = (( xF * F ) -( xB * F ) ) /( xD - xB )
B = (( xF * F ) -( xD * F ) ) /( xB - xD )
L = 3.5* D
G = L+D
L1 = L + F
G1 = G
f = ( L1 / G1 ) *( sqrt ( dg / dl ) ) // f l o w p a r a m e t e r
vG = C *( sqrt (( dl - dg ) / dg ) ) // v a p o r v e l o c i t y i n m/ s e c
c = (22.4*10^ -3) *340/373
46
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
y1 = 0.9999
x0 = y1 // For a t o t a l c o n d e n s e r
y0 =0.58 + 0.42* x0 // The e q u i l b i r u m l i n e
LbyG = 0.75
yNplus1 = 0.99
A = LbyG /0.42
n= 1
// C a l c u l a t i o n s
xN = ( yNplus1 -((1 - LbyG ) * y1 ) ) / LbyG
yN = 0.58 + 0.42* xN
N = ( log (( yNplus1 - yN ) /( y1 - y0 ) ) / log ( A ) ) + n // , number
of stages
16 // R e s u l t s
17 printf ( t h e number o f s t a g e s a p p r o x i m a t e l y i s %. f ,N
)
47
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// i n i t i a l i z a t i o n o f v a r i a b l e s
x0 = 0.0082
xB = 10^ -4
L = 1
// C a l c u l a t i o n s
y0 = 36* x0
// There a r e two b a l a n c i n g e q u a t i o n s , mole f r a c t i o n
b a l a n c e , mole b a l a n c e , from them G i s
G0 = ( xB - x0 ) * L /( xB - y0 )
G = 3* G0
B = L-G
y1 = (( L * x0 ) -( B * xB ) ) / G
yNplus1 = 36* xB
xN = ( L * x0 - ( G *( y1 - yNplus1 ) ) ) / L
yN = 36* xN
N = ( log (( yNplus1 - yN ) /( y1 - y0 ) ) ) / log (( yNplus1 - y1 ) /( yN
- y0 ) )
// R e s u l t s
printf ( The number o f s t a g e s a r e %. 1 f ,N )
// Answer wrong i n t e x t b o o k
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
yn = 0.84
ynplus1 = 0.76
ystarn = 0.874
GA = 0.14 // kgmol / s e c
Al = 0.04 // m3
// C a l c u l a t i o n s
Murphree = ( yn - ynplus1 ) /( ystarn - ynplus1 )
Kya = GA /( Al *((1/ Murphree ) -1) )
// r e s u l t s
48
13
14
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
R = 82 // atmcm3/ gmolK
T = 273 + 60 // K e l v i n
pk = 1 // atm
a1 = 440 // s e c 1 ( o f g a s )
a2 = 1.7 // s e c 1 ( o f l i q u i d )
ck = 1.5/((0.47*(76.1) ) +(0.53*(158.7) ) )
x = 0.2
Vs = 10 // l i t r e s
GA = 59 // gmol / s e c
m = 1.41
// C a l c u l a t i o n s
k = ( R * T ) /( pk * a1 ) + ( m /( ck * a2 ) )
Kya = (1/ k ) *1000 // gmol / l s e c
Murphree = 1 - exp ( - Kya * Vs /( GA ) )
// R e s u l t s
printf ( The murphree e f f i c i e n c y i s %. 2 f , Murphree )
49
Chapter 14
Extraction
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
Rat1 = (6.5/3) *(1 -0.47) // a s Rat = x0 / y0
m = 0.14
H = (6.5*10^3) /3600 // E x t r a c t f l o w i n g / s e c
L = (3*10^3) /3600 // S o l v e n t f l o w i n g / s e c
d = 10 // cm
A = 0.25* %pi * d ^2 // cm2
l = 65 // cm
// C a l c u l a t i o n s and R e s u l t s
Kya = (( H /( l * A ) ) *(1/(1 -(( m * H ) / L ) ) ) *( log ((1 -0.14* Rat1
) /(0.47) ) ) ) *10^3 // kg /m3 s e c
printf ( The v a l u e o f Kya i s %. 2 f kg /m3 s e c , Kya )
Rat2 = (6.5/3) *(1 -0.1) // For c a s e B
l2 = l *( log (1/((1 -0.14* Rat2 ) /(0.1) ) ) ) /( log
(1/((1 -0.14* Rat1 ) /(0.47) ) ) ) /100 // m
printf ( \ nThe l e n g t h f o r 90 p e r c e n t r e c o v e r y i s %. 1 f
m , l2 )
50
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
m = 0.018
H = 450 // l i t r e s / h r
L = 37 // l i t r e s / h r
Ynplus1byY1 = 100
// C a l c u l a t i o n s
E =m*H/L
nplus1 = log (( Ynplus1byY1 *((1/ E ) -1) ) +1) / log (1/ E )
n = nplus1 -1
printf ( The number o f i d e a l s t a g e s a r e %. f ,n )
N = 0.60 // Murphree e f f i c i e n c t
E1 = ( m * H / L ) + (1/ N ) - 1
nplus1 = log (( Ynplus1byY1 *((1/ E1 ) -1) ) +1) / log (1/ E1 )
n = nplus1 -1
printf ( \ nThe number o f s t a g e s r e q u i r e d i f Murphree
e f f i c i e n c y i s 60 p e r c e n t i s %. f ,n )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
F = 5 // kg f e e d
S = 2 // kg s o l v e n t
E = F - S // kg e x t r a c t
W = 1 // kg w a s t e
EG = 80 // ppm
51
52
Chapter 15
Adsorption
bed i n min
5 tB = 23 // Time t a k e n f o r
n i c k e l to break through
f e r r i c i n min
6 l = 120 // bed l e n g t h i n cm
7 // C a l c u l a t i o n s
8 Theta = 2* tB /( tB + tE )
9 lunused = (1 - Theta ) *120 // cm
10 // R e s u l t s
11 printf ( t h e l e n g t h o f t h e bed u n u s e d i s %. 1 f cm ,
lunused )
53
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
tB = 10 // min
tE = 14 // min
l = 0.12 //m
l2 = 10 // m
c = 10000
A = 1/10000 // m2
// C a l c u l a t i o n s
theta = 2* tB /( tB + tE )
l1 = l *(1 - theta ) // m , l e n g t h o f bed u n u s e d i n f i r s t
case
V1 = c * A * l // m3
l3 = l2 - l1 // l e n g t h o f bed u n u s e d i n s e c o n d c a s e
d = sqrt ( V1 *4/( l3 * %pi ) ) // m
V2 = c *( l - l1 ) * A * l2 / l3 // volume n e e d e d f o r s e c o n d
case
// R e s u l t s
printf ( The volume o f a d s o r b e n t n e e d e d i f t h e bed i s
k e p t 12 cm d e e p i s %. 2 f m3 , V1 )
printf ( \ nThe volume o f a d s o r b e n t n e e d e d i f t h e bed
l e n g t h i s 10 m l o n g i s %. 4 f m3 , V2 )
clc
// i n t i a l i z a t i o n o f v a r i a b l e s
tB1 = 38 // d a y s , b r e a k t h r o u g h t i m e
tE1 = 46 // days , e x h a u s t i o n t i m e
c = 2 // number o f t i m e s f l o w d o u b l e d
// C a l c u l a t i o n s
theta1 = 2* tB1 /( tB1 + tE1 ) // i n t h e f i r s t c a s e
ratio1 = 1 - theta1 // r a t i o o f u n u s e d bed l e n g t h t o
t o t a l bed l e n g t h
54
10 ratio2 = ratio1 * c
11 tB2 = ((1/ c ) *( tB1 + 0.5*( tE1 - tB1 ) ) ) * ratio2 //
12
13
14
15
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
slope = 0.93/3600 // s e c 1
q0 = 300 // 300 t i m e s y0
E = 0.4 // v o i d f r a c t i o n
d = 310*10^ -4 //cm
v = 1/60 //cm/ s e c
Nu = 0.01 //cm2/ s e c
D = 5*10^ -6 //cm2/ s e c
// C a l c u l a t i o n s
ka1 = slope * q0 *(1 - E ) // s e c 1
k = ( D / d ) *1.17*(( d * v / Nu ) ^0.58) *(( Nu / D ) ^0.33) // cm/
sec
a = (6/ d ) *(1 - E ) //cm2/cm3
ka2 = k * a // s e c 1
// R e s u l t s
printf ( The r a t e c o n s t a n t i s %. 3 f s e c 1 , ka1 )
printf ( \ nThe r a t e c o n s t a n t o f l i t e r a t u r e i s %. 3 f
s e c 1 , ka2 )
55
Chapter 16
General Questions and
Heterogenous Chemical
Reactions
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
K = 0.0087 // o v e r a l l m. t . c i n cm/ s e c
D = 0.98*10^ -5 // cm2/ s e c
L = 0.3 // cm
v = 70 // cm/ s e c
nu = 0.01 //cm2/ s e c
// C a l c u l a t i o n s
k1 = 0.646*( D / L ) *(( L * v / nu ) ^(0.5) ) *(( nu / D ) ^(1/3) ) //
cm/ s e c
11 k2 = (1/((1/ K ) -(1/ k1 ) ) ) // / cm/ s e c
12 // R e s u l t s
13 printf ( The r a t e c o n s t a n t f o r t h e r e a c t i o n i s %. 2 f
cm/ s e c , k2 )
56
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
D =2*10^ -6 // cm2/ s e c
nu = 0.036 // cm2/ s e c
d1 = 1.59 // cm
d2 = 1 // cm
deltap = 1*10^ -5 // g / c c ( c h a n g e i n d e n s i t y )
p = 1 // g / c c
Re = 11200 // R e y n o l d s number
g = 980 // cm/ s e c 2
dis = 5.37*10^ -9 // g /cm2 s e c // D i s s o l u t i o n r a t e
sol = 1.48*10^ -3 // g / c c
// C a l c u l a t i o n s
k11 = 0.62*( D / d1 ) *( Re ^(0.5) ) *(( nu / D ) ^(1/3) ) // cm/ s e c
K1 = dis / sol // t h e o v e r a l l mass t r a n s f e r c o
e f f i c i e n t i n cm/ s e c
k2 = (1/((1/ K1 ) -(1/ k11 ) ) ) // / cm/ s e c /// t h e r a t e
c o n s t a n t i n cm/ s e c
k12 = ( D / d2 ) *(2+(((0.6*(( d2 ^3) *( deltap ) * g /( p * nu ^2) ) )
^0.25) *(( nu / D ) ^(1/3) ) ) ) // cm/ s e c
K2 = 1/((1/ k12 ) +(1/ k2 ) ) // cm/ s e c ( t h e o v e r a l l mtc )
// R e s u l t s
printf ( t h e r a t e o f s u r f a c e r e a c t i o n i s %. 7 f cm/ s e c
, k2 )
printf ( \ nThe d i s s o l u t i o n r a t e f o r 1 cm g a l l s t o n e i s
%. 7 f cm/ s e c , K2 )
57
Chapter 17
Homogenous Chemical
Reactions
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
K = 1.46*10^ -4 // l i t / mols e c ( r a t e c o n s t a n t )
cpyridine = 0.1 // mol / l i t
K1 = 2.0*10^ -5 // cm2/ s e c
// C a l c u l a t i o n s
D = K * cpyridine // s e c 1
k0 = ( sqrt ( D * K1 ) ) *10^5 // i n x 10 5 cm/ s e c
// R e s u l t s
printf ( The d i f f u s i o n c o e f f i c i e n t o f m e t h y l i o d i d e
i n b e n z e n e i s %. 1 f x10 5 cm/ s e c , k0 )
58
2
3
4
5
6
7
8
9
10
11
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
R = 0.3 // cm
K1 = 18.6 // s e c 1
D = 0.027 // cm2/ s e c
// C a l c u l a t i o n s
l = R /3 // cm
n = ( sqrt ( D /( K1 *( l ^2) ) ) ) * coth ( sqrt ( K1 *( l ^2) / D ) )
// R e s u l t s
printf ( The v a l u e o f r e d u c t i o n i n r e a c t i o n r a t e due
t o d i f f u s i o n i s %. 2 f ,n )
e f f i c i e n t i n cm2/
sec
6 // C a l c u l a t i o n s
7 K1 = ( k ^2) / D
8 // R e s u l t s
9 printf ( The r a t e
c o n s t a n t i s %. f s e c 1 , K1 )
e f f i c i e n t of the
6 D1 = 0.7*10^ -5 // The d i f f u s i o n c o
e f f i c i e n t of the
o r i g i n a l compound i n cm2/ s e c
7 c2l = 1.5*10^ -5 // t h e new s o l u b i l i t y i n mol / c c
8 c1l = 3*10^ -7 // The o l d s o l u b i l i t y i n mol / c c
9 // C a l c u l a t i o n s
10 k = 1 + (( D2 * c2l ) /( Nu * D1 * c1l ) ) // The number o f t i m e s
11
12
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
// For f i r s t r e a c t i o n
D1 = 9.3*10^ -5 // cm2/ s e c
D2 = 5.3*10^ -5 // cm2/ s e c
K1exp = 1.4*10^11 // l i t r e / mols e c
sigma12 = 2.8*10^ -8 // cm
N = (6.02*10^23) /10^3 // l i t e r / cc mol
K1 = 4* %pi *( D1 + D2 ) * sigma12 * N // Rate c o n s t a n t f o r
f i r s t r e a c t i o n i n l i t r e / mols e c
printf ( The r a t e c o n s t a n t f o r t h i s r e a c t i o n i s %. 1 e
l i t r e / , K1 )
if K1 > K1exp
then disp ( T h i s r e a c t i o n i s c o n t r o l l e d more by
chemical f a c t o r s )
else
disp ( T h i s r e a c t i o n i s d i f f u s i o n c o n t r o l l e d
)
end
// S e c o n d r e a c t i o n
60
19 D1 = 5.3*10^ -5 // cm2/ s e c
20 D2 = 0.8*10^ -5 // cm2/ s e c
21 sigma12 = 5*10^ -8 // cm
22 K1exp = 3.8*10^7 // l i t r e / mols e c
23 K1 = 4* %pi *( D1 + D2 ) * sigma12 * N // Rate c o n s t a n t
24
25
26
27
28
29
s e c o n d r e a c t i o n i n l i t r e / mols e c
printf ( The r a t e c o n s t a n t f o r t h i s r e a c t i o n i s %. 1 e
l i t r e / mols e c , K1 )
if K1 > K1exp then
disp ( T h i s r e a c t i o n i s c o n t r o l l e d more by
chemical f a c t o r s )
else
disp ( The r e a c t i o n i s d i f f u s i o n c o n t r o l l e d )
end
for
clc
// i n t i t i a l i z a t i o n o f v a r i a b l e s
d = 5 // cm
v = 200 // cm/ s e c
nu = 0.01 // cm2/ s e c
D = 3.2*10^ -5 // cm2/ s e c
l = 30*10^ -4 // cm
// C a l c u l a t i o n s
Re = d * v / nu // Flow i s t u r b u l e n t
E = d * v /2 // cm2/ s e c
tou1 = ( d ^2) /(4* E ) // s e c
tou2 = ( l ^2) /(4* D )
tou = tou1 + tou2 // s e c
// R e s u l t s
printf ( The r e l a x a t i o n t i m e i s %. 2 f s e c , tou )
61
Chapter 18
Membranes
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
d = 240*10^ -4 // cm
D = 2.1*10^ -5 // cm2/ s e c
v = 10 // cm/ s e c
Nu = 0.01 // cm2/ s e c
E = 0.5
ka1 = 0.09 // s e c 1
// C a l c u l a t i o n s
k = 0.8*( D / d ) *(( d * v / Nu ) ^0.47) *(( Nu / D ) ^0.33)
a = 4*(1 - E ) / d // cm2/cm3
ka2 = k * a
ratio = ka2 / ka1
// r e s u l t s
printf ( The r a p i d n e s s i s r o u g h l y %. f t i m e s t h a t o f
s p a r g e r , ratio )
1
2
3
4
5
6
7
8
9
10
11
12
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
p1 = 10^ -10 // cm 3 ( s t p ) cm/cm2 s e c cmHg
c = 1/(22.4*10^3) // mol a t s t p / c c
P = p1 * c // f o r p r o p e r u n i t s
R = 6240 // cmHg cm3 // molK ( g a s c o n s t a n t )
T = 298 // K e l v i n
// C a l c u l a t i o n s
DH = P * R * T *10^9 // P e r m e a b i l i t y i n x 10 9 cm2/ s e c
// R e s u l t s
printf ( The p e r m e a b i l i t y i s %. 1 f x10 9 cm2/ s e c , DH
)
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
P = 1*10^ -4 // membrane p e r m e a b i l i t y i n cm2/ s e c
l = 2.3*10^ -4 // membrane t h i c k n e s s i n cm
d = 320*10^ -4 // f i b e r d i a i n cm
E = 0.5 // v o i d f r a c t i o n
c0 = 1 // i n i t i a l c o n c e n t r a t i o n
c = 0.1 // f i n a l c o n c e n t r a t i o n
// C a l c u l a t i o n s
a = 4*(1 - E ) / d // s u r f a c e a r e a p e r module volume i n
cm2/cm3
12 t = ( log ( c0 / c ) ) *( l / P ) / a // t = z / v i n s e c o n d s , t i m e
g a s s p e n d s i n t h e module i n s e c
13 // R e s u l t s
14 printf ( The g a s s p e n d s %. 2 f s e c i n t h e module ,t )
63
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
R = 0.082 // l i t r e atm / molK
T = 283 // K e l v i n
V2 = 0.018 // l i t r e / mol
// For f i r s t s o l u t i o n c o n t e n t s a r e s u c r o s e and w a t e r
w1 = 0.01 // gm o f s u c r o s e
MW1 = 342 // MW o f s u c r o s e
w2 = 0.09 // gm o f w a t e r
MW2 = 18 // MW o f w a t e r
n1 = 1 // no o f p a r t i c l e s s u c r o s e d i v i d e s i n t o i n
water
// C a l c u l a t i o n s
x1juice = ( n1 * w1 / MW1 ) /(( n1 * w1 / MW1 ) +( w2 / MW2 ) ) // Mole
fracion of sucrose
// For s e c o n d s o l u t i o n , c o n t e n t s a r e NaCl and w a t e r
w1 = 35 // gm o f NaCl
MW1 = 58.5 // MW o f N a c l
w2 = 100 // gm o f w a t e r
MW2 = 18 // MW o f w a t e r
n1 = 2 // no o f p a r t i c l e s s u c r o s e d i v i d e s i n t o i n
water
// C a l c u l a t i o n s
x1brine = ( n1 * w1 / MW1 ) /(( n1 * w1 / MW1 ) +( w2 / MW2 ) ) // Mole
fracion of sucrose
// C a l c u l a t i o n o f d i f f e r e n c e i n Osmotic p r e s s u r e
DeltaPi = ( R * T / V2 ) * log ((1 - x1juice ) /(1 - x1brine ) ) //
atm
// R e s u l t s
printf ( The o s m o t i c p r e s s u r e d i f f e r e n c e i s %. f atm ,
DeltaPi )
// a n s w e r wrong i n t e x t b o o k
64
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
D1 =0.0035
l =2.59 //cm
t =1.62 // h r
C1 =0.03 // mol / l
T1 =298 //K
R =0.0821 // arm / mol K
D2 =0.005
t2 =0.49 // h r
Ps =733 //mm o f Hg
P =760 //mm o f Hg
// c a l c u l a t i o n s
Lps = D1 * l /( t *3600) /( C1 * R * T1 )
Lp =( D2 * l /( t2 *3600) + Lps *( C1 * R * T1 ) ) /( Ps / P )
Lp =2.4*10^ -6
sig = Lps / Lp
sig2 =0.95
// r e s u l t s
printf ( T r a n s p o r t c o e f f i c i e n t f o r p h a s e 1 = %. 2 f ,
sig )
22 printf ( \n T r a n s p o r t c o e f f i c i e n t f o r p h a s e 2 = %. 2 f
, sig2 )
of variables
65
D1 = 3.0*10^ -7 // cm2/ s e c
H1 = 0.18 // mol / cc atm
D2 = 1.4*10^ -6 // cm2/ s e c
H2 = 2.2*10^ -3 // mol / cc atm
H11 = 13 // atmc c / mol
H21 = 0.6 // atmc c / mol
// C a l c u l a t i o n s
Beta = ( D1 * H1 /( D2 * H2 ) ) *( H11 / H21 ) // Membrane
selectivity
12 // R e s u l t s
13 printf ( The membrane s e l e c t i v i t y i s %. f , Beta )
4
5
6
7
8
9
10
11
clc
// I n i t i a l i z a t i o n o f v a r i a b l e s
D = 2*10^ -5 // cm2/ s e c
l = 32*10^ -4 // cm
c = 6.8*10^ -6 // mol / c c
C10 = 10^ -4 // mol / c c
function [ j ] = Totalflux (H , K )
j = ( D * H * C10 / l ) +(( D * H * K * c * C10 ) /( l *(1+( H * K * C10 ) ) )
)
endfunction
// For L i t h i u m C h l o r i d e
H1 = 4.5*10^ -4 // P a r t i t i o n c o e f f i c i e n t
K1 = 2.6*10^5 // c c / mol a s s o c i a t i o n c o n s t a n t
j1 = ( Totalflux ( H1 , K1 ) ) *10^10 // TOtal f l u x i n x
10 10 mol /cm2 s e c
printf ( The t o t a l f l u x f o r L i t h i u m C h l o r i d e i s %. 1 f
x10 10 mol /cm2 s e c , j1 )
// For Sodium C h l o r i d e
H2 = 3.4*10^ -4 // P a r t i t i o n c o e f f i c i e n t
K2 = 1.3*10^7 // c c / mol a s s o c i a t i o n c o n s t a n t
66
in x
10 10 mol /cm2 s e c
printf ( \ nThe t o t a l f l u x f o r Sodium C h l o r i d e i s %. 1 f
x10 10 mol /cm2 s e c , j2 )
// For p o t a s s i u m C h l o r i d e
H3 = 3.8*10^ -4 // P a r t i t i o n c o e f f i c i e n t
K3 = 4.7*10^9 // c c / mol a s s o c i a t i o n c o n s t a n t
j3 = ( Totalflux ( H3 , K3 ) ) *10^10 // TOtal f l u x i n x
10 10 mol /cm2 s e c
printf ( \ nThe t o t a l f l u x f o r P o t a s s i u m C h l o r i d e i s %
. 1 f x10 10 mol /cm2 s e c , j3 )
67
Chapter 19
Controlled Release and
Phenomena
of permethrin in
kg /ms e c 2
6 R = 8.31 // Gas c o n s t a n t i n kgm2/ s e c 2gmolK
7 l = 63*10^ -6 // membrane t h i c k n e s s i n m
8 A = 12*10^ -4 // a r e a s u r r o u n d e d by t h e membrane i n m
9
10
11
12
13
14
15
16
2
M1 = 19*10^ -3 // P e r m i t h r i n r e l e a s e i n gmol
t = 24*3600 // t i m e t a k e n t o r e l e a s e
T = 298 // K e l v i n
MW = 391 // Mol wt
// C a l c u l a t i o n s
c1 = VP /( R * T ) // C 1 s a t
P = ( M1 /( t * MW ) ) *( l / c1 ) *(1/ A ) *10^ -3 // P e r m e a b i l i t y i n
cm2/ s e c
// R e s u l t s
68
17
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
M = 25*10^ -6 //gm/ h r
d = 0.006 // g / c c
P = 1.4*10^ -4 // p e r m e a n c e i n cm/ s e c
Deltac1 = 0.006 // E q u i v a l e n t // c c
// C a l c u l a t i o n s
c1 = 1/3600 // u n i t c o n v e r s i o n f a c t o r h r / s e c
c2 = 1/18 // u n i t c o n v e r s i o n f a c t o r mole / c c
m = M * c1 * c2 / d // m o l e s / s e c
A = m /( P * Deltac1 ) //cm2
// R e s u l t s
printf ( you w i l l n e e d a membrane a r e a o f %. 3 f cm2
,A )
69
Chapter 20
Heat Transfer
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
T = 26.2 // c e n t i g r a d e
T0 = 4 // c e n t i g r a d e
Tinf = 40 // c e n t i g r a d e
z = 1.3 //cm
t = 180 // s e c o n d s
// c a l c u l a t i o n s
k = erfinv (( T - T0 ) /( Tinf - T0 ) )
alpha = (1/(4* t ) ) *(( z / k ) ^2) //cm2/ s e c
// R e s u l t s
printf ( The t h e r m a l d i f f u s i v i t y i s %. 3 f , alpha ) //
a n s w e r wrong i n t e x t b o o k
70
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
Q = 18 // m3/ h r
z = 2.80 //m
T = 140 //C
T1 = 240 //C
T2 = 20 //C
p = 900 // kg /m3
Cp = 2 // W/ kgK
d = 0.05 //m
// C a l c u l a t i o n s
A = %pi *( d ^2) /4
v = Q *(1/(3600*40) ) /( A )
U = ( v * p * Cp * d /(4* z ) ) *( log (( T1 - T2 ) /( T1 - T ) ) ) //W/m2K
DeltaT = (( T1 - T2 ) +( T1 - T ) ) /2 //C
q = ( Q *(1/(3600*40) ) * p * Cp /( %pi * d * z ) ) *( T - T2 ) //W/m2K
U1 = q / DeltaT //W/m2K
// R e s u l t s
printf ( The o v e r a l l h e a t t r a n s f e r c o e f f i c i e n t b a s e d
on l o c a l temp d i f f e r e n c e i s %. 2 f W/m2K ,U )
21 printf ( \ nThe o v e r a l l h e a t t r a n s f e r c o e f f i c i e n t
b a s e d on a v e r a g e temp d i f f e r e n c e i s %. 2 f W/m2K
, U1 )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
T = 32 //F
T0 = 10 //F
Tinf = 80 //F
U = 3.6 // Btu / hr f t 2F
A = 27 // f t 2
d = 8.31 // l b / g a l
71
10 V = 100 // g a l
11 Cv = 1 // Btu / l b F
12 // C a l c u l a t i o n s
13 t = ( - log (( T - T0 ) /( Tinf - T0 ) ) ) * d * V * Cv /( U * A ) // h r
14 // R e s u l t s
15 printf ( The t i m e we can w a i t b e f o r e t h e w a t e r i n t h e
t a n k s t a r t s t o f r e e z e i s %. f h r ,t )
d e l t a T , d i v i d e both to g e t
l = 10/12 // f t
k = 0.03 // Btu / hrf t F
// C a l c u l a t i o n s
l2 = 2 // f e e t
k2 = 0.03 // Btu / hrf t F
h = ((1/0.6) -1) * k / l // Btu / hr f t 2F
U = 1/((1/ h ) +( l2 / k2 ) ) // Btu / hr f t 2F
Savings = U *100/ h
// R e s u l t s
printf ( The s a v i n g s due t o i n s u l a t i o n i s a b o u t %. f
p e r c e n t , Savings )
variables
72
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
M = 28
sigma = 3.80 // a n g s t r o m s
omega = 0.87
d1 = 0.05 //m
v1 = 17 //m/ s e c
Mu1 = 3.3*10^ -5 // kg /ms e c
p1 = 5.1*10^ -1 // kg /m3
Cp1 = 1100 // J / kgK
k2 = 42 // W/mK
l2 = 3*10^ -3 //m
d3 = 0.044 //m
v3 = 270 //m/ s e c
p3 = 870 // kg /m3
Mu3 = 5.3*10^ -4 // kg /ms e c
Cp3 = 1700 // J / kgK
k3 = 0.15 //W/mK
// C a l c u l a t i o n s
kincal = (1.99*10^ -4) *( sqrt ( T / M ) ) /(( sigma ^2) * omega )
//W/m2K
k = kincal *4.2*10^2 // k i n W/mK
h1 = 0.33*( k / d1 ) *(( d1 * v1 * p1 / Mu1 ) ^0.6) *(( Mu1 * Cp1 / k )
^0.3) //W/m2K
h2 = k2 / l2 //W/m2K
h3 = 0.027*( k3 / d3 ) *(( d3 * v3 * p3 / Mu3 ) ^0.8) *(( Mu3 * Cp3 / k3
) ^0.33) //W/m2K
U = 1/((1/ h1 ) +(1/ h2 ) +(1/ h3 ) ) //W/m2K
// R e s u l t s
printf ( The o v e r a l l h e a t t r a n s f e r c o e f f i c i e n t i s %.
f W/m2K ,U )
of variables
73
15
16
17
18
19
20
21
22
23
// For window w i t h t h r e e p a n e s 1 . 5 cm e a c h a p a r t
k = 0.57*10^ -4 // c a l /cms e c K
l = 1.5 //cm
DeltaT = 15 // K e l v i n
g = 980 // cm/ s e c 2
Nu = 0.14 // cm2/ s e c
// c a l c u l a t i o n s
h = (0.065*( k / l ) *((( l ^3) * g * DeltaT /(( Nu ^2) * T ) ) ^(1/3) )
*(( l / L ) ^(1/9) ) ) *10^4 // f o r two pane i n x 10 4 c a l
/cm2 s e c K
24 printf ( \ nThe h e a t t r a n s f e r c o e f f i c e n t f o r t h r e e
p a n e s i s %. 2 f x10 4 c a l /cm2 s e c K ,h /2) //
B e c a u s e t h e r e a r e two g a p s
74
Chapter 21
Simultaneous Heat and Mass
Transfer
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
Tdisc = 30 // C e n t i g r a d e
T = 21 // C e n t i g r a d e
T0 = 18 // C e n t i g r a d e
R0 = 1.5 // cm
V = 1000 // c c
t = 3600 // s e c o n d s
Nu = 0.082 //cm2/ s e c
omeg = 2* %pi *10/60 // s e c 1
// C a l c u l a t i o n s
k = -V *( log (( Tdisc - T ) /( Tdisc - T0 ) ) ) /( %pi *( R0 ^2) * t ) //
k = h /d cp cm/ s e c
15 alpha = ((1/0.62) *( k ) *( Nu ^(1/6) ) *( omeg ^( -0.5) ) ) ^1.5
// cm2/ s e c
16 // R e s u l t s
17 printf ( t h e v a l u e o f t h e r m a l d i f f u s i v i t y i s %. 1 e cm
75
2/ s e c , alpha )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
d =1000 // kg /m3
h = 30 // W/m2Cs e c
Hvap = 2300*10^3 // J / kg
T = 75 // C
Ti = 31 // C
l = 0.04 // m
epsilon = 0.36
c = 3600 // s e c / h r
t1 = ( Hvap / h ) *(1/( T - Ti ) ) *( l * epsilon * d ) // s e c
t = t1 / c // i n h r
// R e s u l t s
printf ( The t i m e t a k e n f o r d r y i n g i s %. f h r ,t ) //
a n s w e r wrong i n t e x t b o o k
clc
// i n t i a l i z a t i o n o f v a r i a b l e s
d = 100*10^ -4 // cm
v = 10^ -3 // cm/ s e c
nu = 0.2 // cm2/ s e c
DS = 0.3 // cm2/ s e c
DG = 3*10^ -7 // cm2/ s e c
H = 4.3*10^ -4 // a t 60 d e g r e e c e n t i g r a d e
// C a l c u l a t i o n s
76
cm/ s e c
12 k = kG * H
13 t = 30* DG / k ^2
14 // R e s u l t s
15 printf ( The mass t r a n s f e r
coefficient
i s %. 5 f cm/ s e c
,k )
printf ( \nTHe t i m e n e e d e d t o d r y t h e p a r t i c l e
f s e c ,t )
17 // Answer wrong i n t e x t b o o k s t a r t i n g from kG
16
i s %. 6
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
slope = 230 // J / gmolC
nair = 60 // gmol /cm2 s e c
CpH2O = 75 // J / gmolC
f = 0.4 // C o r r e c t i o n f a c t o r
F = 2150/(60*0.018) // gmol /m2 s e c
kc = 20/3
a = 3 // m2/m3
k = 2.7 // i n t e g r a l o f dH/ HiH w i t h l i m i t s Hout and
Hin
// C a l c u l a t i o n s
nH2Omax = slope * nair / CpH2O // gmol /m2 s e c
nH2O = nH2Omax *(1 - f ) // gmol /m2 s e c
A = F / nH2O // m2
l = ( nair /( kc * a ) ) * k // m
// R e s u l t s
printf ( The f l o w r a t e o f t h e w a t e r p e r t o w e r c r o s s
s e c t i o n i s %. f gmol H2O/m2 s e c , nH2O )
printf ( \ nThe a r e a o f t o w e r c r o s s s e c t i o n i s %. f m2
,A )
77
20
printf ( \ nThe l e n g t h o f t h e t o w e r i s %. 1 f m ,l )
clc
// i n i t i a l i z a t i o n o f v a r i a b l e s
A = 0.01 // cm2
l = 1 // cm
VA = 3 // c c
VB = 3 // c c
alphagas = 0.29
alphaliquid = -1.3
x1 = 0.5
x2 = 0.5
deltaT = 50 // K e l v i n ThotT c o l d = 50
Tavg = 298 // k e l v i n
Dgas = 0.3 // cm2/ s e c
Dliquid = 10^ -5 // cm2/ s e c
// c a l c u l a t i o n s
deltaY = alphagas * x1 * x2 * deltaT / Tavg // Y1hotY 1 c o l d
= DeltaY
deltaX = alphaliquid * x1 * x2 * deltaT / Tavg // X1hot
X 1 c o l d = DeltaX
Beta = ( A / l ) *((1/ VA ) +(1/ VB ) ) //cm2
BetaDgasinverse = 1/( Beta * Dgas ) // s e c
BetaDliquidinverse = (1/( Beta * Dliquid ) )
/(365*24*60*60)
// R e s u l t s
printf ( The s e p e r a t i o n a c h i e v e d f o r g a s i s %. 3 f ,
deltaY )
printf ( \ nThe s e p e r a t i o n a c h i e v e d f o r l i q u i d i s %. 2
f , deltaY )
printf ( \ nThe t i m e t a k e n f o r s e p e r a t i o n f o r g a s w i l l
be %. f s e c o n d s , BetaDgasinverse )
78
26
printf ( \ nThe t i m e t a k e n f o r s e p e r a t i o n f o r l i q u i d
w i l l be %. 1 f y e a r , BetaDliquidinverse )
79