Beruflich Dokumente
Kultur Dokumente
Boundary-Value Problems
6.4 The Alternating Direction Implicit (ADI) Method
When the partial differential equation 2u = 0 is solved by the finite difference method, the
resulting coefficient matrix is spare. The sparseness increases as the number of nodes
increases. If there are 21 nodes, 81% of the coefficients are zeros; if there are 105 nodes,
96% are zeros. The system of equations for the one-dimensional case always has a
tridiagonal coefficient matrix for which the efficient Thomas algorithm can be used. The ADI
method can be applied for the two or three-dimensional system to get a tridiagonal
coefficient matrix. We will use a two dimensional example of the Laplace equation
2u = 0
Using finite difference, the value at the node (i, j) for iteration (m+1) is given as
ui(,mj1) =
1 (m)
[ ui , j 1 + ui(,mj)1 + ui(m1,) j + ui(m1,) j ]
4
ui(,mj1) = ui(,mj ) +
1 (m)
[ ui , j 1 + ui(,mj)1 + ui(m1,) j + ui(m1,) j 4 ui(,mj ) ]
4
or equivalently
ui(,mj1) ui(,mj ) =
1
{[ ui(,mj)1 2 ui(,mj ) + ui(,mj)1 ] + [ ui(m1,) j 2 ui(,mj ) + ui(m1,) j ]}
4
Each iteration is considered to be a two-step procedure wherein the first step advances to the
1
(m+ ) level and the second step to the (m+1) level.
2
First step:
ui(,mj1/ 2 ) ui(,mj ) =
1
{[ ui(,mj11/ 2 ) 2 ui(,mj1/ 2 ) + ui(,mj11/ 2 ) ] + [ ui(m1,) j 2 ui(,mj ) + ui(m1,) j ]}
4
Second step:
ui(,mj1) ui(,mj1/ 2 ) =
1
{[ ui(,mj11/ 2 ) 2 ui(,mj1/ 2 ) + ui(,mj11/ 2 ) ] + [ ui(m1, j1) 2 ui(,mj1) + ui(m1, j1) ]}
4
6-19
The ADI method produces a tridiagonal set of equations at the (m+1/2) level. The equations
can be solved along all rows of the grid, one row at a time. Once, all nodes have been
elevated to the (m+1/2) level, a similar procedure for the column of nodes is applied. A twostep iteration is completed when the new values ui(,mj1) are calculated.
Example 6.4-1 _____________________________________________________
Assuming two dimensional, steady-state conduction, determine the temperature of nodes 1,
2, 3, and 4 in the square shape subjected to the uniform temperature shown.
100
100
2
1
50
0,2
1,0
1,1
1,2
1,3
200
2,0
2,1
2,2
2,3
50
200
3
0,1
3,1
3,2
300
300
Figure 6.4-1 The nodes in a two dimensional, steady-state conduction.
Solution
The two-dimensional heat conduction equation for steady state, no heat generation, and k
independent of temperature is given as
2u
2u
+
=0
x 2
y 2
ui(,mj1) ui(,mj ) =
1
{[ ui(,mj)1 2 ui(,mj ) + ui(,mj)1 ] + [ ui(m1,) j 2 ui(,mj ) + ui(m1,) j ]}
4
Let u1(,m1 ) = 100, u1(,m2 ) = 150, u2( m,1 ) = 150, and u2( m, 2) = 250
First step calculation with row 1 and row 2:
ui(,mj1/ 2 ) ui(,mj ) =
Node (1,1):
1
{[ ui(,mj11/ 2 ) 2 ui(,mj1/ 2 ) + ui(,mj11/ 2 ) ] + [ ui(m1,) j 2 ui(,mj ) + ui(m1,) j ]}
4
u1(,m1 1/ 2 ) 100 =
1
{[ u1(,m2 1/ 2 ) 2 u1(,m1 1/ 2 ) + 50] + [100 2(100) + 150]}
4
6-20
u1(,m2 1/ 2 ) 150 =
1
{[200 2 u1(,m2 1/ 2 ) + u1(,m1 1/ 2 ) ] + [100 2(150) + 250]}
4
1
{[ u2( m,21/ 2 ) 2 u2( m,11/ 2 ) + 50] + [100 2(150) + 300]}
4
1
{[200 u2( m,21/ 2 ) + u2( m,11/ 2 ) ] + [150 2(250) + 300]}
4
ui(,mj1) ui(,mj1/ 2 ) =
Node (1,1)
1
{[ ui(,mj11/ 2 ) 2 ui(,mj1/ 2 ) + ui(,mj11/ 2 ) ] + [ ui(m1, j1) 2 ui(,mj1) + ui(m1, j1) ]}
4
u1(,m1 1) 110 =
1
{[160 2(110)+ 50] + [100 2 u1(,m1 1) + u2( m,11) ]}
4
1
{[218.57 2(161.43)+ 50] + [ u1(,m1 1) 2 u2( m,11) + 300]}
4
6-21
u1(,m2 1) 160 =
1
{[200 2(160)+ 110] + [100 2 u1(,m2 1) + u2( m, 21) ]}
4
1
{[200 2(218.57)+ 161.43] + [ u1(,m2 1) u2( m, 21) + 300]}
4
50
50
100
100
150
300
100
150
250
300
i\j
200
200
0
1
2
3
6-22
50
50
100
116.33
167.96
300
100
156.53
209.18
300
200
200