One-dimensional problems
191
condition for (5.11) and estimating s from a regulia falsi solution of the
corresponding eqn (5.18) as Ferriss and Hill (1974) did.
Equation (5.11)
is
solved
to
find u
n
+1.1 with an initial guess
sn+I,O
obtained, for example, by extrapolation from the two previous time
levels. Then an improved estimate
sn+1,1
is
obtained from the moving
boundary conditions, as described above, and the scheme iterated until
convergence
is
achieved
to
a prescribed accuracy (usually
2-3
iterations in
Furzeland's test problems for a precision of 10-
4
).
If
s(t)
= e
l
for a finite
length of time then (5.8) is singular.
The
original eqn (5.1) needs
to
be
solved by using, for example, a Crank-Nicolson scheme on a fixed
domain until
s(t)-e
l
becomes non-zero. This
is
not necessary
at
t=O
as
long as
s(O
at»o in (5.11).
Furzeland
(1979b)
developed a general-purpose computer program
based on
the
above iterative algorithm. Mastaniah (1976) used essentially
the
same algorithm to solve problems with temperature-dependent ther-
mal properties, i.e.
k and c depend on
u.
Thus
k(u)
was evaluated at the
mid points
(j
±t,
n +!) by using Taylor's series to extrapolate u
n
+!
from
previous time levels.
An
alternative way of treating eqn (5.4), suggested in a private com-
munication by C. M. Elliott
to
Furzeland (1979b, 1980),
is
to discretize
only
the
space derivatives and
to
integrate the resulting ordinary differen-
tial equations in time along constant
~
=
~
lines.
For
example, eqn (5.2)
is
approximated by
dUj
1
Uj-I-2Uj
+
Uj+l
S
(Uj+l-
Uj-l)
dt
=
S2
(a~)2
+
~j
s 2
a~
,
j = 0,
1,
...
, N
-1,
0<~<1,
t>O.
(5.19)
Moving boundary conditions containing an explicit relation for S can
be
approximated, for example, by
UN
= 0, s =
-(3UN
-
4UN-1
+
UN-2)/2
a~,
t>O.
(5.20)
An
attraction of this approach
is
that well-established algorithms, e.g. the
Gear
algorithm, for stiff ordinary differential equations such as (5.19) can
be
used. Two readily available implementations are the
NAG
algorithm
D02AJF
or
an algorithm by Aitchison (1975) adapted for sparse mat-
rices.
The
stiff-system algorithm will automatically generate dUj/dt, j =
0,1,
...
, N
-1,
ands,
and
will
produce a solution vector
(uo,
Ul""
UN-h
s)
at required time intervals, provided an explicit boundary condition of type
(5.20) exists. This method
is
readily adaptable to non-linear equations
and moving boundary conditions, and
to
multi-component systems in-
cluding combined heat and mass transfer. Implicit conditions on the