1-s2.0-S0377042797000344-main
1-s2.0-S0377042797000344-main
1-s2.0-S0377042797000344-main
COMPUTATIONAL AND
APPLIED MATHEMATICS
Abstract
In this paper, variable space grid and boundary Immobilisation Techniques based on the explicit finite difference are
applied to the one-phase classical Stefan problem. It is shown that all the results obtained by the two methods are in good
agreement with the exact solution, and exhibit the expected convergence as the mesh size is refined.
Keywords: Stefan problem; Variable space grid; Boundary immobilisation; Finite differences
1. Introduction
A large number of problems in various areas of applied science appear as movin9 boundary or
phase change problems. These can arise in heat conduction situations in conjunction with a change
of phase and initial and moving boundary conditions, and need to be solved in a time-dependent
space domain with a moving boundary condition. Since the moving boundary is a function of time
and its location has to be determined as a part of the solution, such problems are inherently
nonlinear. In general, the nonlinearity associated with the moving boundary significantly compli-
cates the analysis of this class of problems. A common example is the problem of meltin9 of ice that
was first treated by Stefan [9] and after whom such problems are widely referred to as Stefan
problems.
In recent years, these problems have motivated considerable research into numerical solution
methods. A wide range of numerical methods applied to Stefan problems has been reported with
selected references in Crank's comprehensive book [2].
In this study, as a simple example of a moving boundary problem, the one-dimensional melting ice
problem is taken into consideration with one phase. We present a brief comparison of a few well-
known standard numerical solution techniques based on explicit finite-difference approximations.
* Corresponding author.
Here we are interested in the temperature distribution U(x, t) in the liquid region, 0 < x < s(t)
and in the location of the liquid/solid (moving) interface. Sometimes we omit the arguments x and t.
A typical dimensionless model of the one-phase Stefan problem is in the following form (see, e.g.,
[4]):
The temperature U is governed by the heat conduction equation
(~U •2U
O<x<s(t), t>O, (1)
& cgx2 '
subject to the boundary conditions
~U
--= -exp(t), x=O, t>0,
~x
(2)
U=0, x=s(t), t>0,
The location of the liquid/solid interface is given by the heat balance equation known as Stefan
condition
ds _ 0U ]
dt ¢?x I' x = s(t), t > 0 , (3)
U=0
s(t) = t, t >- O.
The exact solution (5) can be used to compare the numerical solutions and can also be used to
initialise the numerical schemes.
Here we deal with the finite-difference solution of the dimensionless model problem given by
Eqs. (1)-(4). Before proceeding further with this numerical method, it is worth tracing or fixing the
time-dependent moving boundary since its location is unknown a priori. To do this, several
numerical techniques based on finite-difference approximations have been used extensively for the
numerical solution of the Stefan problems. A survey of these can be found in [2, 7].
We are only concerned with variable space grid and boundary immobilisation techniques.
These are reviewed in detail in the subsequent sections and applied to the problem given by Eqs.
(1)-(4).
S. Kutluay et al./Journal of Computational and Applied Mathematics 81 (1997) 135-144 137
The number of space intervals between a fixed boundary x = 0 and a moving boundary x = s(t)
was kept constant and equal to N so that the moving boundary always lay on the N t h grid [6]. By
tracking particular grid lines, as opposed to constant x, and differentiating with respect to time
t the following expression was obtained for ith grid point,
0U O_~xUt d~t ~ OU
?7 = +-h-'
and was also assumed that the node xi is moved by the expression
dxi xi ds
dt s(t) d t '
in which the suffices t, i, and x are to be kept constant during the differentiation processes and
omitted for clarity below. Thus, in the dimensionless model problem, the heat conduction equation
(1) takes the form
with a truncation error of O ( k ) + O(h2). In the above equations uT' '-" U(xT', t,,), xT' = ihm,
tm = to + ink. hm( =- Ax") is the grid size at the ruth time step, k( -- At) is the time step, to is a starting
time, and r = k/h 2.
The boundary condition at x = 0, in terms of central differences, can be written as
um
- 1 = uT + 2hexp(tm). (9)
138 S. Kutluay et al./Journal of Computational and Applied Mathematics 81 (1997) 135-144
By eliminating u m
_ a between Eqs. (9) and (10) the model problem is expressed by the following
explicit forms:
Heatflow in 0 < x < s(t):
. ..
u7,+1 = ( 1 - - 2 r ) u ~ ' + 2 r u m + l + 2rh -~ )exp(t,,), i=O, m=O, 1,2,...,
kxT' gm ,,
uT'+l=uT+ 2--~s (Ui+x--UT_,)+r(uT'+I--2um+u']'_I), i=l,...,N--1, m=0,1,2,...,
S0~0.
The updated interface location Sin+1 and grid size hm+ ~ are calculated at each time from Eq. (11)
and hm + ~ = Sm+,/N, respectively.
F o r stability it is convenient to use Von N e u m a n n ' s m e t h o d of analysis (see, e.g., [8, Section 2])
which gives the following b o u n d on the size of the time step k:
2h 2
k~< (12)
4 + (hg) 2
in which g = ds/dt.
It is also possible to fix the moving interface by using a fixed co-ordinate system in space for the
moving b o u n d a r y problem. This is accomplished by using the spatial co-ordinate transformation
X
= (13)
s(t)
which was proposed in [5] and first applied to a finite-difference scheme in [1]. U n d e r this
transformation the moving interface x = s(t) is fixed at ¢ = 1 in the new co-ordinate system (~, t).
We now re-formulate the dimensionless model problem defined by Eqs. (1)-(4) in the co-ordinate
system (4, t). F r o m the usual partial differential relations we have
~U 10U OZU 1 ~2U
~x-s~' ~x 2 - s 2 ~ 2 ,
S. Kutluay et aL /Journal of Computational and Applied Mathematics 81 (1997) 135-144 139
and
OU x OU ~ 3__~t ~ x as a u ~-~t~
-& - - ~ -& + - s 2 dt O ~ + '
where the suffices x and t are to be kept constant during the differentiation processes and omitted
for simplicity below.
Thus, we obtain the following description of the dimensionless model problem under the
transformation (13):
H e a t f l o w in 0 < ~ < 1:
t?U ~ ds OU 1 (~2U
- -
0U
-- - sexp(t), ~ = O,
(15)
U(1, t)=O, 4=1.
Heat balance at ~ = 1:
ds 10U
4=1, t>0, (16)
dt- s ~3~'
s(0)=0, t=0. (17)
An explicit numerical solution to the above 'immobilised' problem is easily obtained using usual
finite differences. As done before the finite-difference replacements of 02U/~3~ 2 and aU/O¢ at the
nodes (¢~, tm) is respectively replaced by the usual central differences. The first derivatives with
respect to the time variable, OU/& and ds/dt, are replaced by the usual forward difference. An
appropriate replacement for the temperature gradient at the moving interface s(t) is given by
Eq. (7).
One explicit finite difference representation of Eq. (14) is
rh~i Sm r
u7'+1 = u m + ~ (uT'+x - uT'- 1) + ZYs,(u?+l
, - 2u7' + uP-l) (18)
with a truncation error of O ( k ) + O(h2). In the above equations uT' ~ U(~, tr,), ~ = ih,
t,, = to + ink, to is the time at which the numerical process is initialised, s,. ..~ s(t,.), g = ds/dt,
r = k/h 2, h(-- A~) and k ( - At) are the mesh size and time step, respectively. N is the number of
space intervals (in the direction of 4).
Using central difference for the left boundary condition we obtain
vim-1 = l,ln~ "31- 2hs exp(tm). (19)
The finite difference Eq. (18) at ( = 0 becomes
rh~o gin, m r
/'/3 +1 = US "[- ~ t/'/1 -- /Am-1) + ~mm(U~ -- 2u~' + u"- x). (20)
140 S. Kutluay et al. /Journal of Computational and Applied Mathematics 81 (1997) 135-144
Elimination of the fictitious value u ~- 1 between Eqs. (19) and (20) yields
rh~izm r
U m+l = U m + ""T'~ (Urn+ 1 -- UP-l) "1- - - (Urn+ I - - 2 U 7 ' + uT'- 1),
,~z,, Zm
m=0,1,2,..., i=1,..., N-l,
u~'=0, i=N; m=0,1,2,...,
ZO=0.
4. Numerical results
All calculations were performed in double precision arithmetic on a PC-486 Intel processor
running under DOS 5.0 and using Prospero F O R T R A N compiler.
In both methods considered in this study, the numerical process was initialised at to = 0.1 using
the exact solution given by Eq. (5).
Table 1
Variable space grid: Values of the temperature distribution as predicted by the
numerical (explicit finite-difference) and exact solutions at a final time of tf = 0.5
Table 2
Variable space grid: Values of the location and speed of the moving interface as predicted
by the numerical (explicit finite-difference) and exact solutions at a final time of te = 0.5
N Numerical solution
Table 3
Location of the moving boundary
0.1 . . . . 0.1
0.2 0.20005774 0.20001448 0.20000362 0.20000091 0.2
0.3 0.30022646 0.30005682 0.30001422 0.30000356 0.3
0.4 0.40039488 0.40009928 0.40002487 0.40000622 0.4
0.5 0.50026461 0.50006726 0.50001693 0.50000425 0.5
142 s. Kutluay et al./Journal of Computational and Applied Mathematics 81 (1997) 135-144
defined b y
Ile[ll = ~ 1 Ni~0
-11 g (xi, tm) ] e = [eo ... e N - 1 ] T
Table 4
Values of Ilelll for the numerical
predictions shown in Table 1
h Ilelll
0.1 0.002942
0.05 0.000738
0.025 0.000185
Table 5
A boundary immobilisation: Values of the temperature distribution as predicted by the
numerical (explicit finite difference) and exact solutions at tf = 0.5
Table 6
A boundary immobilisation: Values of the location of the moving interface as predicted by
the numerical (explicit finite-difference) and exact solutions at a final time of location of
tf = 0.5
N Numerical solution
Table 7
Location of the moving boundary
0.1 . . . . 0.1
0.2 0.19985926 0.19996478 0.19999119 0.19999780 0.2
0.3 0.29979494 0.29994872 0.29998718 0.29999680 0.3
0.4 0.39965955 0.39991493 0.39997875 0.39999469 0.4
0.5 0.49916879 0.49979212 0.49994807 0.49998702 0.5
Table 8
Values of Ilelll for the numerical
predictions shown in Table 5
h Ilelll
0.1 0.000575
0.05 0.000144
0.025 0.000036
It is clearly observed that all the numerical predictions are in good agreement with the analytic
solution and there is certainly evidence of a convergent scheme. Table 8 shows the values of II e II 1
for the predicted temperature distributions displayed in Table 5. In fact, the value of Ilelll
converges to the exact value at a rate of about 1.9966. This is again consistent with the theoretical
expectation of O(h2).
Summarising all the numerical results obtained by using the schemes described above, based on
the explicit finite difference, show reasonably good agreement with the exact solution, and exhibit
the expected convergence as the number of space intervals is increased. The BIM, with respect to
144 S. Kutluay et al./Journal of Computational and Applied Mathematics 81 (1997) 135-144
the temperature distribution, generates slightly more accurate solutions than the VSG. However,
with respect to the interface movement (location and speed), the VSG produces very accurate
solutions than the BIM.
In conclusion, when the two methods described above are applied to the Stefan type problems,
the predicted solutions are in reasonably good agreement with the exact ones for many practical
purposes.
References
[1] J. Crank, Two methods for the numerical solution of moving-boundary problems in diffusion and heat flow, Quart.
J. Mech. Appl. Math. X (2) (1957) 220-231.
[2] J. Crank, Free and Moving Boundary Problems, Clarendon Press, Oxford, 1984.
[3] R.M. Furzeland, A comparative study of numerical methods for moving boundary problems, J. Inst. Maths. Appl. 26
(1980) 411-429.
[4] K.H. Hoffman, Fachbereich Mathematik, Vol. I-III, Berlin Freie Universitat, 1977.
I-5] H.G. Landau, Heat conduction in a melting solid, Quart. J. Appl. Math. 8 (1950) 81-94.
[6] W.D. Murray, F. Landis, Numerical and machine solutions of the transient heat conduction problems involving
melting or freezing, J. Heat Transfer 81(C) (1959) 106-112.
I-7] J.R. Ockendon, W.R. Hogkins, Moving Boundary problems in Heat and Diffusion, 2nd ed., Clarendon Press,
Oxford, 1975.
I-8] G.D. Smith, Numerical Solution of Partial Differential Equations: Finite Difference Methods, 3rd ed., Clarendon
Press, Oxford, 1987.
[91 J. Stefan, Uber die theorie der eisbildung inbesondee uber die eisbindung im polarmeere, Ann. Phys. U. Chem. 42
(1891) 269-286.