Docsity

Numerical Analysis of 2D Heat Transfer using Finite Difference - Prof. S. P. Kalim, Study notes of Heat and Mass Transfer

Toggle sidebar
bg1
ME 324/Heat & Mass Transfer/1
Dr. P.Kalim/WilkesUniversity/10/12/2004
NUMERICAL ANALYSIS
• You have noticed that the exact or closed form solution of two dimensional heat transfer
problems can be accomplished not only for regular geometries but also with boundaries
which have well behaved boundary conditions. On the other hand, the Shape factor method
can be utilized to solve 2-D problems having limited and specific geometries only.
• There are however many real life problems that involve irregular geometries, which may also
have complicated and variable boundary conditions. These problems can only be solved
using numerical methods. In the numerical analysis methods, the differential equations and
boundary conditions are normally converted into algebraic equations. These equations can
then be easily solved using computers to predict field variable such as temperatures in the
area of interest and the associated heat transfer in the body.
Numerical Analysis Techniques
• FINITE DIFFERENCE METHOD (conventional)
Forward, backward and central difference, Monte Carlo method and other similar schemes
• FINITE ELEMENT METHOD
Variational Formulation, Galerkin or Weighted Average, Finite Volume method and other
schemes are used.
The finite difference method (FDM) and finite element method (FEM) differ mainly in the
choice of degrees of freedom and in the location of nodes. In fact both methods discretize the
body and both generate simultaneous algebraic equations. In broader sense we may say that
the finite elements are a tool for developing finite difference equations. The FDM
approximates the derivatives in the governing differential equation using difference
equations. In the finite difference technique often the nodes are outside the structural
boundary while in finite elements the nodes cannot lie outside the boundary of the structure.
The finite difference method seeks to solve differential equations whereas finite element
method minimizes a functional [1]. A functional is an integral expression that implicitly
contains differential equations that describe the problem. It is known that the differential
equations state a problem in the strong form. In contrast to this, the functional (integral
expression implicitly containing the differential equation) state the problem in the weak
form. Standard functionals are available for various classes of problems for example,
structural, heat, fluid flow, acoustics and many others. It was discussed in section 1- that the
finite difference method is not well suited to problems having complicated boundary shape,
non-homogeneous and anisotropic material structures and systems with variable boundary
conditions. For such problems the finite element method has no rival, since the variational
formulation treats the complicated boundary conditions as natural boundary conditions. The
detailed discussions of these methods are beyond the scope of these notes. Interested in the
details of the finite difference method refer to [1 and 2].
Here we will discuss Finite difference Techniques only. Consider a region of interest in a body
(as shown in the figure). Note that governing differential equations for 2-D steady state Heat
conduction with heat generation is given by
pf3
pf4
pf5

Partial preview of the text

Download Numerical Analysis of 2D Heat Transfer using Finite Difference - Prof. S. P. Kalim and more Study notes Heat and Mass Transfer in PDF only on Docsity!

NUMERICAL ANALYSIS

  • You have noticed that the exact or closed form solution of two dimensional heat transfer problems can be accomplished not only for regular geometries but also with boundaries which have well behaved boundary conditions. On the other hand, the Shape factor method can be utilized to solve 2-D problems having limited and specific geometries only.
  • There are however many real life problems that involve irregular geometries, which may also have complicated and variable boundary conditions. These problems can only be solved using numerical methods. In the numerical analysis methods, the differential equations and boundary conditions are normally converted into algebraic equations. These equations can then be easily solved using computers to predict field variable such as temperatures in the area of interest and the associated heat transfer in the body.

Numerical Analysis Techniques

  • FINITE DIFFERENCE METHOD (conventional) Forward, backward and central difference, Monte Carlo method and other similar schemes
  • FINITE ELEMENT METHOD Variational Formulation, Galerkin or Weighted Average, Finite Volume method and other schemes are used.

The finite difference method (FDM) and finite element method (FEM) differ mainly in the choice of degrees of freedom and in the location of nodes. In fact both methods discretize the body and both generate simultaneous algebraic equations. In broader sense we may say that the finite elements are a tool for developing finite difference equations. The FDM approximates the derivatives in the governing differential equation using difference equations. In the finite difference technique often the nodes are outside the structural boundary while in finite elements the nodes cannot lie outside the boundary of the structure. The finite difference method seeks to solve differential equations whereas finite element method minimizes a functional [1]. A functional is an integral expression that implicitly contains differential equations that describe the problem. It is known that the differential equations state a problem in the strong form. In contrast to this, the functional (integral expression implicitly containing the differential equation) state the problem in the weak form. Standard functionals are available for various classes of problems for example, structural, heat, fluid flow, acoustics and many others. It was discussed in section 1- that the finite difference method is not well suited to problems having complicated boundary shape, non-homogeneous and anisotropic material structures and systems with variable boundary conditions. For such problems the finite element method has no rival, since the variational formulation treats the complicated boundary conditions as natural boundary conditions. The detailed discussions of these methods are beyond the scope of these notes. Interested in the details of the finite difference method refer to [1 and 2].

Here we will discuss Finite difference Techniques only. Consider a region of interest in a body (as shown in the figure). Note that governing differential equations for 2-D steady state Heat conduction with heat generation is given by

∂^2 T

∂X^2

∂^2 T

∂Y^2

q

K = 0^ (1)

To solve this problem in closed form, two boundary conditions are required. If no heat generation prevails in the body (Figure. 2), the differential equation (1) changes to the equation (2) and requires two boundary conditions to solve the problem.

2

2

X

T

2

Y

T

Area of interest

body q = 0, energy gen. = 0 Conduction in x,y direction Steady state conduction

Assumptions

Figure. 1-

Now divide the region of interest into a rectangular mesh as shown in figure 3. The process of drawing the nodal grid is called discretization. Use Finite Difference Technique and notice how differential equations are converted into a set of algebraic equations. Various types of nodes are defined in the figure 2.

x, i, m

y,j,n

Node near boundary

External node Internal node

Internal corner node

Internal node

Mesh or Grid

Mesh intervals ∆ x= ∆ y

T (^) m,n

T (^) m+1,n+

T (^) m-1,n-1 T^ m+1,n-

T (^) m-1,n+

Tm+1,n

T (^) m,n+

T (^) m,n-

T (^) m-1,n

nodes

∆x Grid ∆y

q 1 q 2

q 3

q 4

Magnified Area with grid and nodes

Finer the grid better the temp. solutions.

m-1/2 m+1/

Figure. 2- Types of Nodes Figure. 3- Discretization or mesh generation

∂T

∂X m+1/2, n≡

∆T

∆X =^

(Tm+1,n-Tm,n) ∆X →^ Forward difference ∂T ∂X m-1/2, n≡

∆T

∆X

(Tm,n-Tm-1,n) ∆X → Backward difference

So that

∂^2 T

∂X^2

∆X 

∆T

∆X

∆X 

∆T

∆X

X

X

T

X

T

m 1 / (^2) m 1 / 2 ∆

  • − → Central difference

Tm-1,n+Tm+1,n+Tm,n+1+Tm,n-1- 4Tm,n + q

. ∆ X ∆ Y

K = 0^ (6)

Consider a corner node with heat generation q

q 2

q 1 q

Tm,n-

Tm,n

Apply energy balance at node (m,n), in the figure 5

such that,

Ein-Eout = 0⇒ q 1 + q 2 + q

∆X

∆Y

= 0, T

m-1,n

⇒ K

∆X

(Tm,n-1-Tm,n) ∆Y

  • K

∆Y

(Tm-1,n-Tm,n) ∆X Tm-1,n- +q

. ∆X

∆Y

Figure 5- Corner node with q

Multiplying by

K ⇒^ Tm,n-1 + Tm-1,n - 2 Tm,n +

q

K

∆X*∆Y

One Dimensional conduction in fin

There are three types of nodes exist in the fin shown in the figure 6.. Base node, Interior node and Tip node. Recall that the tip boundary conditions are different for different cases.

base of the fin

m-1 m^ m+1 m+2 ...... n

∆ x

1-D conduction in Fin

x

Tip node

q (^) conv

q 1 q 2 n-^ n

Tip

qcond q^ conv

q (^) conv

Figure. 6 – Rectangular Fin Figure. 7 –Fin Tip

Interior nodes

Apply energy balance (Ein - Eout = 0) at node 'm' in figure. 6, such that q 1 - q 2 - qc =0,

⇒ KAc

(Tm-1 -Tm) ∆X

  • KAc

(Tm -Tm+1) ∆X

  • h P∆X (Tm -T∞) = 0

Multiply by

∆X

KAc ⇒^ Tm-1 -Tm+1^ +^

hP KAc ∆X2 T∞^ - (2 +^

hP KAc ∆X2 ) Tm = 0

Boundary conditions, Base node Tb = T 1 , or θb = θ 1

Tip node with convection conditions

Apply energy balance at node 'n' in Figure 6. such that qcond – qconv1 - qconv2=0,

⇒ KAc

(Tn-1 -Tn) ∆X

  • h P

∆X

2 (Tn -T∞) - h * Ac (Tn -T∞) = 0

Multiply by

∆X

KAc ⇒^ Tn-1 + (^

hP 2KAc ∆X2 +

h∆X K ) T∞^ - (1+

h∆X K -^

hP 2KAc ∆X2)Tn= 0

Problem 4.41 [Text, 3]

q 2

q 1

q 3

h, T

45 o

∆y

T (^) m,n-1 ∆x

T (^) m,n Tm+1,n

T (^) m+1,n-1 (^) T (^) m,n-

T (^) m+1,n

T (^) m+1,n-

T (^) m,n 45 o

h, T ∆y

q " o

q (^) c^ q^ b

q (^) a

∆x

(i) (ii)

Figure. 8 –Given Nodal Configuration Figure. 9 –Given Nodal Configuration

(i) Apply energy balance at node 'm,n', in figure 8 we can write

Ein-Eout = 0 ⇒ q 1 + q 2 + q 3 =0, ⇒

K∆X1*

(Tm,n-1-Tm,n) ∆Y

+K∆Y1*

(Tm+1,n-Tm,n) ∆X

  • h 2 ∆X (T∞ -Tm,n)= 0

Dividing by K and collecting different terms

⇒ Tm,n-1 + Tm+1,n - 2

h∆X K T∞^ - (2 +^2

h∆X K ) Tm,n= 0

(ii) Apply energy balance at node 'm,n' in figure 9, Ein-Eout = 0 ⇒ qa + qb- qc=0, ⇒

qo" *

∆X

2 + K*

∆Y

(Tm+1,n-Tm,n) ∆X -

h 2 ∆X 2 1(Tm,n - T∞) = 0

Multiply by

K and collect similar terms^ ⇒

qo" *

∆X

K + (Tm+1,n - Tm,n) -^

2 h∆X K (Tm,n - T∞) = 0

Here,

h∆X K = Biot Number = (∂x/K)/(1/h) = Conduction/Convection resistance

Bi relates conduction heat transfer with convection heat transfer, such that the above expression

can be written as;

+ K*

∆X

(Tm,n+1-Tm,n) ∆Y

  • h*∆Y 1 (Tm,n-T∞) = 0

Recognize that ∆X = ∆Y, and Multiply each term by 2/K ⇒

2(Tm-1,n-Tm,n) + (Tm,n-1-Tm,n) + (Tm,n+1-Tm,n) -

2h∆X K (Tm,n-T∞) = 0

Collecting terms ⇒

2 Tm-1,n+Tm,n+1 + Tm,n-1 - 2(2 +

h∆X K )Tm,n +

2h∆X K T∞^ = 0^ (4.46)

References:

  1. P. Kalim, Finite Element Method with Applications, McMillan Publishers, [to be published in 2005]
  2. S. V. Patankar, Numerical Heat Transfer and Fluid Flow, McGraw Hill, 1980
  3. Incropera and Dewitt, Fundamentals of Heat and Mass Transfer, John Wiley, 2003.