Professional Documents
Culture Documents
DIFFERENTIAL EQUATIONS
by
A MASTER'S THESIS
MASTER OF SCIENCE
Manhattan, Kansas
1978
Approved by
r l. .
Major Professor
X*- E«7 -4i**
7
,ri
mt
K3i
£,, x TABLE OF CONTENTS
Page
LIST OF FIGURES 1
PART 1 2
INTRODUCTION 3
PART II 20
INTRODUCTION 21
CHAPTER V. CONCLUSION 68
REFERENCES 69
APPENDIX A 73
APPENDIX B. 78
ACKNOWLEDGEMENT
LIST OF FIGURES
Figure Page
process can be specified from basic conservation principles. Very often the
parameters associated with the differential equations are unknown. They are
There has been very little work done in the area of parameter esti-
Bellman, Kagiwada and Sridhar [20] have shown how techniques from non-
Lee [11] has presented the problem of parameter estimation using the
by considering the first two terms in the Taylor's series expansion of the
the quasi! inearization method. The main advantage of this technique is that
squares method. Initial guesses are made for the parameters and also for
values for the numerical integration are so chosen that the integration con-
QUASILINEARIZATION TECHNIQUE
theoretically.
Solutions to initial value problems are well developed
no general proof for the existence and uniqueness of the solutions of such
all the conditions are given at one point. A trial and error procedure is
generally used to obtain the missing initial condition. This procedure has
tions for these type of problems. In this method the nonlinear differential
by considering the first two terms in the Taylor's series expansion. This
2
1 d x dx_ Rx
2
=Q (1)
P 2 dt
dt
where,
Lv
P is the dimensionless Peclet group. Its magnitude is -jj- ,
stant,
stant.
Boundary Conditions
x
e
- x(0) - 14| |
t=Q
= C) say a t t = (2)
dx =0 at t = t,. , (3)'
t=t final
f
where
Raphson method.
2
£f=p£ + PRx (5)
y' = %= Py + PRx
2
(6b)
The parameters P and R are considered as dependent variables parallel
(60
f-0.
and
f-o. («)
follows.
8x'
X
n+1
= x
n
+
^7 Vl { "
V (7a >
j_ L —J-
The subscripts n and n+1 denote the n and (n+1) iteration respectively.
x' = y.
Thus,
x
n+l
=
^n
+
ly7 {
Vl " V (7b)
x
n+1
- yn + l •
(y
n+1
- yn } (7c)
(8a)
x
n+l
"
Vl
Similarly equation (6b) is written as,
2
y' = Py + PRx (7d)
Thus,
y = f(x,y,P,R) (7e)
10
^1
=
yn +
^ (
Vl " V +
5* ^ ' ^
sy' 9y'
+
l^ P
n+1 V +
^ (R
n+ l
- R
n)
(7f)
Thus,
= + 2s + 3
+ P R x x
*rt <
Vn P
n
R
nV aF <Vn n n n><Vl "
n>
+
W (
Vn +
Wn^n-H "
V +
W~ Vn <
+ P R x
n n n^Vl ' P
n>
+
4 (P y
n n
+ P R X )(R
" n " n+l "
R
n>
(7g)
+ (P
n
- l-0)(y n+1 -y n )Ml'y/l-Vn)(Vl - P
n)
+ (0 + P . 1 . <)(R " R
n
)
(7h)
n
= p y + P + 2P R x x " x
*ifl (
n n nVn> (
n n n>( n + l n>
+ P (y
n n+1
- y n ) + (y n - V> n+ i
- P
n
)
+ P
nV R n + l
" V (71)
11
+ 2P R + + +
*rt - P
nVl n n*nVl Vn R n + l <*n Vn'Vl
( 3P
n>Vn
+
W < 8b '
R^ = 0, (8c)
+1
y(t ) =0 at t = t • (9b)
f f
x(t-,) = b, at t = tj (9c)
x(t )
= b at t = t (9d)
2 2 2
x (0) = c (10a)
n+1
y n+1 (t f ) = o (iob)
12
'
(10c >
Vi<V = b
i
(10d)
Vl«V - b
2
Equations (8) together with the boundary condititions (10) are solved
equation (2) is given, three sets of homogeneous solutions are needed for
solving the equations (8). Initial values for solving equations (8) are
so chosen that they satisfy the initial boundary condition and also set the
x
pin+1
(0)=c (11a)
W°> = ° (llb)
R (0)=0 (lie)
P; „ +1
w o) -°
equations.
(12a)
K*\ Vi
y; +1 p„y n+1 2P
n V„Vi +
VnVi +
<y,
+
V> n+ i " 2b »
13
r; = o (i2c)
+1
P
.
. o (12d)
+1
are given below. Subscripts h-, , h„, h- denote the three homogeneous values.
x = (13a)
hUnt ,(0)
R (o) (130
hl , n+1
P (0)-0 03d)
hl , n+1
x (0) - (14a)
h2jn+1
y h2 n+ ,(o> = (14b)
,
R (0) • 1 (140
h2in+1
P
h2jn+1
(0)-0 (140
and,
x (0) - (15a)
h3in+1
R (0) - (lie)
h3 , n+1
Wl (0 > = 1 (15d)
The general solutions of the system of equations (8) are obtained by the
principle of superposition.
W*>-'Wl< t >
+ a
J>n+l *hi.«* W (lfa)
-J 1
3
(16b)
VlW'Vn+l**'*! i
a
j,n + l *hj,n + l
(t)
W*>* W t, +
j2,
a
0,n + l «M.i»l
(t) (16C)
W*>" W t}
*i J '
a
j,n + l Wl (t
>
< 16d >
R
n + l(°)
=a 2 n +l
(17)
s
= a (18)
Vl(°) 3,n + 1
It was initially assumed that both R (t) and P (t) are constant
n+1 n+1
functions. Thus equations (17) and (18) are true for all values of t.
Thus,
P (t > = a (18a)
n+ l 3,n + l
at t = t
f
+ a (t )}
frp.n+^V * a 2,n+l y h2,n+l (t f } 3.n + l y h3,n + l f
(19)
a
l.n+1 *hl,n+l l
V
16
CHAPTER III
NUMERICAL ANALYSIS
The fourth order Runge-Kutta Gill method has been used for carrying
solved in two steps. First one set of particular and three sets of homo-
these have been discussed in the preceeding chapter. Then the integration
The error between the general solution and the experimental values
is minimized as follows
m
1
IU- [*
n+1
(t
s
)-b s ] 2 (1)
J
m
l
Q
= [x (t + a x (t + a x (t.) +
(t
n+1 I r ' +l
p,n s
)
l,n + l hl,n + l s
}
2,n + l h2,n+l s
s=l
a x (t b ] {2)
3,n+l h3,n + l s
) " s
a
^pWV + a
2,n+l ^WM + a
3,n+l j^jjjVj (3)
—
17
"'
<V
^I'V y^TV <WV
=
*hl,n +1 + a
Q " 2.n + l *h2.n+l<V
n+1
S I,
+ a
3,n+l "h3.n+l
(t
f»
+ a
2,n + l
x
h2,n+l
(t
s>
+ a
3,n + l "hWV " b ]2
s
(4)
x
hl n+1 s
Rearranging the terms and writing A_, n
= - l
-(+ \
n y h1,n+rV
'
m
l
]2
"
Vl yh2,n+ l^f^ + ^n+lKsWV " A
n+l
y h3,n + l (t f } > " b
s
(5)
Since all the particular and homogeneous solutions are known quantities
m,
Q +1
n
=
J 1
^l,n + l (
V + a
2,n + l '
^2,n + l
(t
s>
+ a
3,n + l '
t
»3,n + l
(t
s
) "
b ]2
s
(6)
m
l
^ iWV&l.irntV + a
2,n + l '
"2WV + a
3,n + l '
q
3,n + l
(t
s^
- bl =
(7a)
18
m
i
The two simultaneous algebraic equations (7a) and (7b) are to be solved
to obtain the integration constants, which are equal to the unknown para-
The flow chart figure (2), and the computer program for solving the
CHAPTER IV
CONCLUSION
unstable under certain conditions £11]. For example, during the process of
iteration one or more values of the particular and homogeneous solutions can
become unreasonable. The solutions will not converge to the exact values
even if the exact values of the parameters are used as the initial approx-
imations.
end of the first few iterations. Since the original nonlinear equations are
are obtained for the dependent variable of the differential equation. Thus
The method converged to the exact values in six iterations. Figure (1)
PART II
21
INTRODUCTION
from which the parameters may be estimated. When the partial differential
knowledge of the rate and the amount of heat evolved during the process of
nificant change when the process of drying proceeded from 100 per cent to
70 per cent relative humidity of the pores. Definite conclusions have not
been reached so far. This is partly due to the lack of experimental data
Bazant and Najjar [2] performed numerical analysis with the diffusion
coefficient proposed by [1]. Trial and error was used. Finite differencing
22
of the space and the time derivatives was carried through based on the
Crank Ni col son method. A more pertinent form of the diffusion coefficient
difference method. Both the space and the time derivatives are discretized.
are made for the parameters and also for the function value of humidity
as a function of space and time. The initial values chosen for the purpose
of integration comply with the initial boundary condition and set the in-
CHAPTER I
these
saturated and unsaturated capillary transfer are typical examples of
f 1 ows
the medium. Matter is transported from one part of the system to another as
a result of the random particle motions. The flow due to diffusion is not
transfer
Inadequate knowledge of the actual mechanisms of heat and mass
models.
!ld . J_ [C
L v(Y Jy
|IjJ 0)
at ax d 3x
or
3Y
3
/ « V(C(YJ Wd )
(2)
,
24
undergoes a significant change when the drying process progresses from 100
per cent relative humidity of the pores to 70 per cent relative humidity of
the pores.
diffusion coefficient:
where
the pores,
Y
C£Y ] = C - {1 + (1 - a)(l - Y } (4)
d ] d)
and
\
1 - a
C[Y ] =
^ • a + (5)
d
r
1 -^ Y
1 +
,
l-h i
where,
h is another parameter.
ature.
moisture content.
to simulate a free water surface. The surface remains wet during the
period.
BC denotes the first- foil owing rate period. The rate of evaporation
from the saturated surface is higher than the rate of liquid diffusion.
The surface begins to dry out. The effective area of the wetted surface
decreases linearly with the moisture content [17]. In this period the
The first falling-rate period ends when dryness is reached at the surface.
The moisture content will be in equilibrium with the moisture in the en-
vironment.
The liquid evaporates from a relatively dry surface. The evaporation rate
depends on liquid transfer from the interior of the mass. The liquid trans-
CHAPTER II
ential equations. Many of the methods used are suggested from procedures
CD
f-fe^mf)
The variables Y, t, x and C[Y] are dimensionless
where,
1j - Y „
enn
Y = 5 ,
'^en
(t
d
- y c,
3
x ,, t,, Y , are dimensional variables of space, time and relative humidity
28
and the diffusion coefficient at 100 per cent relative humidity of pores
respectively.
]
' a)
C[YJ = a + (
(2)
Y Y
1 + f3 (1-Y)
where,
1 - Y.
en
is a parameter.
v • d en
1 " Y on
en
£l-- !_
3t 3X
(I + (1 -a) } H
9X
) (3)
l\ 1 + b
y
M-yW I
Thus,
il
3t
« jl L
1
+ n-«) il + / + (i - ex) 1 £y_ (4)
3*
1 + B
Y
(1-Y)
YJ 9X r 1 + B
Y
(l-Y) Y i 3X
2
2
jY ,. 3C 3Y 3 Y
(5)
c
3t " 3X 3X 2
3)(
Thus,
2
V = f£Y.
f£.
*-£» a ' 3 ' y] (6)
3X
3Y' 3Y
Y
1
Y
Y
'
+ —- n (Y
V +
; 3Y_
n+1 n 3Y
n
n+l 3^
9
3X
3X n+1 3x
3Y'
n A +
— K+l
8Y
n
" a
n
}
^3x n+1 3X n
I 2
3x n
9Y 3Y
+
aijj"
n
(6
n+l " 6
n
)
+
3Y~
n
(y
n+l " V (7)
c+ +h
where the subscripts n+1 and n denote the (n+1) iteration and the n
iteration respectively.
th ,.
Equation (5) may be written for the n iteration as,
yl
n
_
"
3C
3x n
3Y
3x
+ C
n
^ Y-
2
(8)
" 3X
2 1
ac [ac 3Y
Y'
n+1 9X n
.
'
3X
9x n
+ c
n
' ~7Y
9
n j
x
'
9
*T 9X n 9x
9X n t,
9C
+ c
ax
2
< Y
n+l
-
V -V +
8
9X
9X
. 3X
9X
2
9 Y 3Y 9Y 9C 31
+ C
n ' ~7 nj [ax n+1 " 3x 2 9X n
.
'
9x
3X 31
2
9X
2 2 2
jTY 3 Y 3 Y 3 9C
+ C
n ...2 n+1 n
.)
"J 9a. 9X n
'
9x
9X >
-9X 3x"
2
fac 31 s Y 1
+ C
2
C a „4.i
n+1
" a,.)
n'
+
di 9X n
.
9x n
+ C
n
•
-H2 nj
(
Vl - B
n
}
9X 9x
9C 31 + C
9y 9X n
.
9x n n
9X
2 Vl Y
n
(9)
faC . 31 + r 3?I
y '
;+i 9X n 9x
2 2
9 C 31 + 3£ 9 Y
.
9X9Y 9x 9Y
n n
»"I7 n n+l n
1 2 2
fac [*Y 9Y 9 Y 9 Y
+ + (0 + c
[dx n 3x n+1 " 9x n
)
" +1 2
J k
9X ax
2 2
» C . 31 + 3£ 9 Y
9x9a Ca "
n '
8x n 9a P 2 n+1 "n*
3X "J
31
2
hh 3Y
+ i£ 3 Y
" 6
9x 9B n 9x n 33 n
3X
Z "J <Vl n»
[A
"i
9Y 3C
(10)
3X 9y n 9X n 3y nj
C
Vl " Y
n
}
Since,
C = g(Y) (ID
_9_C
= 3C 9Y
'
(12)
9X 9Y 9X
Thus,
9C 9Y
(13a)
9X 9X
Similarly,
9
2
9X 3a
C
n
A
9Y 9a
3Y
9X
(13b)
9X 36 n
A
9Y 93 n 3x
(13c)
3 C
2
3X 3y n
A
3Y 3y n 3x
(13d)
2
3 C
(13e)
3X 3Y 2 3x
'
n n
3Y
32
2
9C . 3 Y
Y'
9Y
fill
axj n
+ C ,
n
' ~2
I 3X
2 2 2 ,
f3
U
c
2 n [9Xj n
, 3C
9Y n
3
I?
Y
nJ
< Y
n+l
-
V +
3C ay aY 9Y
"
3Y n
'
3x 3X n+1 ax
fA
(3Y3a n
r
3Y^
3Xj
2
n
+ 1C
3a
A n
(a ,
n+1
, - a
n'
)
+
t " 3x' "J
fA
3Y3B n 3Xj
2
n 96 n
A 2
< S
n+ l
" 6
n>
+
k 3X
2 2 2
f3
[3Y3 Y
C
n
[3Y^
m n
+ 3£
3y
3 Y
(
Vl V (14)
On cancellation of terms,
2
3Y 3 Y
" + C.
n+1 3Y n
'
3x n
'
3x n+1 " 3X 2 n+1
2 2
fA 9Y'
+ f 9 Y
(a " a }
3Y3a n 3Xi n 9a "
' 2 n+l n
3X
2 2
(A r
9Y^
+ 3£
3 Y
9Y9B n n 36
(
Vl - s
n>
33
A
8Yay
r
9Yl
9x J
2
n
+ l£
9y P '
9 Y
2 n)
(
Vl "
V
L
9X
'A [9Y^
2
9C
2
Y
-9Y
2 n ,9Xj n
.
9Y n '
9
9X
2 nj
(
Vl -
V (15)
Y ' - . 11 + C • 1?I
n+T '
9Y n
'
9x n
'
h2c f9Y^
2
+ 3C
9Y9a n n 9a VI
[A
9Y93
W 2
+ 9C 9
2
Y
3
n M) n 96 " 9X
2 ^ n+l
2 2 2
^9 C + 3C 9 Y
[9Y9 Y n L
3Xj n 9y " 2 ") 'n+1
. 9X
2
fA 9C 9^Y
;\ (16)
n 8X n 9Y 2 nj n+1
ax
2 2 2
In equations (8) to (16) the equations for C, , ^-| ,
|y^
|yL
f£ ,
9Y
2
9 C
, etc are as follows:
9Y,9 Y
34
L - a + (17a)
Y Y
i + e (i-Y)
Y Y~1
9C _ (1-a)Ye (1-Y) (17b)
3Y Y Y 2
{1 + B (1-Y) }
3C 1
= 1 - (17c)
3a Y/i
T ^"Y
(1 + B (1-Y)'}
-1
Y
3C (l-a)yg Y (1-Y)
(17d)
3B 2
{i + e (i-Y) Y }
Y
T
3C S (l-a)g (l-Y)Unre(1-Y)]
(17c)
9Y + B
Y Y 2
{1 (1-Y) }
2 Y Y~2 Y Y
8 C = (1-a)Yg (l-Y) {B (l-Y) (Y+l) - Y+l l
(17f)
Y Y 3
3T (1 + B (1-Y) }
2 "
Y Y 1
8 C . YB (1-Y)
(17g)
9Y3a Y Y 2
{1 + B (1-Y) }
2 2 Y-1 Y- 1
9 C _ (l-a)Y B(1-Y) n-B Y (l-v) Y } (17h)
9Y3B Y 3
Y
{1 +B (1-Y) }
35
2 Y Y' 1 Y Y
3 C - (l-a)B (1-Y) {B (l-Y) n-Yin{g(1-Y)}l + n+yAn{e(1-Y)}]}
(Ui)
3
9Y3Y
{1 + B Y (1 _ Y) Y }
Equations (15) and (16) are rewritten with the terms all rearranged as
follows,
v
Vl
' - —
3Y n
.
'
21
3x n
.
'
II
3x n+1
+ C.
3
2
Y
2 n+1
" 3X
2
3Y
2
TC
r1
(a-j.1 " O + 3 C
• U n+1 " 6
3X 3Y3a n * n+1 n' sYse n n>
A
3Y3y 'n
(T.x,
"n+1
- V.) +
V
A 2 n
• C
Vl "
V
SY
2
3C
+ 3C
3 Y
' (a " a } • (6 " B J
+
2 da n n+l n i n n+l n
3X
3C
3Y
VY
n+l
~
V 3Y n
'
(Y
n+l V) (15a)
2
1 _ 9C 21
Y .
Cn
n+1 3Y 3x 3x n+l 2 n+1
'
'
n n '
3x
3Y'
3x
2
n
A 3Y3a n
'
a
n+l
+
3Y33 n
B_^
n+1
+ A
3Y3y n 'n+1
A 2 n n+1
3 Y
36
ii [aC + 1C T ^C
ax
2 n 3a n
"
a
n+l 36 n
p
n+l 3y n
" Y n+1 +
W n
.
Y
n+1
)
(16a)
Boundary Conditions
3Y(t) _
Q
u ' for all time t. (19)
3x
surface. (20)
Y(tx) = b at t = t,. .
(21)
f fina
final
where.
to (21),
w*> Y ,(t)
+
environment
, (22)
3Y(t)
=
3X n+1 (23)
37
W *" 1 - (24)
and,
WV -
b - lyZS)
38
CHAPTER III
The equations (15a) and (16a) of the preceeding chapter are solved by
the finite difference method. Finite differences of both the space and the
time derivatives are carried through. The increments in Y at each time step
can be computed from either implict or explicit methods. The explicit method
constant.
of the problem. For both the schemes, the numerical process at constant dif-
fusivity is stable [2]. They also allow the time-step to be increased or de-
when the backward differences are used. The central differences are usually
and (t+1) rows is considered more accurate and has therefore been used.
0[At + (Ax) J. The Crank-Nicolson method is stable for all values of the
? 2. 2
ratio At/ (ax) . It converges with a discretization error of 0£At + (ax) J £18],
Although this is a distinct improvement over the explicit and the implicit
methods, the computation is more complicated than for the implicit method.
Nicolson method,
39
Y
1
_LjW'' Y„ +1
n+l
( P ,t)
(1)
Vl At
2 Y (p+1 ,t+l )-2Y (p, t+1 )+Y (p-1 ,t+l )+Y (p+1 ,t)-2Y (p,t)
a Y n+1 n+1 p+1 n+1 n+1
2 i
n+l
2(AX)'
1
cX
(3)
2
2(ax)
2 Y (p+1 ,t+l )-2Y (p,t+l )+Y (p-l .t+1 )+Y (p+1 t t)-2Y (p,t)+Y (p-1 t t)
s y n n n n n n
n
3X 2(Ax)'
Y (p,t+1) + Y (p,t)
n n
(7)
chapter,
,
40
At
(p,t+l) + Y v^'»w
(p+l,t) - Y (p,t)^
f
Y
n+1
n+1
( P+ l,t + l) - Y
n+1 n+1
'
n+1
2ax
2
2(ax)
2
'A
9Y3a n
•
(a
n+l"
a
n
)
+
W n
*
(B
n+l"
e
n
)
+
3Ya Y n
• (
vrv +
^2
Y (p+1 ,t+l )-2Y (p,t+l )+Y (p-l t+1 )+Y (p-H ,t)-2Y (p t t)+Y n (p-1 ,t)^
n n n n n
2(AX)'
41
fac + 9C + u 3C
£
I \ f
9a n
*
(a
n+r
a
n
)
Tt n
*
<W»n>
n
+
f |
n
• • {Y
n n
B*C 1
(p,t+1) + Y (p+l,t)
Y
n
(p-l,t)} -
±\ n
•
£ • {Y
n
(p+l,t+l) - Y
n n
dT
l
Y
n
(p,t)}' + Y
n+1
( P+ l,t + l) . r . (-1) • ]C
n
. +
f n
*
4
+ Y_
+1
(p-l.t+l) • r • (-1) . C
p
• {- Y
n+1
(p,t)
+ \ [Y (p+1 ,t+l )-2Y (p,t+l )+Y n (p-l ,t+l )+Y n (p+l ,t)-2Y n (p,t)+Y n (p-l ,t)].
n n
3C sC 3C 3C
+
8a n
'
<Vr a n> +
lB n
'
(^T^ + F "
n
<Y n+1
VT -Y n
n+l~V ) " 3Y n 2
A
9Y9a
(a
n+l"
a
n
}
+
fvt?
re
L " (
Vl' B n )
+
i
2
n
'
r
(
VrVw ^2 +
3 c
n 2
r £C
+ ,(p+l,t+l)-Y n+1
.
(p+l,t) (p,t)] + C
+ Y (p+l,t)
n
- Y
n
(p,t)] • £Y
n+1
- Y
n+1 § •
1 - a.
Y (p,t+l) . r - + a +
n+1 r n Y
Y (p,t+l)+Y (p,t) 1 n
n n
l + e.
T Y (p,t+1)+Y (P,t)-
V 1
|.
(1
"a
"
h" &
"
n
r
i
1
"
n
Y .(p.t+1)+Y (p.t)^
^- —-Hr--{Y
n
2 n
(P,t+i)-Y (p-l,t+i)+Y n ( P ,t)
n
Y. n
n
1 + 1
y -2
n
Y (p,t+1)+Y (p t t)^
n n n
1
(1-a h &
- Y (p-l.t)}"i
8
n
Y. Y (p,t+1) + Y (p,th
n n
1 +
43
Y„ f
Y„(P.t+l) +Y n (p,t)
I (VD- (
v Yn 3
r)
n
Y (p,t+1) + Y (p,t)^ !
n n
l:+e" •
1
2
Y (p+l,t+l) - Y (p,t+1) + Y (p+l,t) - Y (p,t)}
n n n n
j
+ Y (p+l,t+1) • r • (-1) • \a n + 1
n+1
Y„(p,t+1) + Yn
Y
(p,th
J
n
2
1 + 3.
n
Y n(P»t+D + Y ( P ,t)v
+ i.(hA
1
,
Y r Y (p,t+l) + Y (p,t) 1
\7
n
1-c
+Y n+1 ( P+ l,t + l) •
r • (-1) • L +
n
Y
n
(p,t+1) +-Y n (p,th
1 + 1 -
2Y (p.t) + Y (p-l,t)]
n n
44
l-> (a
v ,, - a„)
n+1 IV
T„ (
Y n (p,t+1) + Y n (p.th "
1 +
W(
n t
Y (p,t+1) + Y (p,t).
n n
n
Y (p,t+1) + Y (p,t) Y (p.t+1) + Y (p,t)
n n n n
o-A" 1
• in 1 -
r y. Y (p,t+1) + Y (p,t)^ T n
r n n
41 + e_
<Vl " V +
y
n r Y
n
( P ,w) + Y
n
(P .t)
V 1
1
1 n' 'rrn
2 rrtW^.-V** 1
) -V**?)
Y
n (p,t+1) + Y n (p,t)<
1 + 1 -
45
Y„-l
n
Y (p.t+1) + Y (p, t)
f n n 1
-Y B
r
rrn
{
Vi -
% ]
n
Y ,(p,t+1).+ Y (p.t)^
n n
1 :+ a. 1
-
o- n ^V 1 -
Yn 3
1
Y (p,t+1) + Y (p,t)
n n
1 +
n
Y (p,t+1) + Y (p,t)/
n n
i - e.
VP
(e«*i - e«) +
Y 3 n+l *V
n
Y (p,t+1) + Y (p s t), >
n n
i + e.
Yn (P.t+U + Y n (p.t)
H»C '
Y (p,t+1) + .Y
n
(p,th "
n
1 + B. 1 -
46
Y (p,t+l) + Y(p,th Y n
. {I - Y • In
+ Y (p,t)^
1
Y (p,t+1)
-Jn
-
2
2 W t
l + y
n
• in
Yn (p.t+1) + Y n (p,th^
" Y
j
'
(
"Vl n
}
n
f
Y(p,t+1) + Y_(p.th
n
v p 1
ir'n n
T 3
n
Y (p,t+1) + Y (p,t)^ .
n n
1 +
2 J J
n
Y„(p.t+1) + Yn (p,th
n
h - (Y B +T) (Y„-D
2
Yn 3
Y (p,t+1) + Y (p.th
n n
1 +
n '
I
2
I' {Vl^'^-VP^^ * Y
n
(p ' t}
}
47
Y , Y (p.t+1) + Y (p.t)-i
V 1
(i-Oy„Oi -J ?-*
+
i
n' 'n n
T
n
r Y
n
(p,t + 1) + Y
n
(p,t )/n
T
CW * ^ 1
1 "
Vl ( P' t)]
1 - a.
n- a
n
+
Y
n
(p,t+1) + Y (p,t)/n
n
1 +
J
(Ha)
W^'^enviS^
ronment
and
3Y (M,t)
n+1
= -
3X
Thus
48
2ax
and
W* 1
-^ =
Vi^ ^ 1 (lib)
form as,
[A]J M vm
MxM
'
m Mvl
Mxl
= [K]
L'NJ
Mxl
(12)
where,
Typical values that constitute the p row of the matrices [A] and
A[p,p-2] = 0, p = 1 ,M (13a)
1 - a.
A[p,p-1] = r (- 1) • L + P=l ,M
Y (p,t+1) + Y (p,t)/n
n n
1 +
(13b)
49
1 - a_
A[p,p] r + +
•
]f ^ n
UP.t+1) + Yfp.t)
1 +
r r Y
n
(p,t+1) + Y^p.thV 1
(1-a )y B
1
4
Yn (p,t+1) + Y n (p,t) Yn.2
1 + 6.
V2
I
8
H)W" •
f
1
- Y
n(P.^)^Y n (p,t)]
Y„.3
Y n (p.t+1) + Y n (p.t)
1
+ 6. 1 -
Yn (p.t+1) + Y n (p,t)/n
(VD- (y„-D
3
Y„(p,t+1) + Y n (p,t)/n^
+ -
i e 1
n
2
|Y (p+l,t+l) - Y (p,t+1) + Y (p+1,t) - Y (p,t)} , P = 1,M (13c)
n n n n
50
1 - a
+ 1
A(p,p+1) = r • (-1) a 2
n + Y (p,t)
Up.t+1) n
1 +
Y„-l
n
Y„(p,t+1 ) + Y n (p,t) 1
1 -
x
n n n
Y n (p,t+1) + Yfp.t)/^ 2
1 + 1 -
A(p,p+2) = 0, p = 1, M (13«)
K[p] - Y
n+1
(p,t) +§ • [Y
n
(p+l,t+l) - 2Y
n
(p,t+l) + Y (p-l,t+1) + Y (p+l,t)
n n
2Y (p.t) + Y (p-l,t)
n
1
- - «
1
Y (p,t+1) + Y (p,t)
r} •
<vi n
>
yn r
n
Y (p,t+1) + Y (p,t)/n
n n
"-nVn < p
2 n+l " *n>
Yn (p,t+1) + Y n (p,t)Jn^
1 +
51
Y
n
(p,t+i) + Y
n
(p,th"V
1 +
1
Y„(p,t+1) + Y n (p,thV
(l-o )y
v /r B •
n rrn
+
<Vl " Yn ) 2
Y. Y„(p,t+1) + Y (p,t)/n>
n n
e
n
• h
+ Y (p+l,t) - Y (p,t)]'
n n
p
Y.
nun , Y (p,t+l) + Y n (p,t)Jn"
1
'n n |
(%+1 "^
Y„(p,t + l) + Y(p,thV '
1 + 6. 1 -
y -1
1 Y (p,t+1) + Y (p,t)/n
n n
o-rf/
Y. Y n (p.t+1) + Y n (p,th
T
m3
1 +
J J
52
n
Yn (p,t+1) + Y n (p.t)
1
-
n
1
-
Li
1 +
Y
*n '
{
P '
Y (p,t+1)
~n
2
yr
+ Y (p,t)/n
— 3
(P,t+1)+Y n (p,t yn
Y.-l
v V
n
f
e +
<Vl " n>
Y (p,t+1) + Y (p,t)^
r, 3
-*" n n
1
-
{'
r
Y ( P> t+1) + Y (p,t)
p n
+ \l + y_ In
n I
(
Vl " Y
n
)
2
Y n (p»t+1) + Y n (p,t)Jn"
(1-a
v ) • Y 6 1
V
n' 'n n 2
y Y (p.tfrl) + Y ( P ,th
1 + 3
" • 1
n
Y„(p,t+1) + Y (p,t)
(Y
n+ D -<Y n -l)
:
Y (p.t+1) + Y (p,t)^n>
n
1 +
53
1 •
{Y (p,t) - Y (p,t+1) - Y (p,t)}
n+1 n n
n
Yn (p.t+1) + Yjp.thV 1
r "'%K '
*„ 1 -
Yn Y (p,t+l) + Y (p,th"S2
n f
1 + e • 1
n
* a
n
+
1 +
1
1
-
-
a.
Y
n
(p,t+1) + Y
n
(p,t)
n (
fW ^ 1 1
) 1
Y (2.t+l)
n+1
(15)
Y (p,t + l)
n+1
Y (M-l,t+l)
n+1
lW M ' t+1) J
Mxl
W
Y
+
1 -
(2 ' 0)
01
(y .(o) A
environment
P ,n l
Y 3 ''°)
p,n + l(
W^'^
(16)
Vn+l^ 1 '*)
a (0)
p,n + l
(0)
p,n+l
r (0)
p,n+l
55
2
wi _ aC 3Y I aY a Y aY
"
< + C.
n+1 dy n
'
ax 'n ax n+1 n 2 n+1 SX
ax
2 2 2
r
a C a C
+
aYaa n "
a
n+l 3Y36 n
B
n+1 3Ya y n
'
Vl ^2 n
*
'n+1
aC
aC + 9C p Y n+l
r '
obtained is,
1 - a.
Y (p,t+l) . r . - + <a +
n+1 r in Y (p,t+1) + Y (p,t)/n
n n
1 + 1 -
Y
n
(p,t+1) + Y
n
(p,thV ]
(1-a )y
v ;r 6 " • 1
1 n n n
+ -f
+ Y (p,t)/n^2
Yn t
~ (p,t+l)
Y
1 +
C •
V - 2
Y.-2
Y (p,t+l) + Y
n
(p,th
n
1
H-a n )Y n B n
Y (p,t+1) + Y^p.t)^
n
1 + P. 1 -
T
> w) *Vp.tV-. ( ,. ( „
y,
Y (p,t+1) + Y (p,t)/ ni
r. n n
i
1 +
v- ]
2
{Y (p+l,t+l) - Y (p.t+1) + Y (p+l,t) - Y (p,t)} ]
n n n n
1 - a.
+ Y (p+l,t+l) • r .'
(-1) . a +
1
+1 n
+ Y n (p,t)V
^ (p.t+1)2
Y. Yn
' »„" • -
I'
Y„(p.t+1) + Y (p,t)/n"'
-
n
(l-a )y B • 1 -
n n n
2
Y„(p,t+1) + Y (p,t)/n^
1 +
*
B.." • 1 - "
1 - a_
+ Y (p-l,t+l) • r . (- a +
n+1 £) n
Y (p,t+1) + Y (p,t)/n
n n
1 +
57
1
2Y (p,t) + Y (p-l,t)] a
n n n+l
YJp.t+l) + Y n (p,t)
1 +
J (p,t+l)
Y -1 Y + Y (p,t)
n
~
(1-ajY.e"
n"n n • 1- 5
2 >n+l
Y„(p,t+1) + Y n (p,t)Jn 1
1 +
Y r
Y (p,t+l) +Y (p.t)/" Y (p,t+1) + Y (p,t)-
n n n
(l-a )e • II -ir- • An 1
n n n
+Y n (p,t h \">
2
Y (p.t+1)
n _
1 +
1
Yn (P.t+l) + Y n (p,t)/n"
n
(1-a )y 6 1 -
Vl +
Y 2
{' Y
n+1
(p.t)
Y (p,t+1) + Y (p,th rh
n n
1 + 6.
7 -1
Y (p.t+1) + Y n (p,t)i
n n
n n
' a
r
2 n+l
1 +
2 J J
2
Y.-l
n
Y
n
(p,t+1) + Y
n
(p,thV
0-a ir'n
v )y 6
y 3
Y. Y (p,t+1) + Y (p,t)^ r
n n
1 +
Y (p,t+1) + Y (p.t)
n n
1 - B. 1
3
+ Y (p,t)/ ni
Jn (p.t+1)
Y
Y
H
,
n
! + 3
" • (l -
n
Y--1
Y (p ' t+1) + Y n (p>t) n
n f, n V Yn (p,t+1) + Y(p,t)-
"-A"
1 +
Y
n
(p,t+1) +
2
Y
n
(p,t)i V
f
Y„(p,t+1) + Y(p,t)
[1 - Tn • in{g 1 -
n 2
59
Y (p.t+1) + Y (p,t) 1
n n
*n '
^n 1*n
Y (p,t+1) + Y (p,t)/n"
- n n
1
v /T
n n n
+
Vl Y (p,t+l) + Y (p.th
Y- 3
1 +
Bn
Yn
. ! . J] _i!
Y„(P.t+1) + Y n (p,t)
1 -
(VD-(Y n -D •!• Y
n+1
( P ,t)
Y„-1
Y (p,t+1) + Y (p.t)
n n
(1-a
v )
;
• Y e
r 1
r n n n
2
r Y„ r
Y (p t t^) + Y
n
(p.t)J n,
n
1 + 1
I *n *
i
^ J
1 - a_
^ *n
+
Y (p.t+1) + Y (p,t)/ n
n n
1 +
[Y n+1 (p+l,t)
'n+1
2Y n+1 (p,t)
n+1
+Y nn+1 (p-l.t)].
1
(18)
60
(19)
^MxM '
^Mxl ~ ^'^Mxl
J.L.
The elements in the p row of [A] and [Y] are identical to those
in equation [12]. However the elements in the p row of [K'] are different
n n n n
2Y (p,t) + Y (p-l,t)] •
n n n+1
Yn (p.t+1) + Y n (p.t)/nJ
1 +
Y .(p,t+1) + Y (p,t)/n
n n n
(1-a
v
n
hn e n
;t 1 -
2 >n+l
Y (p,t+1) + Y (p,t)^ Y,
n n
1 +
r
n+l
n
Y (p,t+1) + Y (p,t) 1
n n !
1 +
;
61
-1
<W •
W Yn
1 -
Y„(p,t+1) +
(p.t+1) + Y n (p,t+l)Jm
Y n (p,t)/n
1
Y n (p,t+1) + Yfp.tjJrf
r y
n n
+
Y (p,t+1) + Y (p,t)/n
7 •
Vl
n n
1 +
(l-a
2 V l
f
Y
n
(p,U1) H^t l/n- 1
n ) 7n 8
Y
n
(p,t+1) + Y^p.thV 3
(1 +
Y
r Yn (p,t+1) + Y n (p,th n
n+1
Y, Yn (P.t+l) + Y n (p,thV
1 +B*
n
1 -
62
_1
Y„(p,t+1) + Y n (p 5 t)Jn
"
"
»-»>» 1
3
Y n (p,t+1) + Y (p,t)Jn^
1 + 3
n
Y (p,t+l) + Y (p,t)v
n
+ Y
n
• *n jg .|1 r
n n+l
Y
n (p,t+1) + Yfp.thV 2
n n n
3
Y >,t+l) + Y „(p.th Y ih
n n
1 + 6.
f
Y (p,t+1) + Y Cp,t)
n n '
•
(Y +1) - (Y n -l)l
D . D L .
,
1 . y
n+1
(Dt)
1
(20)
(p.t)/^ 3
2
r
y (p,t+i) + y
1 + B. 1
There are three sets of homogeneous solutions. The initial values for
Wl (1 ' 0)
Wl (1 ' 0)
Wl (1 ' 0)
Y
hUn + l<
2 ' 0) Y
h2W 2 >
>
Y
h3,n + l(
2 ' 0)
Y
hl,n + l(
3 '°) Y
h2,n + l(
3 '°)
Wl< 3 ' 0)
Y
hl,n + l(P>°>
Y
n2 W P ' 0) Y
h3,n + l( p
* 0)
Wl (,M * 0)
Wl (W ' 0)
Wl^ 1 ' * c
hl,n+l
(M.0) Y
h2 +1
(M-0)
Wl ( "' 0)
5
hl,n+l
(0)
Wl (0) e
h3,n+l
(0) 1
0) (0) 1
*hl.n+l< ^h2,n + l(°) ^h3,n+l
(21)
principle of superposition
W^ =
Vn+l"'**
+
kl }
a
k,n + l •
Wl"'**' j " ] ' M (22a)
W J ' tJ "
W 4) +
,£
a
k,n + l *
•Hik.nfl^)
(22C)
The subscripts p, hi, h2 and h3 denote the particular and three sets
of homogeneous solutions. The initial values for obtaining these four sets
have been selected to satisfy the initial boundary condition and also to set
a (0) = a (23a)
n+1 1>n+1
W» =a 2,n + l
(23b)
and
Vi'°l = Vi (23c)
a (t) = a (24a)
n+l l,n+l
e (t) = a (24b)
n+1 2>n+1
vi^-Vi (24c)
65
CHAPTER IV
NUMERICAL ANALYSIS
a solution exists for the problem. First one set of particular and three
obtaining each of these sets have been stated in the preceeding chapter.
The tridiagonal band matrix is inverted at every time increment by using the
each time-step.
The next step involves the determination of the three integration con-
stants. The least squares method is used. The error between the experi-
m, M
1 M o
m
l M
+ a
2,n + 1 •
Vz.n+l^V + a
3,n + l '
Y
h3,n + l ( J'V " W^S^
(2)
m
l M
+ a
Qn + 1 °
s l}
J }
^.n+l^V l,n + l '
^.n+l^'V
+ a + a (3)
2,n+l '
c
i3,n + l (j ' t
s
)
3,n+l " ^.n+l^V^
m
l M
.^ q 2 .iH-l
(J,t ) Cq l,n+l (j ' t s ) +a l,n+l q 2,n + l (j>t s }
J i
s ' '
=
+
^l^'V^n^'V + a
3,n + l Vn+l"'*^ °
(4a)
m,
M
+ a
q 3.n+l (J ' t s )
' hl.n+lU'V l ,n+l *
^.n+l^'V
sl} J
S1
=
+ a
2,n + l ' q 3,n + l^V + a
3,n + l '
q 4,n + l (j 'VJ °
(4b)
m
l H
t + a
l}
s=i -l }
J
'U.n+lU'V '
*h.n*l {J '
s
)
l,n+l '
q 2,n+l Cj »V
=
+ a
2,n + l *
"s.n+l^V
+ a
3,n+l '
q 4,n + l^VJ °
(4c)
67
The flow chart figure (4) that was used in the numerical solution
CHAPTER V
CONCLUSION
the functional equation of humidity for the first iteration have to be very
have been due to insufficient spacial nodes. Numerical analysis with upto
thirty-four nodal points in the spacial coordinate and one hundred in the
REFERENCES
1. Pihlajavaara, S. E.
'On the main features and methods of investigation of drying and related
4. Crank, J.
70
8. Gear, C. W.
Prentice-Hall, 1971.
9. Hindmarsh, A. C.
notes
equations,
Methods for the numerical solution of partial differential
11. Lee, E. S.
12. Kagiwada, H. H., Kalaba, R., and Ueno, S., Multiple scattering
71
15. Mitchell, A. R.
16. Lee, E. S., Chen, S. S., Fan, L. T. , and Hwang, C. L., Application of
Kansas State Univ Bulletin, Special Report Number 78, Vol 51, July 1967,
No. 7.
Urbana, Illinois.
1966.
21. Seinfeld, J. H.
22. Crandall, S. H.
23. Ames, W. F.
Press, NY 1965.
73
APPENDIX A
74
l.Q
s 0.5
0.3
0.2
0.1
_i I L J 1 I I L
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
AXIAL LENGTH, t
75
START
t
READdx,dt,N,E
t
READ Y (t,i),t=0,T;i»I,M
n+I
PARTICULAR SOLUTION
Vlf .1
) " I! 1»2.«J Vl =0; S
n+ I
=0i
Vl" 0; W°' 1J
N-2
Y p(t.D=Y (t,i)
n+I
*r '*n+r
I »T
B +i"
(
t-0,T; 1-I.H
AND
Vl'Vl Vl
I
FORM THE GENERAL SOLUTIONS
Vl <*- 1
^p.n+I <».* >
+
Vl Y hl n+ I ^ >
+ Y
*n + I h2,n + I tW >*WW, U. 1
t«0,T; 1-1.M
>£
b\
i—
zi
LU
1—
^y
o
o
-
UJ
CI
ZD
1—
oo
H-
o
UJ
CD
cV
<C
c2
UJ - D
>
<
RATE OF DRYING — »-
-«— MOISTURE
MOISTURE CONTENT.
77
START
READdx.dt.N.e
I
READ Y (t,i),t=0,T;i«I,M
n+I J
PARTICULAR SOLUTION
r n+I »0; Y„
Y
n+I
(0,i) - 1; 1-2.H; a
n+I
»0;
Vl »0; +I
<0.1)
N-I
N*2
Y (t,i)-Y (t,i)
h2 n+I
t
HOMOGENEOUS SOLN I HOMOGENEOUS SOLN II HOMOGENEOUS SOLN III
Y (0,i)=0;i»I,M Y (0,1)»0;1-I,M Y (0,i)-0;i«I,M
n+I n+I n+I
a + x °' s +
Vl^'Vl^'Vl" l
n+I
5
n+I '
n I n r°'Vl Bl
N"2 N=3 N«4
-I r—
y
h3
(t ^ C
Vl (t,1)
t»0,T; 1»I,M
I
AND
Vi'Vl Vi
I
FORM THE GENERAL SOLUTIONS
t«0,T; 1-l.M
')- Y
iVl( t ' 1
DATA( t - i
)l; £
KJ
Y n(t.1)-» *i(t.iJ
n
t«0,T 1»I,M
lJ
STOP
APPENDIX B
79
COMMON/lCUNTk/INT.ICHECK
1 FORMAT IF5.2,2X,F5.l,2X,I4,2X,I2.2X, 3, 2X ,F 10. fc,2X,F8.51 I
2 FORHATIF8.5)
J FORMAT I/// J
97 CONTINUE
READ(5,13) RINT.PINT
KA«1
9 A CONTINUE
REACIS.13) A2.A3
VRITE(6,<i) RINT.PINT
DO 12 l-l.Xl
X31 11*0.83129
YOt 11—0.5
12 CCNT INUE
R0tl)«RINT
P0(1)*PINT
NN=1
90 CONTINUE
xim«xc
YKU-O.
Rltll-O.
Pit l)«0.
IDUPKY«1
ICHECK'l
20 CONTINUE
U(l)«Xl(ll
WI21-YK 11
W131-R1UJ
Vl4)«Pltl)
c
C INTEGRATE THE DIFFERENTIAL EQUATION FROM T IHE«0 TO TWE»TFINAL
C
DO 600 INT«t,Ml
CALL RKGIINT,OI,N,W,F,LX,MX,JX)
80
PAGE 002
XII INT>«W(l)
Yi( INT)«W(2)
Kit l)«*(3>
PI! 1)«W(<.)
600 CONTINUE
IF! IDUMKY.EC.l) CO TO 100
IH1 1DUMMY.E0.2) GO TO 200
IF( IDUMMY.E0.3I CO TO 300
IF C IDUKKY.EC.4) CO TO *00
100 Ctf.TlNUE
DO 31 I-l,«
XP! 1>*X1(IJ
YP(I)«YU II
31 CONTINUE
C
C SET THE INITIAL VALUES OF HOMOGENEOUS SOLUTION til
C
X1(1>«0.
YKD-1.
R1(1>»0.
P1I1)«0.
IDUMMY=2
ICHECK-2
GC TC 20
200 CONTINUE
C
C HOMCGENECUS SOLUTION (II
c
DO 32 I«l f Hl
XHHII«XltI)
YHUII-Yltl)
32 CONTINUE
c
C SET INITIAL VALUES OF HOMOGENEOUS SOLUTION 121
C
X1(1)«0.
Ylt l)«0.
Rllll'l.
P1I 1)»0.
10U«MY«3
1CHECK«2
GO TO 20
300 CONTINUE
C
C HOMOGENEOUS SOLUTION (21
C
DC 33 I«l,Kl
XK2! I)=Xlt II
YH2{1)«YIIII
33 CONTINUE
C
C INITIAL VALUES OF HOMOGENEOUS SOLUTION (31
C
Xl(l>«0.
Yl(l)«0.
RU 1>«0.
Pl(l)«l.
10UMP.Y-4
81
PACE 003
ICHECK«2
CD TO 20
400 CONTINUE
C
C HOMOGENEOUS SOLUTION C3)
C
DO 34 l-i.HI
XH3U>»X1(I>
YH3(I>«YI<11
34 CONTINUE
C
C CALL THE SUBROUTINE TO EVALUATE THE INTEGRATION CONSTANTS
C
CALL TUNC XP , YP ,XH1 XK2 , XH3, YH1 YH2 , YH 3 , BS ,A
I , ,
C
C FORM THE GENERAL SOLUTION
C
IFCA(2).LE.O.) At2)-l.
IF( AI2) .Gfc.10.) A(2>*10.
IF(A[3).LE.O.) A<3>«1.
IFlAI3l.GE.10.) A{3) = 10.
DO 60 I«l,Kl
XI (I >«XP< I)*Atl)*XHlin*A(2)»XH2(I)*A(3>*XK3( IJ
Ylt I)*Y?f 1)*A(1J*YM1(I)*A( 2)«YH2(l)t-Al3)*YH3l I
60 CONTINUE
WRITEI6.63) NN, At2),AC3) ,X1 1 1 ,X1 (2 I ) ,X 1(3
1 > I ) ,XH 41) ,Xl I 5 I)
»XH61),XII71).XH81),XIIS1),XI{101>
tFINK.EC.ll GC TO 61
DR«RU1>-R0U)
DP«Plll>-P0Cl>
IF( A3S(DR).LE.£PS) .AND. IABS (DP) .LE.EPS) » GO TO 68
61 CONTINUE
DC 73 I»l,Ml
xom«xui)
Y0( I J-Y1I tl
73 CONTINUE
R0(1)«A12)
P0I1)«A13)
NN«NN«-l
IFIWN-15) 90,90,68
68 CONTINUE
WRITE16.3I
KA«KA«-l
IF1KA-1) 94,94,95
95 CONTINUE
KK»KK*1
IFIKK-1) 97,97,92
92 CONTINUE
MRITEI6.5I
STOP
END
82
C
c FOURTH ORDER RUNGE-KUTTA GILL METHOD
c
SUCRCUTINE kKGI INT , CT Ni Y r ,L»H» Jl
,
PAGE 002
GO TC 450
600 RETURK
END
84
SUBROUTINE DFYU.F)
DIMENSION 21*1 ,FU> ,XO 1131) , YO (101) ,R0C1),P3U)
COMMON/ ICCNTR/ .METHOD
I
CCMMCN/FORHER/X0.Y0,R0,P0
F11W12)
F13>»0.
F(4)*0.
lFlMETHOD.EQ.l) GO TO 10
IF! METHOD. EC. 2) GO TO 20
C
C PARTICULAR SOLUTION
.A ( 2 2),AA13>,
DIMENSION XPUOI).XHIUG1>,XH2110U.XH3U01 ,5S(10 ;
»6i2>,YHHion,YHzeion.Yh3tioi>,rPtion,cuioj,c2UO>,Q3UO)
SUM1-0.
SUK2«0.
SUM 3*0.
SUM^»0.
SUM5«0.
SUN 6*0*
DC 100 1-1. 10
AX«XhltI»10U)/YHM10l)
Oil I)«XPI !*1D*1>-AX»YP(101)
C2( I)«XH2 1 !»10*1>-AX»YH21101)
03 1 )«XH3UMOH>-AX»YH3U01)
1
100 CONTINUE
DC 105 I«1»10
Sim»SUiU+w2(I)*Q2tI)
SUK2«SUM2*C3lI>*C2t I)
SUM}*SUM3-C2U>*(01U>-BS( II)
SJM««SUM<.f03( I) •02(1)
SU!-.5«SUM5 + u3in*Q3Ul
SUM6«SUMb-C3lI>*IClU>-BS( III
10 5 CONTINUE
A(l.ll«SUHl
A(1,2)«SUM2
B(i)»SUM3
At2.1)«SUM<t
A(2,2)«SUK5
B(2)»SUH6
1.0
PO 1.0
GENEfcAL SCLUTICNS AT CORRESPONDING CATA POINTS
1.00000 10.00000 0.75 0..69 0.64 0.61 0.60 0..4I 0.64 0.70 0.76 0.90
1
6.83985 0.74 0..67 0.60 0.55 C.51 C.47 0.44 0.41 0.40 .40
z 1.73550
I 1.87826 7.64583 0.74 0..67 C.60 0.55 C.51 C.47 C.44 0.41 0.39 0.39
1.97978 5.88460 0.74 0..67 0.60 0.55 0.51 0.47 0>44 J .41 0.4J 0.39
4
5 2.00302 5.96851 0.74 0..67 C.60 0.55 0.51 C.47 C.44 0.41 0.39 0.39
6 1.99816 6.02124 0.7* 0,.67 0.60 0.55 0.51 0.47 0.44 0.41 0.39 0.39
7 1.99789 6.02706 0.74 0,.67 C.60 0.55 0.51 0.47 C.44 0.41 0.39 0.39
6 1 . 99647 6.04626 C.74 .67 C.60 C.55 0.51 0.47 0.44 0.41 0.39 0.39
9 1.99659 6.04449 0.74 .67 0.60 0.55 0.51 0.47 0.44 0.41 0.39 0.39
1. 998*2 6.01924 0.74 .67 0.60 0.55 C.J1 0.47 C.44 0.41 0.39 0.39
10
11 1.995*9 6.05949 0.74 .67 0.60 0.55 0.51 0.47 0.-.4 0.41 0.39 0.39
12 1.99937 6.00916 0.74 .67 C.60 0.55 C.51 C.47 C.44 0.41 0.39 0.39
13 1.99558 6.05777 0.74 .o7 0.60 0.55 0.51 0.47 0.44 0.41 0.39 0.39
14 1.99649 6.04573 0.74 3 .67 0.60 0.55 C.51 C.47 0.44 0.41 0.39 0.39
1.99431 6.07467 0.74 .67 C.60 0.55 C.51 C.47 C.44 0.41 C.39 0.39
IS
87
C
C THE PARAMETERS IN THE NONLINEAR DIFFUSION EQUATION FOR ORYING
C OF CONCRETE ARE DETERMINED 8Y THE GENERALISED NEWTCN-RAPHSON
C KETHCD (Oft THE QUAS ILINEAR IZATICN METHOD). THE CRANK-NICOLSON
C TECHNICUE HAS BEEN USED FOR NUMERICAL INTEGRATION. USE OF THE
C THOMAS ALGORITHM HAS ALSO BEEN MADE.
C
REAL L
DIMENSION Y0( 101,10) ,YH 101,10) ,YH1< 101,10) ,YH2U01,10) ,YH3U01,10
*),YP(101,10),A10(1),A20{1) ,A30U) Al 1 11 ,A21 1 A3 1 1)
, 1 ( ) , ( ,
*A(3),V:(10),L{10;,D(10),U<10),B[10),8S19),OP{9),QU9),Q2<9),Q319)
CCMMCN/FDRMER/YO,A10,A20,A30,MO,M2,M3,M
CCMMCN/ICCNTR/INT.1CHECK
1 FORMAT (nFlO.S, 615)
2 FORMAT {10X.9F10. h)
4 FORMAT 10X,3F3.4)
6 FORMAT (515)
7 FCR»AT(F1C.5J
9 FDRMAT(3I5)
13 FCRMAT13F10.6)
63 F0?.MAT(5X,I4,6X.3F12.'t)
RE A 0(5, 1) DX, Tr, EPS, XE,N, Ml, MO, M2,K3,ND ATA
READ(5,6) 1X,IY,U, IX1.IY1
RcAC(5,6) 2A, IS, IC, ID, IE
DO 11 1=1,NDATA
R£AD(5,7) BS(I)
11 CONTINUE
RE6D(5,9) INN,IX2,IY2
READ(5,13) DT1,0T2,DT3
REAC(5,13) DT1C,DT20,DT3C
READ(5,13) A1INT,A2INT,A31NT
KRITF(&,4) A1INT,42INT,A3INT
WRITE(6,2i (BS( i), I=1,NDATA)
T = 0.
DO 12 I=1,N
S=T+1.
DO 120 J»1,K2
YOJ I»J)*I l./S)**(0.CC294 2*(ALOG(S) )**2 .26) *( DX*{ J-l J )** 10. 12882-
'
*0.03179*I l.-DX*(J-l) )*»2)
YOU
,M3)=YC(I,M0)
120 CONTINUE
IFt I.GE.1.AND.I.LE.IX1) CT=DT10
IF( .GE. 1X2. AND. I. L E.I YD DT-DT20
I
PAGE 002
00 121 1=2. M3
Y1(1,I)=XE
121 CONTINUE
Yl( 1,1)=0.
Allll>=0.
A21 tl)=0.
A3H 1>=0.
IDUKMY=1
1CHECK=1
20 CONTINUE
DC 122 !=1,M3
WU )=Y1 1 » I
(
122 CONTINUE
T=0.
DO 123 J=1,M3
Yl( INT ,J)=WU)
123 CONTINUE
630 CONTINUE
IFI IDUMMY.EC.l) GO TO 100
IF( IDUMHY.EQ.2) GO TO 20
IFI IDUXHY.EQ.3) GO TO 300
IF( IDUMMY.E0.4) GO TO 400
c
C PAkTICULAR SOLUTION
c
100 CONTINUE
DC 31 1=1, Ml
DC 124 J=1,M3
Y?< I,J)=Y1CI,J)
124 CONTINUE
31 CONTINUE
QPl 1 >=YP< IX, IA)
CP(2)=YP(IX,IB)
0P( 3)=YP( IX, IC)
QP(4)*YPI IX, ID)
QP(5)=YP( IY.IA)
QP{6)=YPt IY,1B)
0?(7)=YP{ IY, IC)
CP(S)=YP( IY,1D)
QP(9)=YP( IZ.IA)
hRITE(6,2> (CPI I), I = 1,NDATA)
C
C SET INITIAL VALUES OF HOMOGENEOUS SOLUTION (1)
C
DO 125 1=1, M3
Yl( 1, I ) = 0.
125 CCNTINUE
89
PAGE 003
All(l)*l.
A2K 1)=0.
A31U)=0.
IDUMMY=2
ICHECK=2
GO TC 20
C
C HOMOGENEOUS SOLUTION (1)
C
2J0 CONTINUE
DC 32 1=1, Ml
DO 126 J=1,M3
YHK I, J) = YKI ,J>
126 CC.NT INUE
32 CONTINUE
OK 1) = YH1< IX, IAJ
CH2)«YH1( IX, IB)
Q1(3)«YH1CIX(IC)
0K4)=YH1( IX, ID)
CK5)=YH1 IY.IA) {
PAGE 004
DC 129 J=1,M3
Y1(1,J)=0
125 CONTINUE
AIM 1>=0.
«l(ll-0.
A31! 1)=1.
IDUMMY=4
ICHECK=2
GO TO 20
C
C HOMOGENEOUS SOLUTION 13)
C
40 CONTINUE
DO 34 1=1 ,K1
DO 130 J=1,M3
Yri3( I,J)=Yl(I,J)
1.30 CONTINUE
34 CONTINUE
03! 1 >=YH3[IX,1A)
03(2) = YH3( IX, IB)
C3m = YH3< IX, 10)
C3(4)=YH3l IX, ID)
03(5)=YH3UY,IA)
C3(fc)«YH3< IY, IB)
Cli( 7}=YH3(IY,1C)
Oil S)=YH2( IY, ID)
C3(9)=YH3l 12, IA)
WRITEI6.2) (03( I) ,I=1,NDATA)
C
C CALL SUBROUTINE TO FIND INTEGRATION CONSTANTS
C
CALL FUNC(CP,Cl,C2,Q3,BS,A>
KRITEI6.63) NN,A(1 ,A(2) f A(3)
C
C GENERAL SOLUTIONS FOR Yl (T 1M E, SPACE)
C
DO 60 I«1,K1
DC 131 J=2,M2
Yll ,J)=YP( 1,J)*A(1)*YH1 (I ,J)+A(2)*YH2(
I I , J > +A £3) *YH3 (I , J)
131 CONTINUE
60 CONTINUE
WRI TEC 6.21 Yl( I X.I A) ,Y1(IX,IB) ,Y1< IX.IC) ,Y1(IX,ID) .YKIY.IA) ,Yl(IY
*,I5),Y1{IY,IC),Y1(IY,ID),Y1(U,IA)
DA1« All)-AlO(l)
DA2 = A(2)-A20(l)
DA3= A(3)-A30(l)
IF! ABS DAD.LE.EPS). AND. (ABS(DA2) .LE.EPS) .ANC. ABS ( CA3 .LE.EPS
( I J ) ) )
* GO TO 66
DO 73 1=1 ,M1
DO 13? J=1,M3
Y0( I,J)=Y1( I, J)
132 CUNTINUE
73 CONTINUE
AlOtl)=A(l)
A20(1)=A(2)
A301 1)=A(3)
NN=NN*1
91
PAGE 005
90,90,66
63 CONTINUE
STOP
END
92
REAL L
DIMENSION Zf 10) ,Y0(101 ,10) ,A1N(1 ), A2NI l),A3N(l).Li lOltlillO) ,D( 10 J,
* R( 10) ,A1( 1) ,A2(1) ,A3U)
CCMfCN/FORMER/YC f Al,A2»A3f«0»M2i«3i«
COMMON/ ICONTR/1 .METHOD
Z(1)«0.
ZIK3)=Z(M0)
DC 111 J=2,K2
L(J) = -R*CUli 1) ,A2ll) ,A3t l),YOt I ,J) ,Y0(1*1, J)) /2.
D(J) = R*{1./R*CU1 U) ,A2( 1) ,A3( I) ,Y0( I, J) ,Y0< 1*1, J) )
» CY1A11 1) ,A2(1) ,A3( 1) ,YO(I ,J) ,YO(I+l J ))/*..*( YO l+i,J)-YO( I+i,J-l) , C
111 CCNT1NUE
L(2)=0
LtV.2) = UIM2)*-L(y,2)
U(M?)=0
IF (METHOD. EC.l) GO TC 10
IFlMETriOD. EC. 2) GO TO 20
c
c PARTICULAR SOLUTIONS
c
10 CCI\T!NUE
DO 101 J=2,M2
BUI = 2(J) + R/2.»(Y0U+l, J+1)-2.*Y0( I*l,J)+YCU*l,J-lJ«-YOU ,J*l
* )-2.*Y0{I,J>+YO(I,J-l>)*(CllAl<l)iA2(l),A3U>,YOll,J),YJUU,J))
* *IA1N(1)-Al(l))+C2(A1(1),A2(1),A3(1),YC(I ,J) , YO 11 + 1 , J ) ) * I A2M 1 )
-A
* 2(1) )+C3( Aid ),A2(1 ),A3( 1) ,Y0( I,J) ,Y0( 1*1, JJ )*(A3N( D-A31 1) )+CY( Al
* (l),A2ll),A3lll,Y0(I,J),Y3(I+l,J> /2. ) * ( Z( J J -Y0< I* I , J» -YO 1,J) ( D*
*R/<i.*(YCl 1 + 1, J + D-YOI I*l,J) + YO(I ,J+i)-Y2(I ,J> >**2MCY1 (AH 1) ,A2( 1)
*,A3( 1) Y0< I,J) ,Y0( IU,J) >*(A1N(1 )-AlU >+CY2(/U(l) ,A2ll),43l 1)
. ) ,
*Y0< ,J) |yOU*1, J))*U2M U-A21 I) )+CY3( Al (1) ,A2tl). A3U) ,YOU»J) r
!
»yo(i+i,j))»(yo(I+i,j*i>-yo{i*i,j)*yo(i,j+i)-y:ii,jj)*{Z(j*1)-z{j))
* +R/2.*C< Al{l),A2( 1) ,A3( 1) ,Y0( I * J] ,Y0( 1*1, J) ) « IZ I J 1 >-2.*Z J)«-Z( J-
*1)1
101 CONTINUE
GC TC 30
C
C HOMOGENEOUS SOLUTIONS
C
20 CONTINUE
DC 102 J=2,M2
B(J) = ZtJ) + R/2.*(YOU + l,J+l)-2.*YJU + l,J)+Y3(I*l,J-l)*Y0U.J + l
* )-2.*Y0t I,J) + Y0U,J-1>)*(CIU1U).A2U),A2U>.Y0U,J),Y0II«-1,J))
* *(A1N(1)) <-C2(Al (1 ), A211). A3U),Y0(I,J) ,Y0(I + 1.J) >*( A2N( 1)}
* + C31A11 1) ,A2( 1) ,A3( 1) ,YGU ,J> ,Y0U*1, J))*iA3N(l)) +CYIA1
* (l),A2tl),A3(l),Y0(l,J),Y0{I+l,J))/2.*IZ(J)))+
*KM.*(YOI + l,J+l)-YJU+l,J)+YO{l,J + l>-YO(I,J) )**2*(CY11A1( 1),A2(
] 1)
*,A3U) ,YOU.J),YO{ + i.J) )*<A1NU) +C Y2 i All 1) , A2( I » ,A3 (1)
I )
*1J )
102 CONTINUE
30 CONTINUE
CALL TRI0AG(2,H2»LfCfU»B,Z)
RETURN
END
*) )**fc *A2**A3*
/6. ) )
* l.-( A3-1. )*(C.5*( Y1+Y2) +( A3-1 . *( A3-2.) /2.-MG.5* (Y1 + Y2) )**2-
( ) )
FUNCTION C(Al»A2|A3iYl,Y2l
* ll.*A2*»A3*« l.-A3*(0.5*(Yl+Y2))*A3*lA3-l.J/2-*(0.5*(Yt*Y2))**2-
*A3*(A3-l.)*(A3-2.)/6.*{0.5*(Yl*Y2) )**3)»
RETURN
END
RETURN
END
^UNCTION CYY(A1,A2,A3,Y1,Y2)
CYY= A 2** A 3* A3* l.-Al)*(l.-( A^-2.)*t0.5*(YlfY2))+U3-2.)*{Al-3.)
(
*/2.*(0.!J*{YH-Y2) )**2-i A3-2.)*l A3-3.)*( A 3-4. It.* (0. i*( YI+Y2) )**3> )
*A3*(A3-J.)*(A3-2.)/6.*(0.S*(Yl+Y21 >*»3J)**3
RETURN
END
FUNCTI ON CHAl ,A2,A3,Yl f Y2)
CI * I .-I./
* 11 .+A 2**A3*( l.-A»*(C.5*lYUY2) )*A3*lA3-l. )/2, *l O.S*IYl«-Y2J )'
*.i3*( A" -I. >*( A3-2.
j/o.*(0.5*( Y1+Y2) )**3)
RETURN
END
FUNCTI ON C2(Al,A2,A3,Yl,Y2)
r 2 - — 1.-A1 >*A3*A2**( A3- I .( >
RETURN
ENO
FUNCTI ON C3(AliA2,A3,Yl,Y2)
C3 = - ( i.-AU*(AU.u<A2)-<0.5*( Y1*Y2) )-( C. 5*( YUY2) )**2)/2.-
{
CY1= -A3*A2**A3*
* (1 ._l A3-1. )*(0.5*(Yl+Y2))+( A3-I.XI A3-2.) /2.*I0.5*(YL
+ Y2) )**2-
* (A3-l.>*iA3-2.)*<A3-3.J/6.*t'J.5*m+Y2})**3i/
* U+A2**A3*I1.-A3*(C.5*-(Y1 + Y2I K\3*(A3-1. >/2.*« ) 0. 5* (Y1+Y2 > )
**2-
(
C
C USE THE THOMAS ALGORITHM FOR THE TRID1AGCNAL EAND MATRIX
C
SUBROUTINE TRIDAGt IF,L,A,B,C,D,V)
DIMENSION Atl ,6(1 ,C( 11 ,D(1 J.Vt II ,BETA( 101) GAMMA (101)
) ,
C
C COMPUTE INTERMEDIATE ARRAYS BETA, GAMMA
C
BETMIF> = 8( IF)
GAMMA! IF)=D(IF)/BETA( IF)
IFP1=IF+1
DO 1 I=IFP1,L
3ETA(I )=RII)-A(I)*C(I-l)/BETA(I-l)
1 GAMMAl I) = (DU)-A(I)*GAMMA{ 1-1) /BETA(I) )
C
C COMPUTE F. 1NAL SOLUTION VECTOR V
C
V(L )=GAKMA(L J
LAST=l-IF
DO 2 K=1,LAST
I = L-K
2 V(I )=GAMMA(I)-CU)*VUn )/B£TA( I)
RETURN
END
96
C
C SOLVE THE EQUATIONS TO OBTAIN THE INTEGRATION CONSTANTS
C
SUBROUTINE FUNC(QP,C1,C2,Q3,BS,AA)
DIMENSION CP(9) f Ql<9},C2{9),l23(9),BSl9),A(3i3),B(3)>AAC3>
SUM 1 = 0.
SUM 2=0.
SUM3=0.
SUM4=0.
SUM 5=0.
SUM6=0.
SU W,7=0.
SUMS=0.
SUM 9=0.
DO ICO 1=1,9
sumi=sumi«-ci m*Qi id
SUM2«SUN2+QH I)*02II)
SUM3=SUM3+01(I)*Q3(I)
S'JM4=SUM4 + G2U >*C2 II )
SuK6=SJMo+C3(I )*C3( I)
SUV.7=SUM7-C1(I)*(QP(I>-BS( I) J
SUr'!9=SUM9-C3n)*(0P(I)-BS( I) )
100 CONTINUE
Atl 1) = SUM1
,
* ([A(l,3)*A(2,l}-At2,3>*A(l,l))*UC2,2)*A(3,l)-A<3,2)*Al2,l))T
*<Al2,3)*A(3,i>-A( 3,3)* A( 2, 1) )* A 1 ,2 )* A{ 2 1 -A (2 ,2 )* A (1 , 1 ) )
I 1 ,
)
Lee for
to his Major Professor Dr. Chi Lung Huang and to Dr. E. Stanley
prepar-
their continual guidance, suggestions and comments throughout the
His thanks are also due to Dr. F. C. Appl and to Dr. E. Stanley Lee
preparation
from the department of mechanical engineering throughout the
to his dear
Last but not the least the author expresses his gratitude
and inspiration,
parents and family members for their constant encouragement
is also gratefully
The support he received from his uncle Mr. H. R. Rao
acknowledged.
VITA
Master of Science
Biographical
Mukta V. Kallianpur.
Education:
Inc., Bombay during April 1976; as Design Engineer in Godrej and Boyce
Pvt Ltd, Bombay, from May 1976 to July 1976; worked as a graduate
DIFFERENTIAL EQUATIONS
by
MASTER OF SCIENCE
Manhattan, Kansas
1978
ABSTRACT
geneous tubular flow chemical reactor with axial mixing is presented in Part I
linearization technique. The fourth order Runge Kutta Gill method is used
imizes the error between the experimental data and the model predictions.
Numerical data from Lee [11] has been treated as the experimental data.
in Part II.