5-1
Solutions Manual l
for
Heat and Mass Transfer: Fundamentals & Applications
l l l l l l
Fourth Edition l
Yunus A. Cengel & Afshin J. Ghajar l l l l l l
McGraw-Hill, 2011
l l
Chapter 5 l
l NUMERICAL METHODS IN HEAT l l l
CONDUCTION
PROPRIETARY AND CONFIDENTIAL l l
This Manual is the proprietary property of The McGraw-Hill Companies, Inc. (“McGraw-Hill”) and
l l l l l l l l l l l l
protected by copyright and other state and federal laws. By opening and using this Manual the user agrees
l l l l l l l l l l l l l l l l l l
to the following restrictions, and if the recipient does not agree to these restrictions, the Manual should be
l l l l l l l l l l l l l l l l l l
promptly returned unopened to McGraw-Hill: This Manual is being provided only to authorized
l l l l l l l l l l l l l
professors and instructors for use in preparing for the classes using the affiliated textbook. No other
l l l l l l l l l l l l l l l l
use or distribution of this Manual is permitted. This Manual may not be sold and may not be
l l l l l l l l l l l l l l l l l l
distributed to or used by any student or other third party. No part of this Manual may be
l l l l l l l l l l l l l l l l l l
reproduced, displayed or distributed in any form or by any means, electronic or otherwise, without
l l l l l l l l l l l l l l l
the prior written permission of McGraw-Hill.
l l l l l l
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.
, 5-2
Why Numerical Methods?
l l
5-1 C lAnalytical lsolutions lprovide linsight lto lthe lproblems, land lallows lus lto lobserve lthe ldegree lof ldependence lof lsolutions lon
certain parameters. They also enable us to obtain quick solution, and to verify numerical codes. Therefore, analytical solutions
l l l l l l l l l l l l l l l l l l
are not likely to disappear from engineering curricula.
l l l l l l l l
5-2 C lAnalytical lsolution lmethods lare llimited lto lhighly lsimplified lproblems lin lsimple lgeometries. lThe lgeometry lmust lbe lsuch
that its entire surface can be described mathematically in a coordinate system by setting the variables equal to constants.
l l l l l l l l l l l l l l l l l l l
Also, heat transfer problems can not be solved analytically if the thermal conditions are not sufficiently simple. For example,
l l l l l l l l l l l l l l l l l l
the consideration of the variation of thermal conductivity with temperature, the variation of the heat transfer coefficient over
l l l l l l l l l l l l l l l l l l
the surface, or the radiation heat transfer on the surfaces can make it impossible to obtain an analytical solution. Therefore,
l l l l l l l l l l l l l l l l l l l l
analytical solutions are limited to problems that are simple or can be simplified with reasonable approximations.
l l l l l l l l l l l l l l l l
5-3 C l In lpractice, lwe lare lmost llikely lto luse la lsoftware lpackage lto lsolve lheat ltransfer lproblems leven lwhen lanalytical
solutions are available since we can do parametric studies very easily and present the results graphically by the press of a
l l l l l l l l l l l l l l l l l l l l l
button. Besides, once a person is used to solving problems numerically, it is very difficult to go back to solving differential
l l l l l l l l l l l l l l l l l l l l l
equations by hand.
l l l
5-4 C lThe lenergy lbalance lmethod lis lbased lon lsubdividing lthe lmedium linto la lsufficient lnumber lof lvolume lelements, land lthen
applying an energy balance on each element. The formal finite difference method is based on replacing derivatives by their
l l l l l l l l l l l l l l l l l l l
finite difference approximations. For a specified nodal network, these two methods will result in the same set of equations.
l l l l l l l l l l l l l l l l l l l
5-5 C lThe lanalytical lsolutions lare lbased lon l(1) ldriving lthe lgoverning ldifferential lequation lby lperforming lan lenergy lbalance lon
a differential volume element, (2) expressing the boundary conditions in the proper mathematical form, and (3) solving the
l l l l l l l l l l l l l l l l l l
differential equation and applying the boundary conditions to determine the integration constants. The numerical solution
l l l l l l l l l l l l l l l
methods are based on replacing the differential equations by algebraic equations. In the case of the popular finite difference
l l l l l l l l l l l l l l l l l l l
method, this is done by replacing the derivatives by differences. The analytical methods are simple and they provide solution
l l l l l l l l l l l l l l l l l l l
functions applicable to the entire medium, but they are limited to simple problems in simple geometries. The numerical
l l l l l l l l l l l l l l l l l l
methods are usually more involved and the solutions are obtained at a number of points, but they are applicable to any
l l l l l l l l l l l l l l l l l l l l l
geometry subjected to any kind of thermal conditions.
l l l l l l l l
5-6 C lThe lexperiments lwill lmost llikely lprove lengineer lB lright lsince lan lapproximate lsolution lof la lmore lrealistic lmodel lis
l more accurate than the exact solution of a crude model of an actual problem.
l l l l l l l l l l l l l
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.
, 5-3
Finite Difference Formulation of Differential Equations
l l l l l
5-7 C lA lpoint lat lwhich lthe lfinite ldifference lformulation lof la lproblem lis lobtained lis lcalled la lnode, land lall lthe lnodes lfor la
problem constitute the nodal network. The region about a node whose properties are represented by the property values at
l l l l l l l l l l l l l l l l l l l
the nodal point is called the volume element. The distance between two consecutive nodes is called the nodal spacing, and a
l l l l l l l l l l l l l l l l l l l l l
differential equation whose derivatives are replaced by differences is called a difference equation.
l l l l l l l l l l l l l
5-8 The lfinite ldifference lformulation lof lsteady ltwo-dimensional lheat lconduction lin la lmedium lwith lheat lgeneration land
constant thermal conductivity is given by
l l l l l l
Tm1,n 2Tm,n Tm1,n Tm,n1 2Tm,n Tm,n1 e˙m,n
0
l l l l l
l l l l l l l
l l l
x2 y2 k
in rectangular coordinates. This relation can be modified for the three-dimensional case by simply adding another index j to
l l l l l l l l l l l l l l l l l l
the temperature in the z direction, and another difference term for the z direction as
l l l l l l l l l l l l l l l
Tm1,n, j 2Tm,n, j Tm1,n, j l l Tm,n1, j 2Tm,n, j Tm,n1, j l l Tm,n, j1 2Tm,n, j Tm,n, j1 l l e˙m,n, j
0
l l l l l l l l l l l l l l l l l l l l l l
l l l l
x 2
l y 2
l z 2
l k
5-9 A lplane lwall lwith lvariable lheat lgeneration land lconstant lthermal lconductivity lis lsubjected lto luniform lheat lflux l q˙0 l at lthe
left (node 0) and convection at the right boundary (node 4). Using the finite difference form of the 1st derivative, the finite
l l l l l l l l l l l l l l l l l l l l l
difference formulation of the boundary nodes is to be determined.
l l l l l l l l l l
Assumptions 1 Heat transfer through the wall is steady since there is no indication of change with time. 2 Heat transfer is
l l l l l l l l l l l l l l l l l l l l l
one-dimensional since the plate is large relative to its thickness. 3 Thermal conductivity is constant and there is nonuniform
l l l l l l l l l l l l l l l l l l l
heat generation in the medium. 4 Radiation heat transfer is negligible.
l l l l l l l l l l l
Analysis The boundary conditions at the left and right boundaries can be expressed analytically as
l l l l l l l l l l l l l l
at x = 0: dT(0)
k q0
l l
l l l
l l l
dx
dT(L)
k h[T(L) T ]
l l
at x = L : l l l l l l l l l l
l e(x)
dx q0
h, T
x
l
Replacing derivatives by differences using values at the closest nodes, the
l l l l l l l l l l
finite difference form of the 1st derivative of temperature at the
0
l l l l l l l l l l l
lboundaries (nodes 0 and 4) can be expressed as l l l l l l l l
l
1 2 3 4
dT T1 T0 dT T4 T3
l l
l l
l and l
dx left, lm l l0 x dx right, lm l4 x
Substituting, the finite difference formulation of the boundary nodes become
l l l l l l l l l
T1 T0
k q
l
l l l
at x = 0: l l l
l l l
x 0
T4 T3
k h[T T ]
l
l l l
at x = L : l l l l
l l
l
l
x 4 l
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.
, 5-4
5-10 A lplane lwall lwith lvariable lheat lgeneration land lconstant lthermal lconductivity lis lsubjected lto linsulation lat lthe lleft l(node l0)
and radiation at the right boundary (node 5). Using the finite difference form of the 1st derivative, the finite difference
l l l l l l l l l l l l l l l l l l l l
formulation of the boundary nodes is to be determined.
l l l l l l l l l
Assumptions 1 Heat transfer through the wall is steady since there is no indication of change with time. 2 Heat transfer is
l l l l l l l l l l l l l l l l l l l l l
one-dimensional since the plate is large relative to its thickness. 3 Thermal conductivity is constant and there is nonuniform
l l l l l l l l l l l l l l l l l l l
heat generation in the medium. 4 Convection heat transfer is negligible.
l l l l l l l l l l l
Analysis The boundary conditions at the left and right boundaries can be expressed analytically as
l l l l l l l l l l l l l l
dT(0) dT(0)
k 0
l l
0
l l
At x = l l
l l l
l
0: dx
l
l or
dx
dT(L)
k [T 4 (L) T 4
l l
At
: x=L
l
l l l l l l l l l l l l l l ] Radiation
dx
surr e(x)
Insulated
Tsurr
Replacing derivatives by differences using values at the closest nodes,
l l l l l l l l l x
the finite difference form of the 1st derivative of temperature at the
l l l l l l l l l l l l
boundaries (nodes 0 and 5) can be expressed as
l l l l l l l l 0
1 2 3 4 l l 5
dT T1 T0 dT T5 T4
l l
l l
l and l
dx left, lm l l0 x dx right, lm l5 x
Substituting, the finite difference formulation of the boundary nodes become
l l l l l l l l l
T1 T0
k 0
l
l l l
At x = l l
l l l
or T1 T0 l
0:
l
x
T5 T4
k [T 4 T 4
l
l l l
At x = L l l l l l l l l l l l l l ]
:
l
x 5 surr
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.
Solutions Manual l
for
Heat and Mass Transfer: Fundamentals & Applications
l l l l l l
Fourth Edition l
Yunus A. Cengel & Afshin J. Ghajar l l l l l l
McGraw-Hill, 2011
l l
Chapter 5 l
l NUMERICAL METHODS IN HEAT l l l
CONDUCTION
PROPRIETARY AND CONFIDENTIAL l l
This Manual is the proprietary property of The McGraw-Hill Companies, Inc. (“McGraw-Hill”) and
l l l l l l l l l l l l
protected by copyright and other state and federal laws. By opening and using this Manual the user agrees
l l l l l l l l l l l l l l l l l l
to the following restrictions, and if the recipient does not agree to these restrictions, the Manual should be
l l l l l l l l l l l l l l l l l l
promptly returned unopened to McGraw-Hill: This Manual is being provided only to authorized
l l l l l l l l l l l l l
professors and instructors for use in preparing for the classes using the affiliated textbook. No other
l l l l l l l l l l l l l l l l
use or distribution of this Manual is permitted. This Manual may not be sold and may not be
l l l l l l l l l l l l l l l l l l
distributed to or used by any student or other third party. No part of this Manual may be
l l l l l l l l l l l l l l l l l l
reproduced, displayed or distributed in any form or by any means, electronic or otherwise, without
l l l l l l l l l l l l l l l
the prior written permission of McGraw-Hill.
l l l l l l
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.
, 5-2
Why Numerical Methods?
l l
5-1 C lAnalytical lsolutions lprovide linsight lto lthe lproblems, land lallows lus lto lobserve lthe ldegree lof ldependence lof lsolutions lon
certain parameters. They also enable us to obtain quick solution, and to verify numerical codes. Therefore, analytical solutions
l l l l l l l l l l l l l l l l l l
are not likely to disappear from engineering curricula.
l l l l l l l l
5-2 C lAnalytical lsolution lmethods lare llimited lto lhighly lsimplified lproblems lin lsimple lgeometries. lThe lgeometry lmust lbe lsuch
that its entire surface can be described mathematically in a coordinate system by setting the variables equal to constants.
l l l l l l l l l l l l l l l l l l l
Also, heat transfer problems can not be solved analytically if the thermal conditions are not sufficiently simple. For example,
l l l l l l l l l l l l l l l l l l
the consideration of the variation of thermal conductivity with temperature, the variation of the heat transfer coefficient over
l l l l l l l l l l l l l l l l l l
the surface, or the radiation heat transfer on the surfaces can make it impossible to obtain an analytical solution. Therefore,
l l l l l l l l l l l l l l l l l l l l
analytical solutions are limited to problems that are simple or can be simplified with reasonable approximations.
l l l l l l l l l l l l l l l l
5-3 C l In lpractice, lwe lare lmost llikely lto luse la lsoftware lpackage lto lsolve lheat ltransfer lproblems leven lwhen lanalytical
solutions are available since we can do parametric studies very easily and present the results graphically by the press of a
l l l l l l l l l l l l l l l l l l l l l
button. Besides, once a person is used to solving problems numerically, it is very difficult to go back to solving differential
l l l l l l l l l l l l l l l l l l l l l
equations by hand.
l l l
5-4 C lThe lenergy lbalance lmethod lis lbased lon lsubdividing lthe lmedium linto la lsufficient lnumber lof lvolume lelements, land lthen
applying an energy balance on each element. The formal finite difference method is based on replacing derivatives by their
l l l l l l l l l l l l l l l l l l l
finite difference approximations. For a specified nodal network, these two methods will result in the same set of equations.
l l l l l l l l l l l l l l l l l l l
5-5 C lThe lanalytical lsolutions lare lbased lon l(1) ldriving lthe lgoverning ldifferential lequation lby lperforming lan lenergy lbalance lon
a differential volume element, (2) expressing the boundary conditions in the proper mathematical form, and (3) solving the
l l l l l l l l l l l l l l l l l l
differential equation and applying the boundary conditions to determine the integration constants. The numerical solution
l l l l l l l l l l l l l l l
methods are based on replacing the differential equations by algebraic equations. In the case of the popular finite difference
l l l l l l l l l l l l l l l l l l l
method, this is done by replacing the derivatives by differences. The analytical methods are simple and they provide solution
l l l l l l l l l l l l l l l l l l l
functions applicable to the entire medium, but they are limited to simple problems in simple geometries. The numerical
l l l l l l l l l l l l l l l l l l
methods are usually more involved and the solutions are obtained at a number of points, but they are applicable to any
l l l l l l l l l l l l l l l l l l l l l
geometry subjected to any kind of thermal conditions.
l l l l l l l l
5-6 C lThe lexperiments lwill lmost llikely lprove lengineer lB lright lsince lan lapproximate lsolution lof la lmore lrealistic lmodel lis
l more accurate than the exact solution of a crude model of an actual problem.
l l l l l l l l l l l l l
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.
, 5-3
Finite Difference Formulation of Differential Equations
l l l l l
5-7 C lA lpoint lat lwhich lthe lfinite ldifference lformulation lof la lproblem lis lobtained lis lcalled la lnode, land lall lthe lnodes lfor la
problem constitute the nodal network. The region about a node whose properties are represented by the property values at
l l l l l l l l l l l l l l l l l l l
the nodal point is called the volume element. The distance between two consecutive nodes is called the nodal spacing, and a
l l l l l l l l l l l l l l l l l l l l l
differential equation whose derivatives are replaced by differences is called a difference equation.
l l l l l l l l l l l l l
5-8 The lfinite ldifference lformulation lof lsteady ltwo-dimensional lheat lconduction lin la lmedium lwith lheat lgeneration land
constant thermal conductivity is given by
l l l l l l
Tm1,n 2Tm,n Tm1,n Tm,n1 2Tm,n Tm,n1 e˙m,n
0
l l l l l
l l l l l l l
l l l
x2 y2 k
in rectangular coordinates. This relation can be modified for the three-dimensional case by simply adding another index j to
l l l l l l l l l l l l l l l l l l
the temperature in the z direction, and another difference term for the z direction as
l l l l l l l l l l l l l l l
Tm1,n, j 2Tm,n, j Tm1,n, j l l Tm,n1, j 2Tm,n, j Tm,n1, j l l Tm,n, j1 2Tm,n, j Tm,n, j1 l l e˙m,n, j
0
l l l l l l l l l l l l l l l l l l l l l l
l l l l
x 2
l y 2
l z 2
l k
5-9 A lplane lwall lwith lvariable lheat lgeneration land lconstant lthermal lconductivity lis lsubjected lto luniform lheat lflux l q˙0 l at lthe
left (node 0) and convection at the right boundary (node 4). Using the finite difference form of the 1st derivative, the finite
l l l l l l l l l l l l l l l l l l l l l
difference formulation of the boundary nodes is to be determined.
l l l l l l l l l l
Assumptions 1 Heat transfer through the wall is steady since there is no indication of change with time. 2 Heat transfer is
l l l l l l l l l l l l l l l l l l l l l
one-dimensional since the plate is large relative to its thickness. 3 Thermal conductivity is constant and there is nonuniform
l l l l l l l l l l l l l l l l l l l
heat generation in the medium. 4 Radiation heat transfer is negligible.
l l l l l l l l l l l
Analysis The boundary conditions at the left and right boundaries can be expressed analytically as
l l l l l l l l l l l l l l
at x = 0: dT(0)
k q0
l l
l l l
l l l
dx
dT(L)
k h[T(L) T ]
l l
at x = L : l l l l l l l l l l
l e(x)
dx q0
h, T
x
l
Replacing derivatives by differences using values at the closest nodes, the
l l l l l l l l l l
finite difference form of the 1st derivative of temperature at the
0
l l l l l l l l l l l
lboundaries (nodes 0 and 4) can be expressed as l l l l l l l l
l
1 2 3 4
dT T1 T0 dT T4 T3
l l
l l
l and l
dx left, lm l l0 x dx right, lm l4 x
Substituting, the finite difference formulation of the boundary nodes become
l l l l l l l l l
T1 T0
k q
l
l l l
at x = 0: l l l
l l l
x 0
T4 T3
k h[T T ]
l
l l l
at x = L : l l l l
l l
l
l
x 4 l
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.
, 5-4
5-10 A lplane lwall lwith lvariable lheat lgeneration land lconstant lthermal lconductivity lis lsubjected lto linsulation lat lthe lleft l(node l0)
and radiation at the right boundary (node 5). Using the finite difference form of the 1st derivative, the finite difference
l l l l l l l l l l l l l l l l l l l l
formulation of the boundary nodes is to be determined.
l l l l l l l l l
Assumptions 1 Heat transfer through the wall is steady since there is no indication of change with time. 2 Heat transfer is
l l l l l l l l l l l l l l l l l l l l l
one-dimensional since the plate is large relative to its thickness. 3 Thermal conductivity is constant and there is nonuniform
l l l l l l l l l l l l l l l l l l l
heat generation in the medium. 4 Convection heat transfer is negligible.
l l l l l l l l l l l
Analysis The boundary conditions at the left and right boundaries can be expressed analytically as
l l l l l l l l l l l l l l
dT(0) dT(0)
k 0
l l
0
l l
At x = l l
l l l
l
0: dx
l
l or
dx
dT(L)
k [T 4 (L) T 4
l l
At
: x=L
l
l l l l l l l l l l l l l l ] Radiation
dx
surr e(x)
Insulated
Tsurr
Replacing derivatives by differences using values at the closest nodes,
l l l l l l l l l x
the finite difference form of the 1st derivative of temperature at the
l l l l l l l l l l l l
boundaries (nodes 0 and 5) can be expressed as
l l l l l l l l 0
1 2 3 4 l l 5
dT T1 T0 dT T5 T4
l l
l l
l and l
dx left, lm l l0 x dx right, lm l5 x
Substituting, the finite difference formulation of the boundary nodes become
l l l l l l l l l
T1 T0
k 0
l
l l l
At x = l l
l l l
or T1 T0 l
0:
l
x
T5 T4
k [T 4 T 4
l
l l l
At x = L l l l l l l l l l l l l l ]
:
l
x 5 surr
PROPRIETARY lMATERIAL. l© l2011 lThe lMcGraw-Hill lCompanies, lInc. l Limited ldistribution lpermitted lonly lto lteachers land leducators lfor lcourse
l preparation. l If lyou lare la lstudent lusing lthis lManual, lyou lare lusing lit lwithout lpermission.