Heat Transfer Chapter 5 Lecture Notes
Heat Transfer Chapter 5 Lecture Notes
Chapter 5
Numerıcal Methods In Heat
Conductıon
© 2020 McGraw-Hill Education. All rights reserved. Authorized only for instructor use in the classroom.
No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education.
Objectives
• Understand the limitations of analytical solutions of conduction
problems, and the need for computation-intensive numerical methods.
• Express derivates as differences, and obtain finite difference
formulations.
• Solve steady one- or two-dimensional conduction problems
numerically using the finite difference method.
• Solve transient one- or two-dimensional conduction problems using
the finite difference method.
© McGraw-Hill Education 2
5-1 Why Numerical Methods? 1
© McGraw-Hill Education 3
5-1 Why Numerical Methods? 2
© McGraw-Hill Education 4
5-1 Why Numerical Methods? 3
2 Better Modeling
When attempting to get an analytical solution to a
physical problem, there is always the tendency to
oversimplify the problem to make the mathematical
model sufficiently simple to warrant an analytical
solution.
Therefore, it is common practice to ignore any effects
that cause mathematical complications such as
nonlinearities in the differential equation or the
boundary conditions (nonlinearities such as
temperature dependence of thermal conductivity and
the radiation boundary conditions). Figure 5–3
The approximate numerical solution
A mathematical model intended for a numerical of a real-world problem may be more
solution is likely to represent the actual problem better. accurate than the exact (analytical)
The numerical solution of engineering problems has solution of an oversimplified model
now become the norm rather than the exception even of that problem.
when analytical solutions are available.
Access the text alternative for slide images.
© McGraw-Hill Education 5
5-1 Why Numerical Methods? 4
3 Flexibility
Engineering problems often require extensive parametric studies to understand
the influence of some variables on the solution in order to choose the right set of
variables and to answer some “what-if” questions.
This is an iterative process that is extremely tedious and time-consuming if done
by hand.
Computers and numerical methods are ideally suited for such calculations, and a
wide range of related problems can be solved by minor modifications in the code
or input variables.
Today it is almost unthinkable to perform any significant optimization studies in
engineering without the power and flexibility of computers and numerical
methods.
© McGraw-Hill Education 6
5-1 Why Numerical Methods? 5
4 Complications
Some problems can be solved analytically, but the
solution procedure is so complex and the resulting
solution expressions so complicated that it is not
worth all that effort.
With the exception of steady one-dimensional or
transient lumped system problems, all heat
conduction problems result in partial differential
equations.
Solving such equations usually requires
Analytical solution:
mathematical sophistication beyond that acquired at
the undergraduate level, such as orthogonality, T ( r , z ) − T
J ( r ) sinh ( L − z )
eigenvalues, Fourier and Laplace transforms, Bessel = 0 n
T0 − T n =1 n J1 ( n r0 ) sinh ( n L )
and Legendre functions, and infinite series.
where n 's are roots of J 0 ( n r0 ) = 0
In such cases, the evaluation of the solution, which
often involves double or triple summations of Figure 5–4
infinite series at a specified point, is a challenge in Some analytical solutions are very
itself. complex and difficult to use.
© McGraw-Hill Education 7
5-1 Why Numerical Methods? 6
5 Human Nature
Analytical solutions are necessary because insight
to the physical phenomena and engineering
wisdom is gained primarily through analysis.
The “feel” that engineers develop during the
analysis of simple but fundamental problems
serves as an invaluable tool when interpreting a
huge pile of results obtained from a computer
when solving a complex problem.
A simple analysis by hand for a limiting case can
be used to check if the results are in the proper
range.
Figure 5–5
The ready availability of high- In this chapter, you will learn how to formulate
powered computers with and solve heat transfer problems numerically
sophisticated software packages using one or more approaches.
has made numerical solution the
norm rather than the exception.
© McGraw-Hill Education 8
5-2 Finite Difference Formulation of
Differential Equations 1
Table 5–1
The numerical methods for solving differential
equations are based on replacing the differential Year-end balance of a $100 account
equations by algebraic equations. earning interest at an annual rate of
In the case of the popular finite difference method, 18 percent for various compounding
this is done by replacing the derivatives by periods
differences. Compounding Number of Year-end
Below we demonstrate this with both first- and period periods, n balance
second-order derivatives. 1 year 1 $118.00
An Example 6 months 2 118.81
A = A0 (1 + i ) = ( $100 )(1 + 0.09 ) = $118.81
n 2
1 month 12 119.56
dA 1 week 52 119.68
= iA
dt 1 day 365 119.72
A = A0 exp (it) 1 hour 8760 119.72
A = ($100)exp(0.18 × 1) = $119.72 1 minute 525,600 119.72
Reasonably accurate results can be obtained 1 second 31,536,000 119.72
by replacing differential quantities by
Instantaneous ∞ 119.72
sufficiently small differences.
© McGraw-Hill Education 9
5-2 Finite Difference Formulation of
Differential Equations 2
df ( x ) f f ( x + x ) − f ( x )
= lim = lim
dx x → 0 x x → 0 x
df ( x ) 1 2 d 2 f ( x )
f ( x + x ) = f ( x ) + x + x + ...
dx 2 dx 2
Taylor series expansion of the
function f about the point x,
Figure 5–6 The smaller the Δx, the smaller
The derivative of a function at a point the error, and thus the more
represents the slope of the function at accurate the approximation.
that point.
© McGraw-Hill Education 10
5-2 Finite Difference Formulation of
Differential Equations 3
Consider steady one-dimensional heat conduction in a plane wall of thickness L with heat
generation.
dT T −T dT T −T Finite difference representation
m m −1 and m +1 m
dx m−
1 x dx m+
1 x of the second derivative at a
2 2 general internal node m.
dT dT
− Tm +1 − Tm Tm − Tm −1 d 2T e
d 2T dx m+
1 dx m−
1
x
−
x T − 2Tm + Tm +1 + =0
2 2
= = m −1 dx 2
k
dx 2 m
x x x 2
Tm −1 − 2Tm + Tm +1 em
+ = 0, m = 1, 2,3,..., M − 1
x 2 k
1
Tm = (Tm−1 + Tm+1 ) no heat generation
2
Figure 5–7
Schematic of the nodes and the nodal
temperatures used in the development
of the finite difference formulation of
heat transfer in a plane wall.
© McGraw-Hill Education 11
5-2 Finite Difference Formulation of
Differential Equations 4
Figure 5–8
The differential equation is valid at every Figure 5–9
Finite difference mesh for two-
point of a medium, whereas the finite dimensional conduction in
difference equation is valid at discrete rectangular coordinates.
points (the nodes) only.
Finite difference formulation for steady two-dimensional heat conduction in a region
with heat generation and constant thermal conductivity in rectangular coordinates.
Tm +1,n − 2Tm ,n + Tm −1,n Tm ,n +1 − 2Tm ,n + Tm ,n −1 em ,n
+ + =0
x 2 y 2 k
Access the text alternative for slide images.
© McGraw-Hill Education 12
5-3 One-dimensional Steady Heat
Conduction 1
Rate of heat conduction Rate of heat conduction Rate of heat generation Rate of change of the energy
+ + =
at the left surface at the right surface inside the element content of the element
© McGraw-Hill Education 13
5-3 One-dimensional Steady Heat
Conduction 2
Tm −1 − Tm Tm +1 − Tm
Qcond, left = kA Qcond, right = kA
x x
Tm −1 − Tm T −T
kA + kA m +1 m + em Ax = 0
x x
Tm −1 − 2Tm + Tm +1 em
+ = 0,
x 2
k
m = 1, 2,3,..., M − 1
This equation is applicable to each of the M − 1
interior nodes, and its application gives M − 1
equations for the determination of temperatures
at M + 1 nodes.
The two additional equations needed to solve
for the M + 1 unknown nodal temperatures are
Figure 5–11
obtained by applying the energy balance on the
In finite difference formulation, the
two elements at the boundaries (unless, of
temperature is assumed to vary
course, the boundary temperatures are
linearly between the nodes.
specified).
© McGraw-Hill Education 14
5-3 One-dimensional Steady Heat
Conduction 3
© McGraw-Hill Education 15
5-3 One-dimensional Steady Heat
Conduction 4
Boundary Conditions
Boundary conditions most commonly
encountered in practice are the specified
temperature, specified heat flux, convection, and
radiation boundary conditions, and here we
develop the finite difference formulations for
them for the case of steady one-dimensional
heat conduction in a plane wall of thickness L as
an example.
The node number at the left surface at x = 0 is 0,
and at the right surface at x = L it is M. Note
that the width of the volume element for either
boundary node is x / 2.
Figure 5–13
Specified temperature boundary condition Finite difference formulation of
T(0) = T0 = Specified value specified temperature boundary
conditions on both surfaces of a
T(L) = TM = Specified value plane wall.
© McGraw-Hill Education 16
5-3 One-dimensional Steady Heat
Conduction 5
When other boundary conditions such as the specified heat flux, convection,
radiation, or combined convection and radiation conditions are specified at a
boundary, the finite difference equation for the node at that boundary is obtained by
writing an energy balance on the volume element at that boundary.
All sides
Q + Egen, element = 0
T1 − T0
Qleft surface + kA + e0 ( Ax / 2 ) = 0
x
© McGraw-Hill Education 17
5-3 One-dimensional Steady Heat
Conduction 6
© McGraw-Hill Education 18
5-3 One-dimensional Steady Heat
Conduction 7
T1 − T0 x
hA (T − T0 ) + A (Tsurr
4
− T04 ) + kA + e0 A =0
x 2
Figure 5–15
Schematic for the finite difference formulation of combined convection and radiation on the
left boundary of a plane wall.
© McGraw-Hill Education 19
5-3 One-dimensional Steady Heat
Conduction 8
Figure 5–16
Schematic for the finite difference
formulation of the interface boundary
condition for two media A and B that
are in perfect thermal contact.
Tm −1 − Tm T −T x x
kA A + k B A m +1 m + eA,m A + eB ,m A =0
x x 2 2
Access the text alternative for slide images.
© McGraw-Hill Education 20
5-3 One-dimensional Steady Heat
Conduction 9
© McGraw-Hill Education 21
5-3 One-dimensional Steady Heat
Conduction 10
Example
L 0.04m
x = = = 0.02 m
M −1 3 −1
Node 1
e2 x 2
2T1 − T2 = 71.43 ( in C )
hx hx
T1 − 1 + T2 = − T −
k k 2k T1 − 1.032T2 = 36.68 ( in C )
© McGraw-Hill Education 22
5-3 One-dimensional Steady Heat
Conduction 11
© McGraw-Hill Education 23
5-3 One-dimensional Steady Heat
Conduction 12
© McGraw-Hill Education 24
5-3 One-dimensional Steady Heat
Conduction 13
© McGraw-Hill Education 25
5-4 Two-dimensional Steady Heat
Conduction 1
Figure 5–23
The nodal network for the finite
difference formulation of two dimensional
conduction in rectangular coordinates.
© McGraw-Hill Education 26
5-4 Two-dimensional Steady Heat
Conduction 2
© McGraw-Hill Education 27
5-4 Two-dimensional Steady Heat
Conduction 3
Boundary Nodes
The region is partitioned between the
nodes by forming volume elements around
the nodes, and an energy balance is
written for each boundary node.
An energy balance on a volume element is
All sides
Q + eVelement = 0
© McGraw-Hill Education 28
5-4 Two-dimensional Steady Heat
Conduction 4
Example
Figure 5–27
Schematics for energy balances on the
volume elements of nodes 1 and 2.
x y T2 − T1 x T4 − T1 x y
Node 1 0+h (T − T1 ) + k +k + e1 =0
2 2 x 2 y 2 2
Figure 5–26 hl hl el 2
© McGraw-Hill Education 29
5-4 Two-dimensional Steady Heat
Conduction 5
Node 3
x y x T6 − T3 y T2 − T3 x y
h + (T − T3 ) + k +k + e3 =0
2 2 2 y 2 x 2 2
2hl 2
2hl el
T2 − 2 + T3 + T6 = − T − 3
k k 2k
Figure 5–28 e4l 2
Schematics for energy balances on the Node 4 T5 + T1 + T5 + T10 − 4T4 + k = 0
volume elements of nodes 3 and 4. e l2
T10 = 90 C, T1 − 4T4 + 2T5 = −90 − 4
k
e5l 2
Node 5 T4 + T2 + T6 + T11 − 4T5 + =0
k
T11 = 90 C,
e5l 2
T2 + T4 − 4T5 + T6 = −90 −
k
2hl 2
2hl 3e l
Node 6 T12 = 90 C, T3 + 2T5 − 6 + T6 + T7 = −180 − T − 6
k k 2k
x y y T7 − T6 T −T
Figure 5–29 h + (T − T6 ) + k + K x 12 6
2 2 2 x y
Schematics for energy T −T x T3 − T6 3xy
+ k y 5 6 + k + e6 =0
balances on the volume x 2 y 4
elements of nodes 5 and 6.
© McGraw-Hill Education 30
5-4 Two-dimensional Steady Heat
Conduction 6
Nodes 7, 8
y T8 − T7 T −T
hx (T − T7 ) + k + k x 13 7
2 x y
y T6 − T7 y
+k + e7 x =0 T13 = 90 C,
2 x 2
2hl 2
2hl el
T6 − 4 + T7 + T8 = −180 − T − 7
k k k
Figure 5–30
2hl 2
Schematics for energy balances 2hl el
T7 − 4 + T8 + T9 = −180 − T − 8
on the volume elements of k k k
nodes 7 and 9.
−2.064T1 + T2 + T4 = −11.2
Node 9 T1 − 4.128T2 + T3 + 2T5 = −22.4
x y x T15 − T9 y T8 − T9 x y T2 − 2.128T3 + T6 = −12.8
h (T − T9 ) + qR +k +k + e9 =0 T1 − 4T4 + 2T5 = −109.2
2 2 2 y 2 x 2 2
T2 + T4 − 4T5 + T6 = −109.2
x = y = 1 T15 = 90 C,
T3 + 2T5 − 6.128T6 + T7 = −212.0
hl q l hl el 2 T6 − 4.128T7 + T8 = −202.4
T8 − 2 + T9 = −90 − R − T − 9
k k k 2k T7 − 4.128T8 + T9 = −202.4
T8 − 2.064T9 = −105.2
© McGraw-Hill Education 31
5-4 Two-dimensional Steady Heat
Conduction 7
© McGraw-Hill Education 32
5-5 Transient Heat Conduction 1
t
All sides
Q + t Egen,element = Eelement Eelement = mc p T = pVelement c p T ,
Tmi +1 − Tmi
Q + Egen, element =
Eelement
= pVelement c p
T
Q + Egen,element = pVelement c p
t
All sides t t All sides
© McGraw-Hill Education 33
5-5 Transient Heat Conduction 2
Figure 5–38
The change in the energy content of
the volume element of a node during a
Figure 5–39 time interval t.
The formulation of explicit and implicit methods
Tmi +1 − Tmi
differs at the time step (previous or new) at which the
All sides
Q + Egen, element = pVeleemnt c p
t
heat transfer and heat generation terms are expressed.
Tmi +1 − Tmi
Explicit method: All +E = pVeleemnt c p
i i
Q
t
gen, element
sides
Tmi +1 − Tmi
Implicit method: Allsides Q
i +1 i +1
+E = pVeleemnt c p
t
gen, element
© McGraw-Hill Education 34
5-5 Transient Heat Conduction 3
em x 2 Tmi +1 − Tmi
Tm −1 − 2Tm + Tm +1 + =
k
emi x 2 Tmi +1 − Tmi
T i
m −1 − 2T + T
i i
m +1 + = ( explicit )
m
k
emi x 2
T i +1
m = (T i
m −1 +T i
m +1 ) + (1 − 2 ) T + k
i
m
Figure 5–40
The nodal points and emi +1x 2 Tmi +1 − Tmi
volume elements for the T i +1
m −1 − 2T i +1
+T i +1
m +1 + = ( implicit )
transient finite difference
m
k
formulation of one- emi +1x 2
dimensional conduction in T i +1
m −1 − (1 + 2 ) T i +1
m +T i +1
m +1 + + Tmi = 0
k
a plane wall.
Access the text alternative for slide images.
© McGraw-Hill Education 35
5-5 Transient Heat Conduction 4
© McGraw-Hill Education 36
5-5 Transient Heat Conduction 5
© McGraw-Hill Education 37
5-5 Transient Heat Conduction 6
© McGraw-Hill Education 38
5-5 Transient Heat Conduction 7
Example
Figure 5–44
Schematic for Example 5–5.
L 0.04m
x = = = 0.02m
M −1 3 −1
Explicit finite difference formulation Figure 5–45
e1x 2
Schematic for the explicit finite
T1i +1 = (T0 + T2i ) + (1 − 2 ) T1i + Node 1 difference formulation of the
k
T i − T2i x x T i +1 − T2i convection condition at the right
hA (T − T2i ) + kA 1 + e2 A = A cp 2 Node 2
x 2 2 t boundary of a plane wall.
2hx e2 x 2 T2i +1 = T2i
k
( 2) ( 2 2) k =
T − T i
+ 2 T i
− T i
+
hx i i hx e2 x 2
T2i +1 = 1 − 2 − 2 2
T + 1
2T + 2 T +
k k k
© McGraw-Hill Education 39
5-5 Transient Heat Conduction 8
hx 1 x 2
1 − 2 − 2 0 → → t = t / x 2
k 2 (1 + hx / k ) 2a (1 + hx / k )
( 0.02m )
2
t = 15.5 s
2
2 12.5 10−6 m s 1 + (45W/m 2 .K ) ( 0.02m ) / 28 W/m.K
=
t
=
(12.5 10 −6
m 2 / s ) (15s )
= 0.46875 ( fort=15 s )
x 2 ( 0.02 m )
2
k
+ T2i = 0 Node 2
hx i +1 e2 x 2
2 T1i +1 − 1 + 2 + 2 2
T + 2 + T2i = 0
k k
−1.9375T1i +1 + 0.46875T2i + 33.482 = 0
0.9375T1i +1 − 1.9676T2i +1 + 34.386 = 0
© McGraw-Hill Education 40
5-5 Transient Heat Conduction 9
© McGraw-Hill Education 41
5-5 Transient Heat Conduction 10
© McGraw-Hill Education 42
5-5 Transient Heat Conduction 11
© McGraw-Hill Education 43
5-5 Transient Heat Conduction 12
i
l2
= (T + T + T ) + (1 − 4 ) T enode
T i+1
node
i
left
i
top
i
right +Ti
bottom
i
node + Explicit formulation
k
Stability criterion
t 1 (interior nodes, two-dimensional heat
=
l2 4 transfer in rectangular coordinates)
Figure 5–50
1
In the case of no heat generation and = ,
4
the temperature of an interior node at the new time
step is the average of the temperatures of its
neighboring nodes at the previous time step.
© McGraw-Hill Education 44
5-5 Transient Heat Conduction 13
Tmi +1 − Tmi
Example
All sides
Q + eVelement
i
= pVelement c p
t
Figure 5–52
Schematics for energy
balances on the volume
elements of nodes 1 and 2.
Node 1
x y T2i − T1i x T4i − T1i
h (T − T1 ) + k
i
+k Figure 5–51
2 2 x 2 y Schematic and nodal network for
x y x y T1i +1 − T1i Example 5–7.
+ e1 =p cp
2 2 2 2 t
e1l 2 T1i +1 − T1i
2hl
k
(T − T1 ) + 2 (T2 − T1 ) + 2 (T4 − T1 ) + k =
i i i i i
hl i i hl e1l 2
T 1
i +1
= 1 − 4 − 2 T1 + 2 T2 + T4 + T +
i
k k 2k
Access the text alternative for slide images.
© McGraw-Hill Education 45
5-5 Transient Heat Conduction 14
Node 2
y T3i − T2i T i − T2i
hx (T − T2i ) + k + k x 5
2 x y
y T1i − T2i y y T2i +1 − T2i
+k + e2 x = px cp
2 x 2 2 t
hl i i 2hl e2l 2
Figure 5–52 T 2
i +1
= 1 − 4 − 2 T2 + T1 + T3 + 2T5 +
i i
T +
Schematics for energy balances on the k k k
volume elements of nodes 1 and 2. Node 3
x y x T6i − T3i
+ (T − T3 ) + k
i
h
2 2 2 y
y T2i − T3i x y x y T3i +1 − T3i
+k + e3 =p cp
2 x 2 2 2 2 t
hl i i hl e2l 2
T 3
i +1
= 1 − 4 − 4 T3 + 2 T2 + T6 + 2 T +
i
k k 2k
Node 4
Figure 5–53
e l2
Schematics for energy balances on the T4i +1 = (1 − 4 ) T4i + T3i + 2T5i + 90 + 4
volume elements of nodes 3 and 4. k
© McGraw-Hill Education 46
5-5 Transient Heat Conduction 15
Node 5
i e5l 2
T5
i +1
= (1 − 4 ) T + T2 + T4 + T6 + 90 +
5
i i i
k
Node 6
Figure 5–54
x y y T7i − T6i T12i − T6i T5i − T6i
(T − T6 ) + k
Schematics for energy balances on the
h + i
+ k x + k y
volume elements of nodes 5 and 6. 2 2 2 x x x
x T3i − T6i 3xy 3xy T6i +1 − T6i
+ + e6 =p cp
2 y 4 4 t
hl i
T6i +1 = 1 − 4 − 4 T3
3k
hl e6l 2
+ 2T + 4T + 2T + 4 90 + 4 T + 3
3
i
5
i
7
i
Figure 5–55 3 k k
Schematics for energy balances on the
volume elements of nodes 7 and 9.
© McGraw-Hill Education 47
5-5 Transient Heat Conduction 16
Nodes 7, 8
hl i i 2hl e2l 2
T 7
i +1
= 1 − 4 − 2 T7 + T6 + T8 + 2 90 +
i
T +
k k k
hl i i 2hl e8l 2
T 8
i +1
= 1 − 4 − 2 T8 + T7 + T9 + 2 90 +
i
T +
k k k
© McGraw-Hill Education 48
5-5 Transient Heat Conduction 17
Node 9
x y x T15i − T9i
h
2
( T − T9i ) + qR
2
+k
2 y
k y T8i − T9i x y x y T9i +1 − T9i
+ + e9 =p cp
2 x 2 2 2 2 t
Figure 5–55 hl q l hl e l2
T9i +1 = 1 − 4 − 2 T9i + 2 T8i 90 + R + T + 9
Schematics for energy balances on k k k 2k
the volume elements of nodes
7 and 9. T1i +1 = 0.0836T1i + 0.444 (T2i + T4i + 11.2 )
hl 1 l2 T2i +1 = 0.0836T2i + 0.222 (T1i + T3i + 2T5i + 22.4 )
1 − 4 − 4 0 → → t = t / 2
4 (1 + hl / k ) 4 (1 + hl / k )
T3i +1 = 0.0552T3i + 0.444 (T2i + T6i + 12.8 )
k
( 0.012m )
2 T4i +1 = 0.112T4i + 0.222 (T1i + 2T5i + 109.2 )
t = 10.6s
4 ( 3.2 106 m 2 / s ) 1 + (80W/m 2 .K ) ( 0.012m ) / (15W/m.K ) T5i +1 = 0.112T1i + 0.222 (T2i + T4i + T6i + 109.2 )
T6i +1 = 0.0931T6i + 0.074 ( 2T3i + 4T5i + 2T7i + 424 )
© McGraw-Hill Education 49
Summary
Why numerical methods?
Finite difference formulation of differential equations.
One-dimensional steady heat conduction.
• Boundary conditions.
• Treating Insulated Boundary Nodes as Interior Nodes: The Mirror Image Concept.
© McGraw-Hill Education 50