Contents lists available atScienceDirect
Journal of Computational Physics
www.elsevier.com/locate/jcp
Comparison of eigenvalue ratios in artificial boundary perturbation and Jacobi preconditioning for solving Poisson equation
Gangjoon Yoon
a, Chohong Min
b,∗aNationalInstituteforMathematicalSciences,Daejeon34047,RepublicofKorea bDepartmentofMathematics,EwhaWoman’sUniversity,Seoul03760,RepublicofKorea
a r t i c l e i n f o a b s t r a c t
Articlehistory:
Received8December2016
Receivedinrevisedform2August2017 Accepted5August2017
Availableonline10August2017
Keywords:
Shortley–Weller
Artificialboundaryperturbation Jacobipreconditioner Conditionnumber Poissonequation Finitedifferencemethod
TheShortley–WellermethodisastandardfinitedifferencemethodforsolvingthePoisson equationwithDirichletboundarycondition.Unlessthedomainisrectangular,themethod meets an inevitable problem that some of the neighboring nodes may be outsidethe domain. Inthiscase,anusual treatmentis toextrapolatethefunctionvaluesatoutside nodesbyquadraticpolynomial.Theextrapolationmaybecomeunstableinthesensethat someof theextrapolation coefficients increase rapidlywhen thegrid nodes are getting closer to the boundary. A practical remedy, whichwe call artificial perturbation,is to treat gridnodes verynear the boundary as boundarypoints. The aimof thispaper is torevealtheadverseeffectsoftheartificialperturbationonsolvingthelinearsystemand theconvergenceofthesolution.Weshowthatthematrixisnearlysymmetricsothatthe ratioofitsminimumandmaximumeigenvaluesisanimportantfactorinsolvingthelinear system.Ouranalysisshowsthattheartificialperturbationresultsinasmallenhancement oftheeigenvalueratiofromO(1/(h·hmin)toO(h−3)and triggersanoscillatoryorderof convergence. Instead,we suggestusing JacobiorILU-typepreconditioneron thematrix withoutapplyingtheartificialperturbation.Accordingtoouranalysis,thepreconditioning not onlyreduces theeigenvalueratio from O(1/(h·hmin)to O(h−2),butalsokeepsthe sharpsecondorderconvergence.
©2017ElsevierInc.Allrightsreserved.
1. Introduction
Inthisarticle,weconsiderthestandardfinitedifferencemethodforsolvingthePoissonequation
−
u=
f inadomain⊂ R
nwithDirichletboundaryconditionu=
g on∂.Lettheuniformgridofstepsizeh isdenotedby(hZ)
n.Thediscrete domainisthendefinedasthesetofgridnodesinsidethedomain,i.e.h:= ∩ (
hZ)
n.Thestandard finitedifference methodisadimension-by-dimension applicationofthecentralfinite difference,andwe present mainly the caseof one dimension andreport anynominal differences inthe other dimensions, when required.
Unlessisrectangular,themethodmeetsaninevitableproblemthatsomeoftheneighboringnodesmaybeoutside.As
*
Correspondingauthor.E-mailaddress:chohong@ewha.ac.kr(C. Min).
http://dx.doi.org/10.1016/j.jcp.2017.08.013 0021-9991/©2017ElsevierInc.Allrightsreserved.
Fig. 1. uhi,j hasfourneighboringnodes.Theoneintherightisoutside,andtheghostvalueuGi+1,jisquadraticallyextrapolatedfrominsidevaluesuhi,j anduhi−1,jandtheboundaryvaluegI.
depictedinFig. 1,a neighboringnodeofthegridnodeisoutside.Thenodeoutsidehiscalledghostnode[10],andthe functionvalueattheghostnodeisextrapolatedbythequadraticpolynomialasfollows.
uiG+1,j
:=
uhi−1,j1− θ
1
+ θ −
2uhi,j1− θ θ +
gI2
(
1+ θ) θ .
Hereθ
·
h isthedistancebetweenthegridnodeandtheboundarytotheright.Applyingtheextrapolationtothesecond-ordercentraldifferencescheme,weobtainasecond-orderdiscretizationinthe x-direction
− (
Dxxu)
i j= −
ui−1,j−
2ui,j+
uGi+1,jh2
=
2θ
h·
hui,j−
2h
· (θ +
1)
hui−1,j−
2θ
h· (θ +
1)
hgI.
(1)ThisdiscretizationiscalledtheShortleyandWellermethod[19]andthecorrespondingdiscreteLaplacianoperatorisgiven inequation (3)insection3.OnapplyinganiterativemethodtosolvethediscretePoissonequationwhichisrelatedtoan nonsymmetric matrix,itis notedin [17]that iftherelatedmatrixis nearlysymmetric,the residualnormisbounded by theratioofthemaximumandminimumeigenvaluesinabsolutevalue.Weshow inthisworkthatthematrixinducedby the Shortley–Weller methodis nearlysymmetric inthe sense thatthe dominantmajorityofthe entriesin A
= (
ai,j) are symmetricabouttheir diagonals[23] andai j=
0 iffaji=
0 ([18]andreferencestherein).Inthisrespect,weestimate the convergenceperformancebytheeigenvalueratioratherthantheratioofsingularvalues.From the discretization (1),we see that theextrapolation mayproduce large errorifθ in the denominator gets very small.ThisresultsinalargeconditionnumberforthematrixassociatedwiththeShortley–Wellermethodasanestimation
|λ
max/λmin| =
O(1/ (h·
hmin)) shown in Theorem 3.1. Here hmin is the minimum distance from the nodes in to the boundary ∂. To mitigate the singularity of the extrapolation, there are two treatments in practice: artificial boundary perturbationandpreconditioning.The artificial boundary perturbationis to treat thegrid nodes nearthe boundary within a certain thresholdθ0
·
h as boundarypointsandwetakeuhi,j=
gI [7,10,16].Thecommonchoiceofthethresholdisθ0=
h.Wecallthepracticeasthe artificialboundaryperturbationthroughoutthispaper.This article isaimed atrevealing theprecise effects from the artificialperturbation. We review the known facts and estimate theratioofeigenvaluesfortheunperturbedlinearsysteminsection2.Insection4,wediscusstheeffectsonthe convergenceofthenumericalsolutionandtheeigenvalueratioofthelinearsystemfortheartificialperturbation.Inpractice, we take θ0
=
h forthe perturbation value andwe reveal inTheorem 4.2 that the eigenvalueratio to thecorresponding treatment is shown to be O(h−3) so that the artificial perturbation is lesseffective than any preconditioning. Another treatment to mitigatethe dependence on the minimumgrid size and condition numbers as well is preconditioning the linearsystem.WeestimatetheeffectoftheJacobipreconditioninginsection5andwetesttheusualotherpreconditioners suchassymmetricGauss–Seidel(SGS),incompleteLU(ILU)andmodifiedILU(MILU)toseetheeffectofthepreconditioning.We showthat theJacobipreconditioningisenough tocompletelyresolve theissueofthesingularityoftheextrapolation when θ is small, by proving that theJacobi preconditioner istotally free fromthe effect ofthe minimumdistance hmin andits conditionnumberisnolargerthan O(h−2).Consequently,we suggestthepreconditioningmethodratherthat the artificialboundaryperturbationinordertoimprovetheperformanceoftheiterativesolver.
Itisworthnotingthatitwasobservedformanysecondorder,self-adjoint,ellipticequationsthatthespectralcondition numbersofthediscreteoperatorgrowasO(h−2)asthemeshsizeh tendstozero(see[6]fordetails).Also,Dupont,Kendall andRachford[9]observedthateventhoughtheconvergenceratesoftheJacobi,SGS,andILUpreconditionedmatricesstill
behaveasO(h−2)withamuchsmallermultiplicativeconstant,theMILUpreconditionedmatrixdropstheorderto O(h−1). TheMILUimprovement O(h−1)fortherectangulardomainwas provedin[3,4,14,21]andwe alsoreferthereaderto[1,2, 5,12,15]forrelatedworksontheMILUpreconditioning.However,theMILUimprovementofO(h−1)forgeneraldomainsis notprovedyetandweleavethestudyforafurtherwork.
2. ReviewofShortley–Wellermethod
Inthiswork, we focusboth onthe convergenceperformance ofthestandard finitedifference methodforthe Poisson equationandontheeffectofthetwomethodsimprovingtheperformance:artificialboundaryperturbationandprecondi- tioning. Inthisrespect,itissufficient tocomparethe performancesforthetwo dimensionalcase.Letusintroduce some discretizationsettingsofdomainforsolvingthePoissonproblem
−
u=
f inu
=
g on∂,
(2)where
⊂ R
2 isan openandboundeddomainwithsmoothboundary ∂.Consider auniformgridwithstepsize h,i.e.h
Z
2.Byh wedenotethesetofgrid nodesbelongingto ,and∂h denotestheset ofintersectionpoints between∂andgridlines,i.e.h
= ∩
hZ
2and∂h
= ∂ ∩ {(
hZ × R) ∪ (R ×
hZ)}
.A gridnode (xi,yi)∈
h hasfourneighboring nodesinh∪∂
h,namelyxi±1,yj
andxi,yj±1
inh
∪∂
h.Lethi+12,jdenotethedistancefrom
xi,yjtoitsneighbor
xi+1,yj,andotherdistanceshi−1 2,j,hi,j±1
2 aredefinedinthesamefashion,seeFig. 1.
Byapplyingthe quadraticpolynomial extrapolationfortheghost values,its discrete Laplacianhuh
:
h→ R
foruh:
h
∪ ∂
h→ R
readsashuh
i j
=
uhi+1,j−
uhi j hi+12,j
−
uh
i j
−
uhi−1,j hi−12,j
2hi+1
2,j
+
hi−12,j
+
uhi,j+1−
uhi j hi,j+12
−
uh
i j
−
uhi,j−1 hi,j−12
2hi,j+1
2
+
hi,j−12
.
(3)Notethatwhenhi+1
2,j<h,wesetxi+1
=
xi+
hi+12,jsothat(xi+1,yj)
∈ ∂
h anduhi+1,j=
g(xi+1,yj)inequation(3).Throughoutthework, wedenote byu the solutiontothe Poissonequation(2) andby uh thesolution ofthediscrete equation
−
huh xi,
yj=
f xi,
yj,
xi
,
yj∈
h uhxi
,
yj=
g xi,
yj,
xi,
yj∈ ∂
h.
(4)Now,weintroducesomelemmasonthediscretizationinageneralsetting.Fortheproofswereferto[22].
Lemma2.1(Monotoneproperty).Foranyvh,wh
:
h∪ ∂
h→ R
with−
hvh≥ −
hwh inhandvh≥
whon∂h,wehave vh≥
whinh∪ ∂
h.Letusdefinethefunctionsph
:
h∪ ∂
h→ R
asthesolutionof−
hph=
1 inh
withboundarycondition ph
=
0 on∂h.Thenwehavethefollowingestimationforph [22].Lemma2.2.Letp(x)betheanalyticsolutionof
−
p=
1 inwithp=
0 on∂.LetCp=
Cp()betheconstantgivenby Cp:=
max∂
p∂
xi(
x) ,
∂
3p∂
x3i(
x) ,
∂
4p∂
x4i(
x)
:
x∈ ∩ ∂,
i=
1,
2.
Ifh
≤
min 1,8C3p,thenforeach
xi,yj∈
h,wehave 0≤
phi j≤
2Cp·
distxi
,
yj, ∂
h.
Therefore,thereisaconstantC>0 suchthatwehave
2hi+1 2,j
·
hi−12,j
+
2hi,j+1 2
·
hi,j−12
phi j
≤
C 1 h2 forallxi,yj
∈
h3. Nearlysymmetricmatrix
Forasymmetriclinearsystem,ConjugateGradientmethodistheoptimalsolverintheKrylovspaceassociatedwiththe linear system. Its convergence speed isdetermined by the condition number. Thus preconditioningthe symmetric linear systemisfocusedonreducingtheconditionnumber.
For a nonsymmetriclinear system, GeneralMinimal RESidual(GMRES) methodis the optimalsolver tominimize the residualintheKrylovspace. Unlikethesymmetriccase,theconvergencespeedisnotalwaysdeterminedby thecondition number, theratioofthemaximumandminimumsingular values.Theconvergenceis guaranteedforgeneralnonsingular matrices,butthemeasureofconvergencespeeddependsoneachtypeofthematrix.Thetypesandcorrespondingestimates arelistedbelow.
For normal matrix
,
rk≤
minp∈πk maxλ∈σ(A)|
p(λ)|
.
For diagonalizable matrix,
rk≤
minp∈πk maxλ∈σ(A)|
p(λ) |
· κ (
X) .
In general,
rk=
minp∈πkp(
A)
r0.
Now letusconsiderthematrixA associatedwiththeShortley–Wellermethod,andcheckthetypetowhichitbelongs.
Fig. 2showsthatall ofitseigenvaluesarelocatednearthepositiverealaxisinthecomplexplane.Insidethedomain,the Shortley–Wellermethodequalstothestandardmethodwhoseassociatedmatrixissymmetric.Withsmallerstepsizeh,the numberofgridnodesinsidethedomaindominatesthenumberofgridnodesadjacenttoboundary.Fromthisreason,the matrixA canbethoughasasmallperturbationofitssymmetricpartbyitsnonsymmetricpart.
A
=
A+
AT2
+
A−
AT 2.
Fig. 3 confirms the dominance of thesymmetric part over the nonsymmetric part. In particular, thematrix A
= (
ai j) is nearly-symmetricinthesensethatai j=
0 iffaji=
0 ([18]andreferencestherein)andthedominantmajorityoftheentries inA aresymmetricabouttheirdiagonals[23].Sincethesymmetricparthasonlyrealeigenvaluesandisdiagonalizable,the perturbation argumentexplainstheobservedrealeigenvaluesofA andindicates thatthematrix A maybestill diagonal- izable. Thereforeitisreasonabletoapply theconvergenceestimatefordiagonalizablematricestoA.Accordingto[17],the estimatecanbesimplifiedwhentheeigenvaluesarelocatedonthelinesegment[λmin, λmax] onthepositiverealaxisas rkr0
≤ κ (
X)
1
− λ
min/λ
max1
+ λ
min/λ
max k.
(5)Here X isatransformationmatrixtomake X−1A X diagonal,and
κ
(X)isits conditionnumber.When A isdiagonalizable, all ofitsILU-typepreconditionedmatricesarediagonalizable. Thuswe aimtoreducethe eigenvalueratio.Fig. 4 provides empiricalevidencesthatGMRESconvergesfasterwithsmallereigenvalueratiothatvalidatestheaboveestimate.Now,letusestimatetheeigenvaluesofthematrixassociatedwiththediscretization,whichisdenotedbyA
Theorem3.1.LetλbeaneigenvalueofthematrixA associatedwiththediscretization,0<CA
≤ |λ| ≤
h·h8min forsomeconstant CA=
CA(),thatisindependentofgridsizeh.Proof. Forsufficientlysmallh,wemayassumethatwhenever
xi,yj∈
handoneofitsneighbors,letussay xi−1,yj,is on∂,thenitsneighborintheoppositesidebelongstoinside,i.e.
xi+1,yj
∈
h.Letλbeaneigenvalueofthematrix A associated withthediscretizationand v itscorresponding eigenvector,thatis,Av= λ
v.The Gerschgorincircletheorem impliesthat 0<|λ| ≤
h·h8min.Since A is anM-matrix,the Perron–FrobeniusTheorem [13]applying toA−1 showsthat the minimumeigenvalueλm isapositiverealnumberandthereexistsaneigenvectorv= (
vP)P∈h withvP>0 forall P∈
h corresponding to λm.We mayassume that v isdefinedon h∪ ∂
h by a trivialextension.Let vP0=
max{
vP:
P∈
h}
. ThenwecanseeAv= (−
hv)andforthefunction phgiveninLemma 2.2,wehave( −
hv) = λ
mv≤ λ
mvP0( −
hph).
ApplyingLemmas 2.1 and 2.2showsthatthereexistsaconstantC0independentofh suchthat
vP
≤
C0λ
mvP0∀
P∈
h.
Thisshowsthatλm
≥
CAforsomeconstantCA,whichcompletestheproof.2
Table 1showsthattheestimationofTheorem 3.1istight:fortheunperturbedmatrixA,
|λ
min(A)|≈
CAforsomeconstant CA and|λ
max(A)| ≈
8/hhmin.Fig. 2. TheeigenvaluedistributionofA arenearlyreal.Thetoprowdepicttheeigenvaluesincomplexplaneforthecase= {(x,y)|x2+y2<1}and h=803,andthebottomrowfor= {(x,y,z)|x2+y2+z2<1}andh=203.Theellipsesincludingtheeigenvalueshaveeccentricity1−2.79×10−10and 1−1.70×10−8,respectively,whichmeanthatalltheeigenvaluesarealmostreal.
4. Effectoftheperturbation
Letuh be thenumerical solutionwithout perturbation,and u
˜
h be the numericalsolution withperturbation. Whileit has been well known that uh−
uL∞
=
O h2[19,22], the convergence order of the perturbed solution has been left
Fig. 3. Theratiobetweenthenumberofnonsymmetricentriesandthenumberofsymmetricentries.TheratiodecaysasfastasO(h),whichmeansthe dominanceofthesymmetricpartovernonsymmetricpart.= {(x,y)|x2+y2<1}.
Fig. 4. ThedecreaseoftheresidualnorminGMRES.Asestimatedin(5),GMRESconvergesfasterwithsmallereigenvalueratio.= {(x,y)|x2+y2<1} andh=3/80..
Table 1
EigenvaluesoftheunperturbedmatrixoftheShortley–WellermethodinExample 4.1:theresultstightlyobeytheestimateofTheorem 3.1,0<CA≤ |λ| ≤
8 h·hmin.
grid Original (unperturbed) matrix
|λmax| ratio hmin ratio hh8
min rate |λmin| ratio
202 4.00×102 5.03×10−2 5.30×102 5.74
402 2.17×104 54.3 1.53×10−3 0.0304 3.49×104 65.8 5.77
802 1.09×105 5.02 7.03×10−4 0.459 1.52×105 4.35 5.78 1.00
1602 1.59×106 14.5 9.15×10−5 0.130 2.33×106 15.4 5.78 1.00
3202 2.30×107 14.4 1.31×10−5 0.143 3.26×107 14.0 5.78 1.00
unclear. Inthissection,we investigatetheconvergenceorderof
˜
uh−
uL∞.Let∂ ˜h bethegridnodesthatweretreated asboundarypointsbytheperturbation.Thenthedifferenceu
˜
h−
uh satisfythediscreteharmonicequation,−
h˜
uh−
uh=
0 inh
− ∂ ˜
h.
On ∂ ˜h, the perturbed value u
˜
hi is assigned by g(xI)=
u(xI). It is known that the unperturbed numerical solution is third order accurate near the boundary [22], so that uhi=
u(xi)+
Oh3
. Applying the mean-value theorem, we have
˜
uhi
−
uhi=
u(xI)−
u(xi)−
O h3=
∂∂ux(ξ ) θ0h+
O h3, for some ξ between xi and xI. Thus the boundary value of the discreteharmonicsolutionu
˜
h−
uh isgivenas˜
uh
−
uh=
0 on∂
h\ {
x∈ ∂
h:
dist(
x,
h) ≤ θ
h}
∂u
∂x
(ξ ) θ
0h+
O h3on
∂ ˜
h.
Fig. 5. TheerrorplotofthenumericalsolutionsinExample 4.1.Theperturbationoccurssometimes(marked×)andsometimesnot(marked◦).Thelower bound(Ch2)andupperbound(C·h2+ ∇uL∞(∂)h2)aredrawnaslines.
Thediscretemaximumprinciple[22]statesthatthediscreteharmonicsolutionshouldhaveitsmaximumorminimumon theboundary,thereforewehave
˜
uh−
uhL∞
h
≤ ∇
uL∞(∂)θ
0h+
O h3,
foran
-neighborhood∂ of ∂andsufficientlysmallh withθ0h
≤
.Itiswell knownthattheunperturbednumerical solutionshowsaverycleansecond orderconvergencerate[8,22],uh−
uL∞
h
C·
h2.Using theabove inequalityand thetriangleinequality,weobtaintheestimate:˜
uh−
uL∞
h
≤
C·
h2+ ∇
uL∞(∂)θ
0h+
O h3.
When θ0
=
h, note that the perturbed solution is still second order accurate, however, Fig. 5 shows that while the unperturbedsolutionhasthecleansecond orderaccuracyash isvaried,thatoftheperturbedonewouldfluctuatearound thesecondorder.Letusnowturn ourattentionto thestatistics thatshow how oftentheperturbation occurs. Theedge length ofeach gridcellish andtheboundary∂isacurveoffinitelength.Thereforethenumberofgridcellsintersectingtheboundary canbesaidtobeaboutO
h−1
.Similarly,thenumberofgridedgesintersectingtheboundaryis O
h−1.Wemayassume that O
h−1
numberofintersectionpointsarerandomlydistributedongridedgesoflengthh.Theintersectionpointsthat are within distance θ0h
=
h2 from the endsare classified as‘toonear’ points onwhich the perturbation isapplied. The edgelengthh isdividedintoh−1 numberofsubintervalsoflengthh2.Whenthe Oh−1
numberofintersectionpointsare randomlydistributedontheedgelengthh,thenumberofpointslyingontheendsubintervalsistherefore O(1).
Similarly as above, we deduct that if θ0 were taken larger as a constant such as .001, the number of perturbation pointswouldincreaseunboundedlyasO
h−1
andifθ0takensmallerash2,theperturbationpointswouldnotappearfor sufficientlysmall h.
Example4.1.ConsiderthePoissonproblem
−
u=
0 in=
(x,y)
|
x2+
y2<1withu
=
y/(x
+
2)2+
y2.Theartificial boundaryperturbationwascarriedoutwithθ0
=
h.Fig. 5showstheerrorsoftheunperturbedandperturbedsolutions.Ourargumentin thissection indicates that thechoice θ0
=
h ismarginal sothat perturbation points maysometimes appear andsometimes not. When perturbation points do appear, theconvergence order uh−
uL∞h would fluctuate betweenC
·
h2 andC·
h2+ ∇
uL∞(∂)h2,whicharewellobservedinFig. 5.Wehavediscussedhowmuchtheperturbationaffectstheconvergenceorderandhowoftenitoccurs.Thelinearsystem associatedwiththePoissonsolverhasanotoriouslylargecondition number
hh8min.Thethirdissueofourdiscussionisto showthattheperturbationslightlydecreasestheconditionnumberasbelow.Fig. 6. Theeigenvalueratiooftheperturbed(marked×)andunperturbed(marked◦)linearsystemsinExample 4.1.Theperturbedratioissmallerthan theunperturbedratioasexpectedinTheorem 4.2.Theratiosofbothdataarebetweenthesecondorder(dottedline)andthethirdorder(solidline).
Theorem4.2.LetλbeaneigenvalueofthematrixofthePoissonsolverwiththeperturbation,thenwehave
0
< ˜
C≤ |λ| ≤
8θ
0h2≤
8 h·
hmin forsomeconstantC˜ = ˜
C().Proof. ThematrixobtainedinthisperturbationsettingisalsoanM-matrix.Inthiscase,wehavehmin
≥ θ
0·
h andapplying thesameargumentusedfortheproofofTheorem 3.1givestheaboveresult.2
The above theoremshows that the eigenvalue ratioof the perturbed matrix is smallerthan that ofthe unperturbed matrix. Since θ0
=
h, the estimate indicates that the two eigenvalue ratios are bounded above by h83/ ˜C=
Oh−3
and 8hhmin/ ˜C
≥
O h−3,respectively.Fig. 6verifies thetheorem:theperturbed ratioissmallerthantheunperturbedratioand theratiosofbothdataarebetweenthesecond orderandthethirdorder.Inthefollowingsection,however,weshowthat theJacobipreconditioningdropsdowntherationolargerthan O
h−2
.5. EffectoftheJacobipreconditioning
For a linear system Ax
=
b, the Jacobi preconditioner is the diagonal matrix D whose diagonal entries are the same asA.The JacobipreconditioningonthelinearsystemresultsinD−1Ax=
D−1b.Thepreconditioningis,inother words,to scaleeachequation sothat itsdiagonalentrybecomesone.ApplyingtheJacobipreconditioningonitslinearequation,the standardfinitedifferencemethodnowreadsui j
−
hi−12jhi j−12hi j+12 hi−12j
+
hi+12j
hi−1
2jhi+1
2j
+
hi j−12hi j+1 2
ui+1,j−
hi+12jhi j−12hi j+12 hi−12j
+
hi+1 2jhi−1
2jhi+1
2j
+
hi j−1 2hi j+12
ui−1,j−
hi j−12hi−12jhi+12j hi j−12
+
hi j+12
hi−1
2jhi+1
2j
+
hi j−12hi j+1 2
ui,j+1−
hi j+12hi−12jhi+12j hi j−12
+
hi j+12
hi−1
2jhi+1
2j
+
hi j−12hi j+1 2
ui,j−1=
fi j 2hi−1 2jhi j+1
2hi j−1 2hi j+1
2
hi−1 2jhi+1
2j
+
hi j−12hi j+1 2
.
Table 2
EigenvaluesofthepreconditionedmatricesinExample 4.1:theresultsofJacobitightlyobeystheestimateO h−2
<|λ|<O(1)ofTheorem 5.1,andthe otherresultsareatleastasgoodas|λmax/λmin|=O
h−2 .
grid Jacobi preconditioned SGS preconditioned
|λmax| ratio |λmin| ratio |λmax| ratio |λmin| ratio
202 1.96 3.56×10−2 1.00 1.29×10−1
402 1.99 0.98 8.53×10−3 0.24 1.00 0.98 3.33×10−2 0.26
802 1.99 1.00 2.08×10−3 0.24 0.999 1.00 8.28×10−3 0.25
1602 1.99 1.00 5.14×10−4 0.25 0.999 1.00 2.05×10−3 0.25
3202 1.99 1.00 1.27×10−4 0.25 0.999 1.00 5.11×10−4 0.25
grid ILU preconditioned MILU preconditioned
|λmax| ratio |λmin| ratio |λmax| ratio |λmin| ratio
202 1.18 2.08×10−1 3.28 0.999
402 1.20 0.98 5.60×10−2 0.26 6.64 2.02 1.00 1.00
802 1.20 1.00 1.40×10−2 0.25 13.4 2.02 1.00 1.00
1602 1.20 1.00 3.50×10−3 0.25 27.2 2.03 0.999 1.00
3202 1.20 1.00 8.72×10−4 0.25 55.0 2.02 0.999 1.00
Inbrief,theJacobipreconditionerD−1A actsonu as
D−1Aui j
=
ui j− α
i jui−1,j− β
i jui+1,j− γ
i jui,j1− δ
i jui,j+1withnonnegativeconstants
α
i j,βi j,γ
i j,δi j satisfying0<α
i j+ β
i j+ γ
i j+ δ
i j≤
1.ThismeansthattheJacobipreconditioner eliminatescompletelytheadverseeffectofhmin.AlsoweshowinthefollowingthattheJacobipreconditioningreducesthe ratiomagnitudeto Oh−2
.Theorem5.1.ForanyeigenvalueλoftheJacobi-preconditionedmatrixD−1A,wehave0<CJ
·
h2≤ |λ| ≤
2 forsomeconstant CJ=
CJ().Proof. LetλbeaneigenvalueoftheJacobi-preconditionedmatrixD−1A and v itscorrespondingeigenvector,thatis,Av
=
λDv. Sinceallthediagonalentries ofD arepositiveandA isan M-matrix,the Jacobi-preconditionedmatrixD−1A is also an M-matrix. The Gerschgorincircletheorem for D−1A shows|λ| ≤
2, andit remains to show that|λ| ≥
CJh2 forsome constant CJ independent ofh. Wemayassume that λ= λ
min is aminimum eigenvalue.Since D−1A isan M-matrix,the Perron–FrobeniusTheoremappliedtoA−1D showsthatthereexistsaneigenvectorv= (
vP)P∈h withvP>0 forallP∈
h correspondingtoλ.Wemayassumethat v isdefinedonh∪ ∂
h byatrivialextensionassettingvaluesofv equalto0.LetaP0P0vP0
=
max{(
Dv)P:
P∈
h}
.ThenwecanseeAv= (−
hv)andforthefunction ph giveninLemma 2.2,wehave( −
hv) = λ
minDv≤ λ
minaP0P0vP0( −
hph).
ApplyingCorollary 2.1andLemma 2.2givethatthereexistsaconstantC independentofh suchthat
vP0
≤ λ
minaP0P0vP0ph(
P0) ≤
Ch2
λ
minvP0.
Thisshowsthatλmin
≥
CJ·
h2 whereCJ=
1C,whichcompletestheproof.2
NotethattheeigenvalueestimatefortheJacobi-preconditionedmatrixisindependentofhmin,whilethatfortheoriginal matrixisdependent.ThusthepresenceofgridnodestooneartheboundaryisnotproblematicintheJacobi-preconditioned matrix.
Remark. Theorem 3.6in[20]showstheILU-typepreconditionersareactuallyappliedontopoftheapplicationoftheJacobi preconditioner.HencewecanexpectthattheireffectsareatleastasgoodasJacobi;SeeTable 2.
6. Conclusion
The matrix derived from the standard finite difference method called as the Shortley–Weller method is sparse and non-symmetric, and nearly symmetric. Hence the ratio