Elliptic Iteration Handout PDF
Elliptic Iteration Handout PDF
Iterative Methods
Relaxation
Summary
Dr. Johnson
School of Mathematics
Semester 1 2008
university-logo
O UTLINE
1 R EVIEW
2 I TERATIVE M ETHODS
Point Iteration
Residual
Gauss-Siedel iteration
3 R ELAXATION
Relaxation and SOR
Line Relaxation
4 S UMMARY
university-logo
∂2 φ ∂2 φ
+ 2 = f (x, y ),
∂x 2 ∂y
Aw = f
Usually solve using iterative techniques.
The matrix form helps us think about methods in an abstract
way.
The matrix form will allow us to analyse the stability and
convergence of schemes. university-logo
I TERATIVE M ETHODS
university-logo
J ACOBI M ETHOD
for 1 ≤ i ≤ N − 1, and 1 ≤ j ≤ M − 1.
as
1
wi +1,j + wi −1,j + β2 (wi,j +1 + wi,j −1 ) − ∆x 2 fi,j
£ ¤
wi,j = 2
2 + 2β
with β = ∆x /∆y .
university-logo
J ACOBI M ETHOD
q +1 1 h
q q 2 q q 2
i
wi,j = w i +1,j + w i −1,j + β ( w i,j +1 + w i,j −1 ) − ∆x fi,j
2 + 2β2
q
here wi,j is the qth guess at the solution.
How do we know when we have the real solution?
We must define some convergence criteria.
university-logo
Av = f
where v is the exact solution of the linear system.
If w is an approximate solution, the error e is defined by
e = v − w.
Thus
Ae = A(v − w) = f − Aw.
university-logo
r = f − Aw.
e = 0 if and only if r = 0
J ACOBI R ESIDUAL
university-logo
q +1 1 h
q q +1 2 q q +1 2
i
wi,j = w i +1,j + w i −1,j + β ( w i,j +1 + w i,j −1 ) − ∆x fi,j
2 + 2β2
q
here wi,j is again the qth guess at the solution,
and we have already calculated w at (i − 1, j ) and (i, j − 1)
Gauss-Siedel will usually converge faster than Jacobi iteration.
university-logo
university-logo
university-logo
x
university-logo
L INE R ELAXATION
q +1 q +1 2 q +1 q q +1
β2 wi,j 2 2
+1 − (2 + 2β )wi,j + β wi,j −1 = ∆x fi,j − (wi +1,j + wi −1,j )
for 1 ≤ j ≤ M − 1.
We can solve this system using a direct-solver.
We can also over-relax
university-logo
R ELAXATION M ETHODS
q +1 q ∗
wi,j = (1 − ω )wi,j + ωwi,j