
266
 Chapter
 6.
 Heat
 flow
 and
 diffusion
9.
 Consider
 a
 heterogenous
 bar of
 length
 100cm
 whose material properties
 are
given
 by the
 following
 formulas:
p(x)
 = 7.5 +
 O.Ola;
 g/cm
3
,
 0 < x <
 100,
c(x)
 =
 0.45
 +
 O.OOOlx
 J/(gK),
 0 < x <
 100,
K(X)
 = 2.5 +
 0.05z
 g/(cmK),
 0 < x <
 100.
Suppose
 that
 the
 initial temperature
 in the bar is a
 uniform
 5
 degrees Celsius,
and
 that
 at t = 0
 both ends
 are
 placed
 in ice
 baths
 (while
 the
 lateral side
 of
the bar is
 perfectly insulated).
(a)
 Formulate
 the
 IBVP
 describing this experiment.
(b)
 Formulate
 the
 weak
 form
 of the
 IBVP.
(c)
 Use the finite
 element method with backward
 Euler
 integration
 to
 esti-
mate
 the
 temperature after
 2
 minutes.
10.
 Consider Example 6.8,
 and
 suppose
 that
 the
 number
 of
 elements
 in the
 mesh
is
 increased
 from
 100 to
 200,
 so
 that
 the
 mesh size
 h is cut in
 half. Show,
 by
numerical
 experimentation,
 that
 the
 time
 step
 At
 in the
 forward Euler method
must
 be
 reduced
 by a
 factor
 of
 approximately
 four
 to
 preserve
 stability.
6.5
 Finite
 elements
 and
 Neumann conditions
So
 far we
 have only used
 finite
 element methods
 for
 problems with Dirichlet bound-
ary
 conditions.
 The
 weak
 form
 of the BVP or
 IBVP,
 on
 which
 the finite
 element
method
 is
 based, incorporates
 the
 Dirichlet conditions
 in the
 definition
 of
 V,
 the
space
 of
 test
 functions. When
 the
 weak
 form
 is
 discretized
 via the
 Galerkin method,
the
 boundary conditions
 form
 part
 of the
 definition
 of
 S
n
,
 the
 approximating sub-
space (see
 (5.50)).
It
 turns
 out
 that
 Neumann conditions
 are
 even easier
 to
 handle
 in the finite
element method.
 As we
 show below,
 a
 Neumann condition does
 not
 appear explicitly
in
 the
 weak
 form
 or in the
 definition
 of the
 approximating subspace (the analogue
of
 S
n
)-
 For
 this reason,
 a
 Neumann condition
 is
 often
 called
 a
 natural
 boundary
condition
 (since
 it is
 satisfied automatically
 by a
 solution
 of the
 weak
 form),
 while
a
 Dirichlet condition
 is
 referred
 to as an
 essential
 boundary
 condition (since
 it is
essential
 to
 include
 the
 condition explicitly
 in the
 weak
 form).
6.5.1
 The
 weak
 form
 of a BVP
 with Neumann conditions
We
 will
 first
 consider
 the
 (time-independent)
 BVP
266 
Chapter 
6. 
Heat 
flow 
and 
diffusion 
9. 
Consider a  heterogenous 
bar 
of length 100 cm  whose material properties are 
given by the following formulas: 
p(x) 
=  7.5 + O.01x 
g/cm
3
, 
0 < x  < 100, 
c(x) 
=  0.45 + 
O.OOOlx 
J/(gK), 
0 < x  < 100, 
II;(X) 
=  2.5 + 0.05x 
g/(cmK), 
0 < x  < 100. 
Suppose 
that 
the initial temperature in the 
bar 
is 
a uniform 5 degrees Celsius, 
and 
that 
at 
t  = 0 
both 
ends are placed in ice 
baths 
(while 
the 
lateral side of 
the 
bar 
is 
perfectly insulated). 
(a)  Formulate the IBVP describing this experiment. 
(b)  Formulate the weak form of the IBVP. 
(c) 
Use 
the 
finite element method with backward Euler integration 
to 
esti-
mate 
the 
temperature after 2 minutes. 
10.  Consider Example 6.8, 
and 
suppose 
that 
the number of elements in the mesh 
is 
increased from  100 
to 
200, 
so 
that 
the mesh size  h 
is 
cut in half.  Show, by 
numerical experimentation, 
that 
the time step 
tlt 
in the forward Euler method 
must 
be 
reduced by a factor of approximately four 
to 
preserve stability. 
6.5  Finite elements and  Neumann conditions 
So 
far 
we 
have only used finite element methods for problems with Dirichlet bound-
ary conditions.  The weak form  of the 
BVP 
or IBVP, on which the finite element 
method 
is 
based, incorporates 
the 
Dirichlet conditions in 
the 
definition of V, the 
space 
of 
test functions.  When the weak form is discretized via the Galerkin method, 
the boundary conditions form 
part 
of the definition of Sn, the approximating sub-
space (see  (5.50)). 
It 
turns 
out 
that 
Neumann conditions are even easier to handle in the finite 
element method. 
As 
we 
show below, 
aN 
eumann condition does not appear explicitly 
in the weak form  or in the definition of the approximating subspace (the analogue 
of Sn).  For this reason,  a  Neumann condition 
is 
often called a  natural boundary 
condition (since 
it 
is 
satisfied automatically by a solution of the weak form),  while 
a Dirichlet  condition 
is 
referred to as 
an 
essential boundary  condition (since it 
is 
essential to include 
the 
condition explicitly in 
the 
weak form). 
6.5.1  The 
weak 
form  of a BVP with  Neumann conditions 
We 
will first consider the (time-independent) 
BVP 
d ( 
dU) 
--
k(x)-
= 
lex), 
dx  dx 
0< 
x  < 
£, 
du (0)  =  0 
dx  ' 
(6.44) 
du 
dx(£) 
=0.