HAL Id: hal-00450034
https://hal.archives-ouvertes.fr/hal-00450034
Submitted on 25 Jan 2010
HAL is a multi-disciplinary open access
archive for the deposit and dissemination of
sci-entific research documents, whether they are
pub-lished or not. The documents may come from
teaching and research institutions in France or
L’archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d’enseignement et de
recherche français ou étrangers, des laboratoires
Combining multigrid and wavelet ideas to construct
more efficient multiscale algorithms for the solution of
Poisson’s equation
Stefan Goedecker, Claire Chauvin
To cite this version:
Stefan Goedecker, Claire Chauvin. Combining multigrid and wavelet ideas to construct more efficient
multiscale algorithms for the solution of Poisson’s equation. Journal of Theoretical and Computational
Chemistry, World Scientific Publishing, 2003, 2 (2), pp.483-495. �10.1142/S021963360300063X�.
�hal-00450034�
multis ale algorithms for the solution of Poisson's equation
Stefan Goede ker, Claire Chauvin
Departement de re her he fondamentale sur la matiere ondensee, SP2M/L Sim, CEA-Grenoble, 38054 Grenoble edex 9,Fran e
1 Abstra t
ItisshownhowvariousideasthatarewellestablishedforthesolutionofPoisson'sequation using plane wave and Multigrid methods an be in orporated into the wavelet ontext. The ombinationofwavelet on eptsandmultigridte hniquesturnsouttobeparti ularly fruitful. We propose a modiedmultigridV y le s heme that isnot only mu h simpler, but also more eÆ ient than the standard V y le. Whereas in the traditional V y le the residue is passed to the oarser grid levels, this new s heme does not require the al ulationofaresidue. Insteaditworkswith opiesofthe hargedensity onthedierent grid levels that were obtained from the underlying harge density on the nest grid by wavelet transformations. This s hemeis not limitedtothe pure wavelet setting,where it is faster than the pre onditioned onjugate gradient method, but equally wellappli able for nite dieren edis retizations of Poisson's equation.
2 Introdu tion
Poisson'sequation
r 2
V(r)= 4(r) (1)
is the basi equation for ele trostati problems. As su h it plays an important role in a large variety of s ienti and te hnologi al problems. The solution of the dierential equation (Eq. 1) an bewritten asan integral equation
V(r)= Z (r 0 ) jr r 0 j (2)
Gravitationalproblemsare basedonexa tlythesameequationsastheele trostati prob-lem, but we will use in this arti le the language of ele trostati s, i.e. we will refer to (r) as a harge density. The most eÆ ient numeri al approa hes for the solution of ele trostati problems are based on (Eq 1) rather than (Eq. 2). However pre ondition-ing steps found inthese methods an be onsidered asapproximate solutions of (Eq. 2). The fa t that the Green's fun tion
1 jr r
0 j
is of long range makes the numeri al solution of Poisson's equation diÆ ult, sin e it implies that a harge density at a point r
0 will have an non-negligible in uen e on the potential V(r) at a point r far away. A naive implementationof (Eq. 2)would therefore have a quadrati s aling. It omes however to our help, that the potential arising froma harge distribution far away is slowly varying
solving ele trostati problems are therefore based ona hierar hi al multis aletreatment. On the short length s ales the rapid variations of the potential due to the exa t harge distribution of lose by sour es of harge are treated, onthe large length s ales the slow variationdueto somesmoothed harge distributionof farsour es isa ounted for. Sin e the numberof degrees offreedom de reasesrapidly within reasing lengths ales, one an obtain algorithms with linear or nearly linear s aling. In the following, we will brie y summarize how this hierar hi al treatment isimplemented in the standard algorithms
Fourier Analysis:
If the harge density iswritten inits Fourierrepresentation
(r)= X K K e iKr
the dierent length s ales that are in this ase given by = 2 K
de ouple entirely and the Fourierrepresentation of the potentialis given by
V(r)= X K K K 2 e iKr (3)
The Fourieranalysisof the realspa e hargedensityne essary toobtainitsFourier omponents
K
and the synthesis of the potential in real spa e from its Fourier omponents given by (Eq. 3) an be done with Fast Fourier methods at a ost of Nlog
2
(N)whereN isthenumberof gridpoints. ThesolutionofPoisson'sequation inaplanewaveisthusadivide and onquerapproa hwherethe divisionisintothe single Fourier omponents.
Multigrid methods(MG):
Trying to solve Poisson's equation by any relaxation or iterative method (su h as onjugategradient)on thene grid onwhi hone nallywants tohavethe solution leads to a number of iterations that in reases strongly with the size of the grid. The reason for this is that on a grid with a given spa ing h one an eÆ iently treat Fourier omponents with a wavelength =
2 K
that is omparable to the the grid spa ingh,butthe longerwavelengthFourier omponents onvergeveryslowly. This in rease in the number of iterations prevents a straightforward linear s aling solution of (Eq. 1). In the multigrid method, pioneered by A. Brandt [1℄, one is therefore introdu ing a hierar hy of grids with a grid spa ing that is in reasing by a fa tor of two on ea h hierar hi level. In ontrast to the Fourier method where the hargeandthepotentialaredire tlyde omposedinto omponents hara terized by a ertain length s ale, it is the residue that is passed from the ne grids to the oarse grids in the MG method. The residue orresponds tothe harge that would give rise to a potential that is the dieren e between the exa t potential and the approximate potential atthe urrent stage of the iteration.
The solution of partial dierential equations in a wavelet basis is typi ally done by pre onditioned iterative te hniques [2℄. The diagonal pre onditioning approa h, that is
The se tion after the next will introdu e multigrid for Poisson's equation in a wavelet basis. Even thoughthe fundamental similaritiesbetween wavelet and multigrids hemes have been re ognized by many workers (su h as [3℄) this se tions ontains to the best of our knowledge the rst thorough dis ussion of how both methods an prot from ea h other.
Within wavelet theory [4℄ one has two possible representations of a fun tion f(x), a s aling fun tion representation
f(x)= X j s Lmax j Lmax j (x) (4)
and a wavelet representation.
f(x)= X j s Lmin j Lmin j (x)+ Lmax X l =Lmin X j d l j l j (x): (5)
In ontrasttothes alingfun tionrepresentation,thewaveletrepresentationisahierar hi representation. Thewavelet atthe hierar hi levell isrelatedtothemotherwavelet by
l i (x)= p 2 l (2 l x i) (6)
The hara teristi length s ale of a wavelet atresolution level l is thereforeproportional to 2
l
. A wavelet on a ertain level l is a linear ombination of s aling fun tions at the higher resolution level l+1
l i (x)= m X j= m g j l +1 2i+j (x) (7)
S alingfun tions atadja ent resolutionlevelsare relatedby asimilarrenementrelation
l i (x)= m X j= m h j l +1 2i+j (x) (8)
and hen e also any wavelet at a resolution level l is a linear ombination of the highest resolution s aling fun tions. The so- alled fast wavelet transform allows us to transform ba k and forth between as aling fun tion and awavelet representation.
Letus nowintrodu e wavelet representations of the potential and the harge density
V(x) = X j V Lmin j Lmin j (x)+ Lmax X l =Lmin X j V l j l j (x) (9) (x) = X j Lmin j Lmin j (x)+ Lmax X l =Lmin X j l j l j (x) (10)
Dierent levels do not ompletely de ouple, i.e the omponents on level l, V l j
, of the exa t overall solutiondonot satisfythe single level Poisson equation
r 2 0 X j V l j l j (x) 1 A 6= 4 0 X j l j l j (x) 1 A (11)
perfe tly lo alized in Fourier spa e, i.e. many frequen ies are ne essary to synthesize a wavelet. However the amplitude of all these frequen ies is learly peaked at a nonzero hara teristi frequen y for any wavelet with at least one vanishing moment. From the s aling property (Eq. 6) it follows, that the frequen y at whi h the peak o urs hanges byafa toroftwoonneighboringresolutiongrids. Thissuggestthatthe ouplingbetween the dierent resolution levels isweak.
In the pre eding paragraph we presented the mathemati al framework only for the one-dimensional ase. The generalization to the 3-dim ase is straightforward by using tensor produ ts [4℄. Also in the rest of the paper only the one-dimensional form of the mathemati al formulas will presented for reasons of simpli ity. It has to be stressed however that all the numeri al results were obtained for the three-dimensional ase and with periodi boundary onditions.
3 The diagonal pre onditioning approa h for wavelets
Pre onditioningrequiresndingamatrixwithasimplestru turethathaseigenvaluesand eigenve tors that are similar to the ones of the matrix in question [5, 6℄. The stru ture has tobesimpleinthe sensethatitallows usto al ulatethe inverseeasily. Thesimplest and most widely used stru ture in this respe t is the stru ture of a diagonal matrix. As will be shown a diagonal pre onditioning matrix an be found in a wavelet basis set and pre onditioned onjugate gradient type methods are then a possible method for the solution of Poissons equation expressed in dierential form(Eq.1).
As one adds su essive levelsof wavelets tothe basis set the largest eigenvalue grows by a fa tor of 4 for ea h level. This an easily be understood from Fourier analysis. As one in reases the resolutionbya fa torof 2(i.e. in reases the largestFourierve tor k
max by a fa tor of 2) the largest eigenvalue in reases by a fa tor of 4. This basi s aling property of the eigenvalue spe trum an easily be modeled by a diagonal matrix, where all the diagonalelements are allequal onone resolution level, but in rease by afa tor of 4 as one goes to a higher resolution level. It is of ourse lear that all the details of the true spe trumare not reprodu edbythis approximations. The true spe trum onsistsof a large numberof moderately degenerate eigenvalues. The spe trum of the approximate matrix onsists of a few highlydegenerate eigenvalues where ea h eigenvalue has all the s aling fun tionsofone resolution levelasitseigenfun tions. Thetrue eigenfun tionsare of ourse mixtures of s aling fun tions on dierent resolution levels, but if the wavelet family is well lo alized in Fourier spa e the ontributions from neighboring resolution levelsare weak. Thelo alizationinFourierspa e in reases withthe numberof vanishing moments[7℄and thereforethis diagonalpre onditioning methodworksfor instan e mu h betterfor lifted interpolatingwavelets than for ordinary interpolatingwavelets [8℄.
Another lineof arguments, that shows the weakness of the diagonal pre onditioning, is the following. The pre onditioning matrix an also be onsidered to be the diagonal part of the matrix representing the Lapla ian. Sin e the diagonalelements in rease by a
Z ~ l +1 0 (x) 2 x 2 l +1 0 (x)dx = 2 Z ~ l 0 (2x) 2 x 2 l 0 (2x)dx (12) = 4 Z ~ l j (x) 2 x 2 l j (x)dx
the spe trumof the matrixhas again the orre ts aling properties. Inthe 3-dimensional ase there are three dierent types of wavelets (produ ts of 2 s aling fun tions and 1 wavelet, produ ts of 1s aling fun tion and 2wavelets and produ tsof 3 wavelets). Ea h type of wavelet gives rise to a dierent diagonal element, but again all these diagonal elementsdierby afa torof4ondierentresolutionlevels. Be auseoftheweak oupling between dierent resolution levelsdis ussed above, we expe t the matrix elementsof the Lapla ianinvolvingwavelets attwodierentresolutionslevelstobesmall. Thenumeri al examinationof thematrixelements(Fig.1) onrms thisguess. Italsoshows thatwithin one resolution level the amplitude of the matrix elements de ays rapidly with respe t to the distan e of the two wavelets and is zero as soon as they do not any more overlap. Nevertheless, some matrix elements oupling nearest neighbor wavelets are not mu h smallerthanthediagonalelements. Onealsondsafewmatrixelementsbetweendierent resolution levelsthat are less than one order of magnitudesmaller than the one within a single resolution level.
The fa t that all o-diagonal matrix elements are negle ted in urrent pre ondition s hemes explainstheir relativelyslow onvergen e. It amountstondinganapproximate Greens fun tion that is diagonal in a wavelet representation. This is obviously a rather poor approximation. Let us nevertheless stress that this diagonal matrix obtained by inverting a diagonalapproximation tothe Lapla ianis amu h more reasonable approxi-mation for pre onditioning purposes than the diagonal part of the Greens fun tion. The diagonalpart of the Greens fun tion has a tually ompletelydierents aling properties. The elements in rease by a fa tor of 2 as one goes to higher resolution levels instead of de reasing by a fa tor of 4. The multigrid methods to be dis ussed later in lude also in anapproximativeway through Gauss-Seidel relaxationsthis o-diagonal ouplingwithin ea h resolution blo k as wellas the ouplingbetween the dierent resolutions levels.
In the following we will present some numeri al results for the solution of the 3-dimensional Poisson equation in a wavelet basis using the diagonal pre onditioning ap-proa h. All the methods presented in this paper willhave the property that the onver-gen e rate isindependentof the grid size. We have hosen 64
3
grids for allthe numeri al examples. The fa t that the number of iterations ne essary to rea h a ertain target a ura y is independent of the system size together with the fa t that a single iteration involves a ost that is linear with respe t to the number of grid points ensures that the Poisson's equation an be solved with overall linear s aling. Whereas we use here only simple equidistant grids, this linear s aling has already been demonstrated with highly adaptive grids inproblems that involvemany dierentlength s ales [8,9, 10, 11℄.
The pre onditioningstep using simplythe diagonalis given by V l j = onst 4 l l j (13) InanalogytoEq.9,10,the
l j
'sare thewavelet oeÆ ientsonthel-thresolutionlevelof theresidue(r)=r 2 ~ V(r)+4(r)inawaveletrepresentation. ~ V(r)istheapproximate
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
0
1
2
3
4
5
amplitude
distance
medium-fine
medium-medium
medium-coarse
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
0
1
2
3
4
5
amplitude
distance
medium-fine
medium-medium
medium-coarse
Figure1: Theabsolutevalueof the amplitude ofthe matrix elementsof the Lapla ianin a basis of 6-th order interpolating (top panel) and 6-th order lifted interpolating (lower panel)wavelets. Shownaretheelementswithinoneresolutionblo k(medium-medium)as well asthe elements ouplingtoa higherresolution (medium-ne)anda lowerresolution level(medium- oarse). Thedistan e1 orrespondstothenearestneighbordistan eonthe medium resolution level. Be ause of the better lo alizationin Fourier spa e of the lifted wavelets, the matrix ismore diagonally dominantin the liftedwavelet representation.
is then used to update the approximate potential ~
V. In the ase of the pre onditioned steepest des ent methodused here this update simplyreads
~ V
~
V + V (14)
where is anappropriate stepsize. As dis ussed abovethe onstantin(Eq. 13) depends inthe three dimensional ase uponwhi htype ofwavelet isimpliedsin e itisthe inverse of the Lapla e matrix element between two wavelets of this type.
(Fig. 2) shows numeri al results for several wavelet families. The slow onvergen e of the interpolating wavelets is due to the fa t that they have a non-vanishing average and thereforea non-vanishingzero Fourier omponent[8℄. Hen ethey are alllo alizedin Fourier spa e at the origin instead of being lo alized around a non-zero frequen y. This de ien y an beeliminatedby lifting. The Fourierpowerspe trumoftheliftedwavelets tends to zero at the origin with zero slope for the family with two vanishing moments onsideredhere. Liftingthewavelet twi eleadsto4vanishingmomentsandaevenbetter lo alizationin Fourier spa e. The improvement in the onvergen e rate is however only marginal. The higher 8-th order lifted interpolating wavelet is smoother than its 6-th order ounterpart and hen e better lo alized in the high frequen y part. This also leads to aslightly faster onvergen e.
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
0
20
40
60
80
100
120
residue
iteration
INTP 6
LFT INTP 6
LFT INTP 8
2 LFT INTP 6
1e-08
1e-06
1e-04
0.01
1
100
0
5
10
15
20
25
30
35
40
45
50
residue
iteration
INTP 6
LFT INTP 6
LFT INTP 8
2 LFT INTP 6
Figure2: Theredu tionoftheresidueduringasteepestdes entiteration(lefthandpanel) and a FGMRES iteration (right hand panel) with interpolating and lifted interpolating wavelets.
Combiningthe diagonalpre onditioning(Eq.13) withaFGMRES onvergen e a el-erator [12℄ insteadof usingit withina steepest des ent minimizationgivesa signi antly faster onvergen e. The number of iterations an nearly be ut into half as shown in (Fig 2).
Up tonow we have only onsidered the ase where the elements of the matrix repre-senting the Lapla ian were al ulated within the same wavelet family that was used to
eral s hemes an however be implemented. It is not even ne essary that the al ulation of the Lapla ianmatrix elements is done in a wavelet basis. One an instead use simple se ond order nite dieren es, whi hin the one-dimensional ase are given by
1 h 2 ( V i 1 +2V i V i+1 ); (15)
or some higher order nite dieren es for the al ulation of the matrix elements. The s aling relation(Eq. 12) doesnot any more hold exa tly, but itis fullled approximately and the s hemes works aswell asin the pure wavelet ase asis shown in(Fig. 3).
1e-08
1e-06
1e-04
0.01
1
100
0
10
20
30
40
50
60
70
residue
iteration
FD 2 + LFT INTP 8
FD 6 + LFT INTP 8
Figure3: The onvergen e rate forthe ase wherePoisson'sequation issolved with nite dieren es and8-thorderliftedwaveletsare usedforthepre onditionedsteepestdes ent.
4 The MG approa h for wavelets
The aim of this part of the arti le is twofold. One aspe t is how to speed up the on-vergen e of the solution pro ess for Poisson's equation expressed in a wavelet basis set omparedtothediagonalpre onditioningapproa h. Theotheraspe tishowtoa elerate multigrid s hemes by in orporating wavelet on epts. The part therefore begins with a brief review of the multigrid method.
(Fig. 4) s hemati ally shows the algorithm of a standard multigrid V y le [13, 14℄. Even thoughthes heme isvalidinany dimension,a twodimensionalsettingissuggested by the gure, sin e the data is represented as squares. Sin eless data is available onthe oarsegrids,thesquaresholdingthe oarsegriddataarein reasinglysmaller. Ithastobe stressed that the remarks of the end of the rst part remain validand that inparti ular all the numeri al al ulations are 3-dim al ulations. The upperhalf of the gure shows the rst part of the V y le where one goesfrom the nest grid to the oarsest grid and the lowerhalf the se ond part where one goesba k to the nest grid.
P
P
P
V
+
2*GS
2*GS
(1)
4*GS
4*GS
8*GS
8*GS
16*GS
(3)
(5)
(2)
R
(4)
R
(6)
R
(7)
+
+
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
∆ ρ
ρ
Figure 4: S hemati representation of a multigrid V y le as des ribed in the text. GS denotes ared-bla kGauss-Seidelrelaxation,Rrestri tion, Pprolongationand+addition of the data sets. The numbering in parentheses gives the ordering of the dierent steps of the algorithm.
In the rst part of the V y le the potential on all hierar hi grids is improved by a standard red-bla k Gauss-Seidel relaxationdenoted by GS. The GSrelaxation redu es the error omponents of wavelengths that are omparable to the grid spa ing h very eÆ iently. In the3-dimensional aseweare onsidering here,thesmoothingfa toris.445 (page74ofref[13℄). Sin eweuse2GSrelaxationsroughlyonequarteroftheerroraround the wavelengthh survivesthe relaxationsonea hlevel. Asa onsequen ethe residue ontains mainly longer wavelengths whi h then in turn are again eÆ iently eliminated by the GS relaxations on the oarser grids. Nevertheless, the remaining quarter of the shorterwavelengths surviving therelaxationsonthe nergrid pollutestheresidueonthe oarsergrid through aliasingee ts. Aliasing pollutionmeans thateven if the residueon the ner grid would ontain onlywavelengths around h (andin parti ular nowavelength around 2h)the restri ted quantity would not beidenti allyzero.
In the se ond part of the V y le the solutions obtained by relaxation on the oarse grid are prolongated to the ne grids and added to the existing solutions on ea h level. Aliasingpollutionisagainpresentinthe prolongationpro edure. Duetothe a umulated aliasingerrors2GSrelaxationsareagaindoneonea hlevelbeforepro eedingtothenext ner level.
To a rst approximation the dierent representations of atthe top of (Fig. 4) rep-resent Fourier ltered versions of the real spa e data set on the nest grid. The large
lowerandlowerfrequen y parts of. Inthe 1-dimensional ase onlythe lowerhalf ofthe spe trumisstilldominatingwhen goingtothe oarsegrid, inthe3-dimensional ase itis onlyoneeightofthe spe trum. Be auseof thevariousaliasingerrorsdes ribedabovethe Fourier de omposition is however not perfe t. Obviously it would be desirable to make this Fourier de omposition as perfe t as possible. In the absen e of aliasing errors, the GS relaxations would not have to deal with any Fourier omponents spilling over from higher orlowerresolution grids.
Let us now postulate ideal restri tion and prolongation operators and dis uss their properties. Asfollowsfromthedis ussionabove,they shouldprovideforadyadi de om-position of the Fourier spa e. Consequently the restri tion operator would have to be a perfe t low pass lter for the lowerhalf of the spe trum (inthe 1-dim ase, inthe 3-dim ase only 1/8 would survive). We will refer to this property in following as frequen y separation property. The degree of perfe tness an be quantied by the k dependent fun tion S l (k)= s X i (s l i ) 2 =N (16)
where N is the number of grid points on resolution level l. The k dependen e enters through the requirement that the signal s
Lmax i
on the nest resolution level is a pure harmoni , s Lmax i =exp (I2ki=N) (17) The fun tion S l
(k)for a perfe t restri tion operator is shown in (Fig 5). Su h ideal grid transfer operators have to satisfy a se ond property, that will be baptized the identity property. The prolongation operator has to bring ba k exa tly onto the ner grid the long wavelength asso iated with the oarser grid. This an only be true if prolongation followed by a restri tion givesthe identity. A third desirableproperty would be that the oarsed harge density represents as faithfully as possible the signi ant features of the original harge density. In parti ular the oarsed harge density should have the same multipoles and most importantlythe samemonopole. The onservation of the monopole justmeans thatthe total hargeisidenti al onallgrid levels. Thisthird property willbe alled the multipole onservation property inthe following.
With the ideal grid transfer operators, the solution of Poisson's equation would be a divide and onquer approa h in Fourier spa e and it ould be done with a single V y le with a moderate number of GSrelaxations on ea h resolution level. In ontrast to asolution inaplanewave basisthe division would notbeintosingleFourier omponents but into dyadi parts of the Fourier spe trum. For the ase of our postulated ideal grid transfer operatorsit alsowould not matter whether the GSrelaxationsare applied when going up or going down, only the total number of GS relaxations on ea h level would ount.
Toestablishtherelationbetweenmultigridgridtransferoperatorsand wavelettheory, letuspointouta formalsimilarity. Forvanishingd oeÆ ients,the wavelet analysisstep is given by (Eq. 26of ref. [7℄)
s 2h i = m X j= m ~ h j s h j+2i (18)
0
0.2
0.4
0.6
0.8
1
0
S
k
1st c. l.
2nd c. l.
3rd c. l.
Figure 5: The ideal fun tion S l
(k) dened in (Eq. 16) on three resolution levels denoted by rst oarse level, se ond oarse level and third oarse level. On the zeroth original level the fun tion is identi al to one over the entire interval. It gives a perfe t dyadi de omposition of the Fourier spe trum.
and is formally identi al to a restri tion operation. A wavelet synthesis step for the s oeÆ ients is given by (formula27 of ref.[7℄)
s h 2i = m=2 X j= m=2 h 2j s 2h i j (19) s h 2i+1 = m=2 X j= m=2 h 2j+1 s 2h i j :
and isformallyidenti al toaprolongationoperation. One an nowforexampleeasilysee that the inje tion s heme forthe restri tionand linear interpolationfor the prolongation part orresponds to a wavelet analysis and synthesis steps for 1st order interpolating wavelets. Using the values of the lters
~
h and hfor interpolating wavelets we obtain
s 2h i =s h 2i (20) and s h 2i = s 2h i (21) s h 2i+1 = 1 2 s 2h i + 1 2 s 2h i+1 :
whi h is the standard inje tion and interpolation. As a onsequen e of the fa t that it an be onsidered asawavelet forward andba kward transformation,the ombinationof inje tionandinterpolationsatisfytheidentitypropertyofouridealgrid transferoperator pair, namely that applying a restri tion ontoa prolongationgivesthe identity.
s 2h i = 1 4 s h 2i 1 + 1 2 s h 2i + 1 4 s h 2i+1 : (22)
This s heme has the advantage that it onserves averages, i.e it satises the monopole part of the multipole onservation property of an ideal restri tion operator. Applying it toa hargedensitythusensures thatthetotal hargeisthesameonanygridlevel. Trying to put the full weighting s heme into the wavelet theory framework gives a lter
~ h with nonzero valuesof ~ h 1 = 1 4 , ~ h 0 = 1 2 , ~ h 1 = 1 4 This lter ~
hdoes not satisfythe orthogonality relationsof wavelet theory (formula8of ref. [7℄) with the h lter orrespondingto linear interpolation. Hen e aprolongation followed by arestri tion doesnot givethe identity.
A pair of similar restri tion and prolongation operators that onserve averages an however be derived from wavelet theory. Instead of using interpolating wavelets we have to use lifted interpolating wavelets [15, 16℄. In this way we an obtain both properties, average onservation and the identity for a prolongation restri tion sequen e. Using the lters derived inref. [7℄we obtain
s 2h i = 1 8 s h 2i 2 + 1 4 s h 2i 1 + 3 4 s h 2i + 1 4 s h 2i+1 1 8 s h 2i+2 (23) s h 2i = s 2h i (24) s h 2i+1 = 1 2 s 2h i + 1 2 s 2h i+1 :
Let us nally dis uss the rst property of our postulated ideal restri tion operator, namelythatitisaperfe tlowpasslter. Obviouslyanynitelengthlter anonlybean approximateperfe t lowpass lter. (Fig 6)shows the S fun tionforseveral gridtransfer operators. One learly sees that the FullWeighting operatorisa poorlowpass lter,the lter derived from se onddegree liftedwavelets is alreadybetterand the lters obtained from10th degreeDaube hies wavelets and twofoldlifted6th orderinterpolatingwavelets are best. The Daube hies 6th degreelter is intermediate and of nearly identi al quality asthe onethat isamixtureofthe FullWeighting andse onddegreeliftedwavelet lters. In ontrast tothe former, the later does however not fulllthe identityproperty.
Thedegree of perfe tness for the frequen y separation isalsorelatedtothe multipole onservation property of our postulated ideal grid transfer operators. As one sees from (Fig. 6) lters whi h orrespond to wavelet families with many vanishing are loser to beingidealforfrequen y separationthanthosewithfewvanishingmoments. Atthesame time the number of vanishing moments determines how many multipoles are onserved when the hargedensity is broughtonto the oarser grids.
The right panel of (Fig. 7) shows the onvergen e rate of a sequen e of V y les for the full weighting/interpolation (Eq. 22,21) s heme and various wavelet based s hemes, namely the s heme obtained from se ond order lifted wavelets (Eq. 23,24), the orre-sponding s heme,but obtained fromtwofold lifted6-th order wavelets aswellass hemes obtained from 6th and 10th order Daube hies wavelets. The numeri al values for the ltersare listedintheAppendix. One anobserve a lear orrelationbetweenthe onver-gen erateandthethedegreeofperfe tnessoftheS fun tion. Ahighdegreeofperfe tness
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
-100
-50
0
50
100
S
k
1st c. l.
2nd c. l.
3rd c. l.
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
-100
-50
0
50
100
S
k
1st c. l.
2nd c. l.
3rd c. l.
0
0.2
0.4
0.6
0.8
1
1.2
1.4
-100
-50
0
50
100
S
k
1st c. l.
2nd c. l.
3rd c. l.
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
-100
-50
0
50
100
S
k
1st c. l.
2nd c. l.
3rd c. l.
0
0.2
0.4
0.6
0.8
1
1.2
-100
-50
0
50
100
S
k
1st c. l.
2nd c. l.
3rd c. l.
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
-100
-50
0
50
100
S
k
1st c. l.
2nd c. l.
3rd c. l.
Figure6: The fun tionS l
(k) dened inEq.16onthe oarserresolution levelsLmax 1, Lmax 2 and Lmax 3 ( orresponding to grid spa ings of 2h, 4h and 8h if the nest resolution ish)forseveral restri tion operators: Topleft, Fullweighting; middleleft,2nd orderliftedwavelets, bottomleft 6thorder twofoldliftedwavelets; toprighthalfand half mixture between Full Weighting and 2nd order lifted wavelets; middle right, 6th order Daube hies; bottom right, 10th order Daube hies. S was al ulated numeri ally for an initialdata set of 256 points. Hen e the allowed values of k in (Eq. 17) range form -128 to127. The lowerhalf, quarterand eightof the spe trumwherethe ideal fun tionwould
of the lters of the grid transfer operators are longer than the standard Full Weighting lter, whi h just has 3 elements. The lifted 2nd order interpolating wavelet restri tion lter has for instan e 5 elements and the 6-th degree Daube hies lter 6 elements. This does however not lead to a substantial in rease of the CPU time. This omes from the fa t that on modern omputers the transfer of the data into the a he is the most time onsumingpart. Howmanynumeri aloperationsare thenperformedonthesedata resid-ingin a he hasonlyaminorin uen e onthetiming. Thenewwaveletbased s hemesfor restri tion and prolongation are thereforemore eÆ ient than the FullWeighting s heme, both fornite dieren e dis retizationsand s alingfun tion basis sets. It is alsoobvious that the multigrid approa hfor s aling/wavelet fun tion basis sets is more eÆ ient than the diagonalpre onditioning approa h.
The identity property for a restri tion prolongation operator pair was only ne essary for the ase of operators where the restri tion part is a perfe t low pass lter. One might therefore wonder how useful it is in the ontext of the only nearly perfe t lters. The numeri al experien e suggests that it is nevertheless a useful property. One an for example ompare the onvergen e rates using either the 6-th order Daube hies lters or thelterthat istheaverageofFullWeightingandlifted2nd orderwavelet lters. (Fig.6) shows that their restri tion parts have very similar S fun tions. Nevertheless we always found a better onvergen e rate with the Daube hies lter whi h satises the identity property.
Forthe 2-dimensionalPoisson equationit has been shown, that the onvergen e rate omparedtothestandard FullWeighting s heme anbeimproved bytailoringgrid trans-fer operatorsfor the relaxation s heme used [17℄. The theoreti al foundations for this is furnished by lo alFourier analysis [18℄. The same approa h ould ertainly alsobe used for the 3-dimensional ase onsidered here. It is to be expe ted that the grid transfer operators found by su h an optimization would be very lose to the ones that we have obtained from wavelet theory.
Themainjusti ationfortherelaxationsinthe upperpartofthetraditionalmultigrid algorithmshownin(Fig.4)istoeliminatethehighfrequen ies. This anhoweverbedone dire tly by fast wavelet transformations based on wavelets that have good lo alization properties infrequen y spa e su h as liftedinterpolatingwavelets. Asa onsequen e the traditionalmultigridalgorithms anbesimplied onsiderablyasshownin(Fig.8). Using wavelet based restri tionand prolongationoperatorswe an ompletelyeliminatethe GS relaxation in the rst part of the V y le where we go from the ne grid to the oarsest grid. We baptize su h a simplied V y le a halfway V y le. The numeri al results, obtained withthehalfwayV y le, shown inthe righthandplotsof(Fig.7),demonstrate that the onvergen e is slightly faster than for the traditional multigridalgorithmbased on the same restri tion and prolongation s heme. In addition one step is faster. It is not ne essary to al ulate the residue after the GS relaxations. Otherwise the number of GS relaxations and restri tions/prolongations is identi al in the full and halfway V y le. On purpose noCPUtimesaregiven inthis ontextbe auseoptimizationof ertain routines[19℄ anentirely hange thesetimings. Be ause theresidueisnever al ulatedin the halfway V y le, the memory requirements are alsoredu ed.
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
1
2
3
4
5
6
7
8
9
10
residue
iteration
FW
LFT 2
DAUB 6
2 LFT 6
1e-10
1e-08
1e-06
1e-05
0.01
1
100
1
2
3
4
5
6
7
8
9
10
residue
iteration
FW
LFT 2
DAUB 6
2 LFT 6
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
2
4
6
8
10
12
residue
iteration
FW
LFT 2
DAUB 10
2 LFT 6
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
2
4
6
8
10
12
residue
iteration
FW
LFT 2
DAUB 10
2 LFT 6
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
2
4
6
8
10
12
14
16
18
residue
iteration
FW
LFT 2
DAUB 6
DAUB 10
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
2
4
6
8
10
12
14
16
18
residue
iteration
FW
LFT 2
DAUB 6
DAUB 10
Figure 7: The onvergen e rate of a sequen e of V y les (left hand side) and halfway V y les (right hand side). In the upper two plots Poisson's equation was dis retized by se ondordernite dieren es,In themiddletwoplotsby 6-thordernitedieren es and inthelowertwoplotsby6-thorderand10thorder(forthe aseoftransferoperatorsbased on DAUB 10) interpolating s aling fun tions. Shown are results for the Full Weighting s heme (FW) se ond order lifted wavelets (LFT 2), twofold lifted 6-th order wavelets (2 LFT 6)and 6-thand 10-th orderDaube hies wavelets. In the aseof ordinaryV y les 2 GSrelaxations were done onthe nest levelboth whengoing up and omingba k down,
4*GS
8*GS
16*GS
ρ
32*GS
R
(1)
(2)
R
R
(3)
(4)
P
P
P
(5)
(6)
(7)
(9)
(8)
(10)
V
Figure 8: S hemati representation of a halfway V y le as des ribed in the text. The abbreviations are the same asin (Fig.4).
allowforanunbiased omparisonwiththetraditionalV y lewherealso4GSrelaxations were done on the nest grid level. For optimal overall eÆ ien y putting the number of GSrelaxationto3 isusually best, withthe valuesof 2and4leadingtoamodestin rease in the omputing time. The onvergen e rate of halfway V y les as a fun tion of the numberof GSrelaxations onthe nest grid level isshown in(Fig 9).
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
5
10
15
20
25
30
residue
iteration
1 GS
2 GS
3 GS
4 GS
1e-09
1e-08
1e-07
1e-06
1e-05
1e-04
0.001
0.01
0.1
1
10
100
5
10
15
20
25
30
35
40
residue
iteration
1 GS
2 GS
3 GS
4 GS
Figure 9: The onvergen e rate for halfway V y les with 4, 3, 2and 1 GS relaxationon the nest grid level. In the left panel 2nd order nite dieren es were used, in the right panel 6th order nite dieren es.
In all the previous examples we spe ied the number of GS relaxations on the nest grid level. On the oarser grid levels the number of iterations was allowed to in rease by a fa tor of two per grid level. In this way it was pra ti ally always possible to nd the exa t solution on the most oarse grid. In addition we found that this tri k slightly
dierent methods is however identi al when the numberof GS relaxation is onstant on ea h grid level.
5 Con lusions
Our results demonstrate that halfway V y les with the restri tion and prolongation steps based on wavelet theory are the most eÆ ient approa h for the solution of the 3-dimensionalPoisson'sequation. ItismosteÆ ientbothfornitedieren edis retizations and for the ase where s aling fun tions or wavelets are used as basis fun tions. We expe t that the approa h should also be the most eÆ ient one in onne tion with nite elements. It isessential that the wavelet family used for the derivation of the restri tion and prolongation s hemeshas at least one vanishingmomentand onserves thusaverage quantities on the various grid levels. Wavelet families with more vanishing moments do not lead an appre iable in rease of the onvergen e rate ompared to the ase of one vanishing moment for low order dis retizations of Poissons equation, but lead a modest furtherin reaseforhighorderdis retizations. Inthe asewhereawaveletfamilywasused to dis retize the Lapla e operator,it is best to use the same wavelet family to onstru t the grid transfer operators. In additiontoin reased eÆ ien y of the proposed halfwayV y le in termsof the CPUtime, itis alsosimplerthan the standard V y le. This makes not only programmingeasier, but alsoredu es the memory requirements.
6 A knowledgments
I was fortunate to have several dis ussion with A hi Brandt about this work. His great insightonmultigridmethods,thathewaswillingtosharewithme,helpedalottoimprove the manus ript. I thank himvery mu hfor his interest and advi e.
7 Appendix
Filter for twofold lifted6th order interpolatingwavelets [21℄: h 1 =75/128,h 3 =-25/256,h 5 =3/256, ~ h 0 =2721/4096, ~ h 1 =9/32, ~ h 2 =-243/2048, ~ h 3 =-1/32, ~ h 4 =87/2048, ~ h 6 =-13/2048, ~ h 8 =3/8192 .
The values fornegative indi esfollwofrom the symetry h i =h i and ~ h i = ~ h i . Filtersfor 6-th order Daube hies wavelets [4℄:
h 2 =0.3326705529500826159985d0,h 1 =0.8068915093110925764944d0, h 0 =0.4598775021184915700951d0,h 1 =-0.1350110200102545886963d0, h 2 =-0.0854412738820266616928d0,h 3 = 0.0352262918857095366027d0. ~ h i =h i .
Filtersfor 10-th order extremalDaube hies wavelets [4℄: h 4 =.1601023979741929d0, h 3 =.6038292697971897d0, h 2 =.7243085284377729d0, h 1 =.1384281459013207d0,
0 1 h 2 =.0775714938400457d0, h 3 =-.0062414902127983d0, h 4 =-.0125807519990820d0, h 5 =.0033357252854738d0. ~ h i =h i . Referen es
[1℄ A.Brandt, Mathemati sof Computation 31, 333 (1977)
[2℄ W.Dahmen, in A ta numeri aCambridge University Press (1997)
[3℄ A.Brandt,Multis aleS ienti Computation: Review2001,inT.J.Barth,T.F.Chan and R. Haimes (eds.) Multis ale and Multiresolution Methods: Theory and Appli a-tions SpringerVerlag,Heidelberg,2001;orhttp://www.wisdom.weizmann.a .il/a hi/
[4℄ I. Daube hies, Ten Le tures on Wavelets, SIAM, Philadelphia (1992)
[5℄ W.Dahmen, S. Pro ssdorf, R. S hneider: Wavelet approximation methods for pseudo-dierential equations II: Matrix ompression and fast solution, Advan es in Compu-tationnalMathemati s,1,(1993)
[6℄ S. Jaard,Wavelet methods for fast resolution of ellipti problems SIAM J. Numer. Anal.29 (1992)
[7℄ S. Goede ker: Wavelets and their appli ation for the solution of partial dierential equations,PressesPolyte hniques UniversitairesetRomandes,Lausanne, Switzerland 1998,(ISBN 2-88074-398-2)
[8℄ S.Goede ker, O.Ivanov, Comp.in Phys, 12, 548 (Nov/De 1998)
[9℄ S.Goede ker, O.Ivanov, Sol. State Comm.,105 665 (1998)
[10℄ R. A. Lippert, T. Arias and A. Edelman,J. Comp.Physi s, 140, 278 (1998)
[11℄ T. A. Arias,Rev. Mod.Phys. 71,267 (1999)
[12℄ Y. Saad, Iterative methods for sparse linear systems , PWS Publishing Company, Boston, (1996)
[13℄ U. Trottenberg, C. Oosterlee, A. S huller, Multigrid, A ademi Press, San Diego, CA,2001
[14℄ W. Ha kbus h and U.Trottenberg, A Multigrid Method,Springer, Berlin,1982 ; W. L.Briggs,VanEmdenHenson,S.F.M Cormi kAMultigrid Tutorial,se ondedition, SIAM, Philadelphia,PA, 2000
[15℄ R. S hneider: Multiskalen- und Wavelet-MatrixKompression, Teubner publishing, Stuttgart 1998
[17℄ D. Barkaiand A. Brandt, Appl. Math. Comp.13 215 (1983)
[18℄ A. Brandt, inPreliminary Pro . 4th Copper Mountain Conf on MultigridMethods, Copper Mountain, Colorado 1989;A. Brandt, SIAM J.Num. Anal.31 1695 (1994)
[19℄ S. Goede ker, A. Hoisie, Performan e Optimization of numeri ally intensive odes, SIAM publishing ompany, Philadelphia, USA 2001 (ISBN 0-89871-484-2)
[20℄ L.GreengardandV.Rokhlin,J.Comp.Phys.,73,325(1987);L.Greengard,S ien e, 265,909 (1994)
[21℄ W. Sweldens, SIAM Journal on Mathemati al Analysis29, 511 (1998).
[22℄ G. Deslauriersand S.Dubu , Constr. Approx. 5, 49 (1989).
[23℄ G. Beylkin, SIAM J.on Numeri al Analysis6, 1716 (1992).