Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
98 views7 pages

Successive Over Relaxation Method: U U U U

The document discusses the Successive Over Relaxation (SOR) method for solving elliptic partial differential equations using the finite difference method. SOR is an iterative method that can increase the accuracy and convergence rate compared to the Gauss-Seidel method. It modifies the iterative equation by introducing a relaxation parameter ω between 1 and 2. For a 5-point stencil, the optimal ω is approximated as 1.5. The example problem of solving Laplace's equation on a square domain is worked out using both Gauss-Seidel and SOR to demonstrate their convergence properties.

Uploaded by

D.n.Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views7 pages

Successive Over Relaxation Method: U U U U

The document discusses the Successive Over Relaxation (SOR) method for solving elliptic partial differential equations using the finite difference method. SOR is an iterative method that can increase the accuracy and convergence rate compared to the Gauss-Seidel method. It modifies the iterative equation by introducing a relaxation parameter ω between 1 and 2. For a 5-point stencil, the optimal ω is approximated as 1.5. The example problem of solving Laplace's equation on a square domain is worked out using both Gauss-Seidel and SOR to demonstrate their convergence properties.

Uploaded by

D.n.Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Successive Over Relaxation Method

Any second order Elliptic Equation e.g. Laplace Equation, while solving by FD
method, always reduces to a equation containing u i , j , u i 1, j , u i 1, j and u i , j 1 which for different
values of ( i, j) may be converted to a system of equations. Rewriting equation (1.3) again:

ui1, j ui1, j ui , j 1 ui , j 1 4ui , j (x) 2 f (ix, jy ).

Putting j =1, i =1,2,-------,N, then j =2, i =1,2,--------,N and in the same manner
j = M, i =1,2,----- ,N, thus finally we obtain a system of M N equations which are solved by
any convenient method to get ui, j at all nodes. This is one of the Implicit scheme but however
sometimes the size of the system becomes so large that it is unmanageable. Hence this
method is not an efficient way for solving Elliptic PDE.

In order to increase the accuracy , the scheme (1.3) known as Five-Point Scheme,
can be modified to get a Nine-Point Scheme. This scheme in the form of computational
molecule can be written as:

(4)ui,j+1
(1)ui1,j+1 (1)ui+1,j=1

(4)ui1,j (4)ui+1,j
(20)ui,j

(1)ui1,j1 (1)ui+1,j1
(4)ui,j1

Scheme (2.1) has error of o( x )4 which is sufficiently less than Five-Point Scheme, but it
involves more computational complexity.

Another way of increasing accuracy, is to modify the scheme for solving the equation (1.4). One
of the technique used for this purpose is the Successive over relaxation (SOR) method.

To explain its implementation, we can write

u in, j 1 u in, j

4
(x) 2
f i , j u in1,1j u in, j 11 u in, j 1 u in1, j 4u in, j
u in, j 1 ( RHS of Gauss - Seidel method ) ( 1)u in, j

is called as a relaxation parameter. It is verified that for over relaxation method ,1< <2.
For a rectangular domain, a reasonable estimate of can be taken as the small root of the
equation

cos cos 2 16 16 0
M N

4
where M & N are number of sub-domains in each side. This shows
2 4 k2

where, k cos cos
M N

The following table shows the value of for different M & N.

M=N
2 1.000
3 1.072
5 1.260
10 1.528
20 1.729
2.000

It is observed that usually opt = 1.5

For large M and N, one can approximat e by


1
1 1 2
opt 2 2 2 2 21 , M N
M N M

Example: Solve 2 u=0, subject to Dirichlet conditions in the domain 0 x 0.75 ,


0 y 0.75 with x= y=0.25 , subject to the boundary conditions:
u(0,y) =0, u(0.75,y) =10 and u(x,0) =0, u(x,0.75) =10.
Obtain the solution at the internal nodes: (1) using symmetry (2) without using symmetry.
With; (a) Gauss- Seidel Method (b) SOR method.
And compare the results.
Work out this problem with Nine-Point formula also.
Solution:
We solve the problem with symmetry.

By Gauss-Seidal method ,we have 3 equations:

(start with assumed valuesas 0 i.e. u i,0 j 0)

u1n,11
1 n
2

u 2,1

u 2n,11
1

u1n,11 u 2n, 2 10
4

u 2n,21
1 n1
u 2,1 10
2

The values ,so computed are given in the following table:

u 1,1 u 2,1 u 2,2


n=0 0 2.5 6.25
n=1 1.25 4.3750 7.1875
n=2 2.8175 4.8438 7.4219
n=3 2.4219 4.9610 7.4805
n=4 2.4805 4.9902 7.4951
n=5 2.4951 4.9976 7.4988
n=6 2.4988 4.9994 7.4997
Hence solution correct to 2d is:

u1,1=2.50 ; u 2,1=5.00 ; u 3,1=7.50

(b) By SOR Method:


k cos cos , M, N no. of sub divisions . Here M 3, N 3
M N

The equations in the iterative form can be written as follows :

4
k 0.5 1.072
2 4 k2
(start with assumed valuesas 0 i.e. u i,0 j 0)

1


u1n,11 1.072 u 2n,1 5 0.072u1n,1
2
1


u 2n,11 1.072 u1n,11 u 2n, 2 10 0.072u 2n,1
4
1


u 2n,21 1.072 u 2n,11 10 0.072u 2n, 2
2

The values so computed are given in the following table:

u 1,1 u 2,1 u 2,2


n=0 0 2.68 6.70
n=1 1.4365 4.6676 7.3794
n=2 2.3984 4.9644 7.4896
n=3 2.4882 4.9844 7.4817
n=4 2.4988 4.9914 7.4917

Hence solution correct to 2d is:

u1,1=2.50 ; u 2,1=5.00 ; u 3,1=7.50

Thus SOR Method gives faster convergence.

Let us solve the problem without symmetry.

(a) By Gauss-Seidal method, we have 4 equations:

(start with assumed valuesas 0 i.e. u i,0 j 0)

u1n,11
1
4
u
n
1, 2 u 2n,1
u1n,21
1
4
u
n 1
1,1 u 2n, 2 10
u 2n,11
1
4
u
n 1
1,1 u 2n, 2 10
u 2n,21
1
4
u n 1
2 ,1 u1n, 2 20
The values so computed are given as follows:

u 1,1 u 1,2 u 2,1 u 2,2


n=0 0 2.5 2.5 6.25
n=1 1.25 4.3750 4.3750 7.1875
n=2 2.8175 4.8438 4.8438 7.4219
n=3 2.4219 4.9610 4.9610 7.4805
n=4 2.4805 4.9902 4.9902 7.4951
n=5 2.4951 4.9976 4.9976 7.4988
n=6 2.4988 4.9994 4.9994 7.4997

Hence solution correct to 2d is:

u1,1=2.50 ; u 2,1=5.00 ; u 3,1=7.50

(b) By SOR Method:


k cos cos M, N no. of sub divisions
M N
Here M 3, N 3

k 0 .5
4

2 4 k2
1.072

Hence, we have 3 equations:

(start with assumed valuesas 0 i.e. u i,0 j 0)

1

u1n,11 1.072 u1n, 2 u 2n,1 0.072u1n,1
2
1

u 2n,11 1.072 u1n,11 u 2n, 2 10 0.072u 2n,1
4
1

u 2n,11 1.072 u1n,11 u 2n, 2 10 0.072u 2n,1
4
1

u 2n,21 1.072 u 2n,11 u1n, 2 20 0.072u 2n, 2
4
Now we record all values in table form:

u 1,1 u 1,2 u 2,1 u 2,2


n=0 0 2.68 2.68 6.70
n=1 1.4365 4.6676 4.6676 7.3794
n=2 2.3984 4.9644 4.9644 7.4896
n=3 2.4882 4.9844 4.9844 7.4817
n=4 2.4988 4.9914 4.9914 7.4917

Hence solution correct to 2d is:

u1,1=2.50 ; u 2,1=5.00 ; u 3,1=7.50

Hence SOR Method gives faster convergence.

Now by Nine-Point Formula, using symmetry, we have 3 equations:

20u1,1 8u 2,1 u2, 2 0


4u1,1 19u 2,1 4u 2, 2 55 0
u1,1 8u 2,1 20u 2, 2 110 0

On solving by Gauss- Elimination method ,we have:

u1,1=2.3810 ; u 2,1=5.00 ; u 3,1=7.6190

You might also like