Leibman Method
Leibman Method
Rearrange the approximation to give ui,j in terms of neighbouring values 1 1 k k+1 k k ui1,j + uk 1 4 1 ui,j ui,j = i+1,j + ui,j1 + ui,j+1 4 1 1 4 1 4 20 4 ui,j 1 4 1 1 = 20
k k k 4uk i1,j + 4ui+1,j + 4ui,j1 + 4ui,j+1 + k k k uk i1,j1 + ui1,j+1 + ui+1,j1 + ui+1,j+1
ui,j
3.7
ui,j
3.8
SOR method
SOR = Successive Over Relaxation Consider standard central difference based iteration uk+1 = i,j 1 k+1 k+1 k ui1,j + uk i+1,j + ui,j1 + ui,j+1 4 1 k+1 k+1 k k ui1,j + uk = uk + i,j i+1,j 4ui,j + ui,j1 + ui,j+1 4
Second term is residual; relaxes to zero at convergence Multiply residual term by factor to overrelax uk+1 = uk + i,j i,j k+1 k+1 k k ui1,j + uk i+1,j 4ui,j + ui,j1 + ui,j+1 4
3.9
Using SOR
Solve Laplaces equation using SOR uxx + uyy = 0, 0 < x < 20, 0 < y < 10 u(x, 0) = 0 u(x, 10) = 0 u(0, y) = 0 u(20, y) = 100 Note that = 1 is Liebmanns method Stop when maximum change in u is < 103 Find an optimal value of increases with grid spacing
21 interior points (mx 105 interior points (mx
= 3, my = 7)
No. of iterations 20 15 13 12 15 18 23
= 15, my = 7)
No. of iterations 70 58 46 35 29 26 28 36
3.10
mx + 1
+ cos
my + 1
2 16 + 16 = 0
4 , 2 2+ 4c
c = cos
mx + 1
+ cos
my + 1
my
3 7
opt
1.2668 1.5325
Non Dirichlet boundary conditions use results from rst few iterations see textbooks
3.11
u1,j is included via approximation for derivative u u1,j u1,j (0, yj ) = = ln (yj ) x 2 Change of +1-diagonal entry, and extra components of right hand side vector
3.5