49
Chapter 5 NUMERICAL METHODS IN HEAT CONDUCTION Heat Transfer Universitry of Technology Materials Engineering Department MaE216: Heat Transfer and Fluid

Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Chapter 5NUMERICAL METHODS IN HEAT

CONDUCTION

Heat Transfer

Universitry of Technology Materials Engineering DepartmentMaE216: Heat Transfer and Fluid

Page 2: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

ObjectivesUnderstand 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

Page 3: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

HY NUMERICAL METHODS?In Chapter 2, we solved various heat conduction problems in variousgeometries in a systematic but highly mathematical manner by (1) deriving the governing differential equation by performing an energy balance on a differential volume element, (2) expressing the boundary conditions in the proper mathematical form, and (3) solving the differential equation and applying the boundary conditions to determine the integration

t t

Page 4: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

mitationsAnalytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that its entire surface can be described mathematically in a coordinate system by setting thevariables equal to constants. That is, it must fit into a coordinate systemperfectly with nothing sticking out or in.Even in simple geometries, heat transfer problems cannot be solved analytically if the thermal conditions are not sufficiently simple.Analytical solutions are limited to problems that are simple or can be simplified with

bl i ti

Page 5: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

etter Modelingn attempting to get an analytical solution hysical problem, there is always the ncy to oversimplify the problem to make athematical model sufficiently simple to nt an analytical solution.

efore, it is common practice to ignore any s that cause mathematical complicationsas nonlinearities in the differential tion or the boundary conditionsinearities such as temperature ndence of thermal conductivity and the tion boundary conditions).

thematical model intended for a numericalon is likely to represent the actual em better.

numerical solution of engineering ems has now become the norm rather

Page 6: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

lexibility

gineering problems often require extensive parametric studiesnderstand the influence of some variables on the solution in er to choose the right set of variables and to answer some at-if” questions.

s is an iterative process that is extremely tedious and time-suming if done by hand.

mputers and numerical methods are ideally suited for such culations, and a wide range of related problems can be solved minor modifications in the code or input variables.

ay it is almost unthinkable to perform any significant mization studies in engineering without the power and flexibility omputers and numerical methods.

Page 7: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

omplicationse problems can be solved analytically, e solution procedure is so complex and

esulting solution expressions so licated that it is not worth all that effort.

the exception of steady one-dimensional nsient lumped system problems, all heat uction problems result in partialential equations.

ng such equations usually requires ematical sophistication beyond that red at the undergraduate level, such as gonality, eigenvalues, Fourier and ce transforms, Bessel and Legendre ons, and infinite series.

ch cases, the evaluation of the solution, h often involves double or triple mations of infinite series at a specified

Page 8: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

uman Nature Analytical solutions are necessary because insight to the physical phenomena and engineering wisdomis 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.

In this chapter, you will learn how to formulate and solve heat transfer problems numerically using one or more approaches.

Page 9: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

NITE DIFFERENCE FORMULATIONDIFFERENTIAL EQUATIONS

numerical methods for solving differential tions are based on replacing the ential equations by algebraic equations. case of the popular finite differenceod, this is done by replacing the atives by differences. w we demonstrate this with both first- and nd-order derivatives.

XAMPLE

Page 10: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

finite difference form of the first derivative

Taylor series expansion of the function f about the point x,

The smaller the x, the smallerthe error, and thus the more accurate the approximation.

Page 11: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

der steady one-dimensional heat conduction in a plane wall of thickness L eat generation.

Finite difference representationof the second derivative at a general internal node m.

no heat generation

Page 12: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Finite difference formulation for steady two-dimensional heat conduction in a region withheat generation and constant thermal conductivity in rectangular coordinates

Page 13: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

E-DIMENSIONAL STEADY HEAT NDUCTIONsection we develop the finite difference ation of heat conduction in a plane wall he energy balance approach and s how to solve the resulting equations. ergy balance method is based on iding the medium into a sufficient r of volume elements and then g an energy balance on each element.

Page 14: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

equation is applicable to each of the interior nodes, and its application

s M - 1 equations for the determination mperatures at M + 1 nodes.

two additional equations needed to e for the M + 1 unknown nodal peratures are obtained by applying the gy balance on the two elements at the

Page 15: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that
Page 16: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

undary Conditionsdary conditions most commonly encountered in practice are theified temperature, specified heat flux, convection, and radiationdary conditions, and here we develop the finite difference formulations em for the case of steady one-dimensional heat conduction in a plane of thickness L as an example. node number at the left surface at x = 0 is 0, and at the right surface at it is M. Note that the width of the volume element for either boundary is x/2.

cified temperature boundary condition

Page 17: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

n other boundary conditions such as the specified heat flux, convection,ation, or combined convection and radiation conditions are specified at andary, the finite difference equation for the node at that boundary is obtainedriting an energy balance on the volume element at that boundary.

finite difference form of various dary conditions at the left boundary:

Page 18: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that
Page 19: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Schematic for the finite

differenceformulation of the interface

boundarycondition for two mediums A and

Page 20: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

ating Insulated Boundary Nodes as Interior Nodes:Mirror Image Concept

The mirror image approach can also be used for problems that possess thermalsymmetry by replacing the plane of symmetry by a mirror.

Alternately, we can replace the plane of symmetry by insulation and consider only half of the medium in the solution.

The solution in the other half of the medium is simply the mirror image of the solution obtained.

Page 21: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

XAMPLE

ode 1

ode 2

Page 22: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

ct solution:

Page 23: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

finite difference formulation of dy heat conduction problemslly results in a system of N braic equations in N unknown al temperatures that need to be ed simultaneously.e are numerous systematic oaches available in the literature, they are broadly classified as ct and iterative methods. direct methods are based on a number of well-defined steps that t in the solution in a systematic ner. iterative methods are based on an l guess for the solution that is ed by iteration until a specified ergence criterion is satisfied.

Page 24: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

e of the simplest iterative methods is the Gauss-Seidel iteration.

Page 25: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

O-DIMENSIONAL STEADY HEAT NDUCTION

Sometimes we need to consider heat transfer in other directions as well when the variation of temperature in other directions is significant.

We consider the numerical formulation and solution of two-dimensional steady heat conduction in rectangular coordinates using the finite difference method.

Page 26: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

uare mesh:

Page 27: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

undary Nodes

region is partitioned between the es by forming volume elementsnd the nodes, and an energy nce is written for each boundary e.

energy balance on a volumeent is

assume, for convenience in ulation, all heat transfer to be into the me element from all surfaces except pecified heat flux, whose direction is ady specified.

Page 28: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Node 2

Node 1

EXAMPLE

Page 29: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Node 3

4

Node 5

Node 6

Page 30: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Nodes 7, 8

e 9

Page 31: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

gular Boundaries

Many geometries encountered in practice such as turbine blades or engine blocks do not have simple shapes, and it is difficult to fill such geometries having irregular boundaries with simple volume elements.

A practical way of dealing with such geometries is to replace the irregulargeometry by a series of simple volume elements.

This simple approach is often satisfactory for practical purposes, especially when the nodes are closely spaced near the boundary.

More sophisticated approaches are available for handling irregular boundaries, and they are commonly incorporated into the commercial software packages.

Page 32: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

ANSIENT HEAT CONDUCTIONite difference solution of transient ms requires discretization in time inn to discretization in space.

done by selecting a suitable time step solving for the unknown nodal atures repeatedly for each t until the n at the desired time is obtained.

sient problems, the superscript i is used index or counter of time steps, with i = 0ponding to the specified initial condition.

Page 33: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

t method: If temperatures at the previousep i is used.t method: If temperatures at the new time

+ 1 is used.

Page 34: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

sient Heat Conduction in a Plane Wall

mesh Fourier number

Page 35: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

emperature of an interior node at ew time step is simply the average temperatures of its neighboring

s at the previous time step.

at generation and = 0.5

Page 36: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

bility Criterion for Explicit Method: Limitation on txplicit method is easy to use, but it suffers n undesirable feature that severely restricts ty: the explicit method is not unconditionally , and the largest permissible value of the time t is limited by the stability criterion.

ime step t is not sufficiently small, the ons obtained by the explicit method may te wildly and diverge from the actual solution.

oid such divergent oscillations in nodal ratures, the value of t must be maintained a certain upper limit established by the

ity criterion.

Example

Page 37: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

The implicit method is unconditionally stable, and thus we can use any time step we please with that method (of course, the smaller the time step, the better the accuracy of the solution).

The disadvantage of the implicit method is that it results in a set of equations that must be solved simultaneously for each time step.

Both methods are used in practice.

Page 38: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Node 1

Node 2

cit finite difference formulation

EXAMPLE

Page 39: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Node 1

Node 2

cit finite difference formulation

Page 40: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that
Page 41: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

-Dimensional Transient Heat Conduction

Page 42: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Stability criterion

Explicit formulation

Page 43: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

1

AMPLE

Page 44: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Node 2

Node 3

Node 4

Page 45: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Node 5

Node 6

Nodes 7, 8

Page 46: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

Node 9

Page 47: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

teractive SS-T-CONDUCT Software

e SS-T-CONDUCT (Steady State and Transient Heat nduction) software was developed by Ghajar and his -workers and is available from the online learning nter (www.mhhe.com/cengel) to the instructors and dents.

e software is user-friendly and can be used to solve any of the one- and two-dimensional heat conduction oblems with uniform energy generation in rectangular ometries discussed in this chapter.

r transient problems the explicit or the implicit solution ethod could be used.

Page 48: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that
Page 49: Chapter 5 - الجامعة التكنولوجيةmitations Analytical solution methods are limited to highly simplified problems in simple geometries. The geometry must be such that

SummaryWhy numerical methods?Finite difference formulation of differential equationsOne-dimensional steady heat conduction Boundary conditions Treating Insulated Boundary Nodes as Interior Nodes: The

Mirror Image Concept

Two-dimensional steady heat conduction Boundary Nodes Irregular Boundaries

Transient heat conduction Transient Heat Conduction in a Plane Wall Stability Criterion for Explicit Method: Limitation on t Two-Dimensional Transient Heat Conduction