Professional Documents
Culture Documents
f Llx
x
f (x) which is the ratio of the increment Llf of the function to the increment Llx of the
independent variable as Llx 0. If we dont take the indicated limit, we will
have the following approximate relation for the derivative:
df(x) f(x + Llx) -
x x + x x f(x) (5-6)
dx
FIGURE 56
Llx
The derivative of a function at a point This approximate expression of the derivative in terms of differences is the
represents the slope of the function finite difference form of the first derivative. The equation above can also be
at that point.
obtained by writing the Taylor series expansion of the function f about the
point x,
df(x) d 2 f(x)
Plane wall f(x + Llx) = f(x) + Llx + 1Llx2 + (5-7)
dx 2 dx 2
T (x)
and neglecting all the terms in the expansion except the first two. The first
Tm + 1 term neglected is proportional to Llx2 , and thus the error involved in each step
Tm of this approximation is also proportional to Llx2 . However, the commutative
Tm 1 error involved after M steps in the direction of length L is proportional to Llx
since MLlx2 = (L/Llx)Llx2 = LLlx. Therefore, the smaller the Llx, the smaller
L the error, and thus the more accurate the approximation.
0
01 2 m 1 m m +1 M x Now consider steady one-dimensional heat transfer in a plane wall of thick-
M 1 ness L with heat generation. The wall is subdivided into M sections of equal
m 1 m + 1 thickness Llx = L/M in the x-direction, separated by planes pass ing through
2 2
M + 1 points 0, 1, 2, . . . , m - 1, m, m + 1, . . . , M c alled nodes or nodal
FIGURE 57 points, as shown in Figure 57. The x-coordinate of any point m is simply
Schemat ic of the nodes and the nodal xm = mLlx, and the temperature at that point is simply T(xm ) = Tm .
temperatures used in the development The heat conduction equation involves the second derivatives of tempera-
of the finite difference formulation ture with respect to the space variables, such as d 2T/dx2, and the finite differ-
of heat transfer in a plane wall. ence formulation is based on replacing the second derivatives by appropriate
271
CHAPTER 5
differences. But we need to start the process with first derivatives. Using
Eq. 56, the first derivative of temperature dT/dx at the midpoints m - 12and
m + 12 of the sections surrounding the node m can be expressed as
Tm - Tm -1 Tm + 1 - Tm
dT
dx 1 m-
1
2
Llx
and 1
dT
dx m+ 1
2
Llx (5-8)
Noting that the second derivative is simply the derivative of the first deriva-
tive, the second derivative of temperature at node m can be expressed as
dT T m+1 - T m T m - T m-1
d 2T dx 1 1
m+2
dT
- dx 1 m- 1
2
=
Llx
-
Llx
dx2 1 m Llx Llx
Tm - 1 - 2Tm + Tm + 1
= (5-9)
Llx2