solving pdes with multigrid methodsta.twi.tudelft.nl/mf/users/maclachl/research/smpims2003.pdf ·...

69
Solving PDEs with Multigrid Methods Scott MacLachlan [email protected] Department of Applied Mathematics, University of Colorado at Boulder Solving PDEs with Multigrid Methods – p.1

Upload: others

Post on 12-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Solving PDEs with MultigridMethods

Scott MacLachlan

[email protected]

Department of Applied Mathematics, University of Colorado at Boulder

Solving PDEs with Multigrid Methods – p.1

Page 2: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Acknowledgments

This work has been supported byChancellor’s Fellowship, University of ColoradoDOE SciDAC TOPS programCenter for Applied Scientific Computing at LawrenceLivermore National Laboratory

This work has been performed in collaboration withSteve McCormick, Tom Manteuffel, John Ruge, andMarian Brezina at CU-BoulderRob Falgout at CASCDavid Moulton at LANL.

Solving PDEs with Multigrid Methods – p.2

Page 3: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Outline

Background & Motivation

Multigrid Methods

Self-Correcting Multigrid Methods

Current and Future Work

Solving PDEs with Multigrid Methods – p.3

Page 4: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

The Need for Optimal Linear Solvers

Significant interest in simulating complex physicalsystems with features, and hence solutions, that varyon multiple scales

Accuracy constraints lead to discretizations with tens ofmillions, or even billions, of degrees of freedom (DOFs)

3D Tsunami Model: 200 million cellsTransport: 500 million to 1 billion degrees of freedom

Without optimal methods, solving three-dimensionalproblems can be prohibitively expensive

Solving PDEs with Multigrid Methods – p.4

Page 5: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Properties of Matrices

We consider (primarily) discretizations of the underlyingcontinuum models (differential equations) via finiteelements or finite differences

The matrices from these discretizations tend to besparse and ill-conditioned

The matrices inherit properties of the continuum model(e.g. symmetry, definiteness)

Solving PDEs with Multigrid Methods – p.5

Page 6: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Stationary Iterative Methods

Stationary iterative methods choose approximations

� � ��� �

and iterate using the error equation

If

��� � � � � �� � � � �

, then � � � � � � � � ��

The Jacobi iteration chooses

to be the diagonal of

The Gauss-Seidel iteration chooses

to be thelower-triangular part of

SOR chooses

from within a one-parameter family totry and minimize � � � � ��

Solving PDEs with Multigrid Methods – p.6

Page 7: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Krylov Methods

Krylov methods find the optimal approximation to thesolution in a given subspace

Iteratively increase the size of the subspace to improveaccuracy

These methods are non-stationary: the results of aniteration affect later iterations

Solving PDEs with Multigrid Methods – p.7

Page 8: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Classical Methods do not Suffice

100

102

104

106

108

1010

100

105

1010

1015

1020

1025

1030

Problem Size

Est

imat

ed R

equi

red

FLO

Ps

Scalability of Linear Solvers

CholeskyBand CholeskyJacobiGSSOR (ω

opt)

CG−MIC(0)Optimal

Solving PDEs with Multigrid Methods – p.8

Page 9: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Stationary Iterative Methods . . .

The Jacobi and Gauss-Seidel iterations do converge forFE discretizations of elliptic operators, but are notrequire

� � �� � operations for 3-D problems

These methods do, however, resolve some componentsmuch faster than others

For example, for the Laplacian, it is the geometricallysmoothest components of the solution that are theslowest to be resolved

For this reason, Jacobi and Gauss-Seidel are oftencalled smoothers - they smooth the error in theapproximation

Solving PDEs with Multigrid Methods – p.9

Page 10: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Smoother Performance

Solving PDEs with Multigrid Methods – p.10

Page 11: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Complementing Relaxation

If the error left after relaxing is smooth, it can beaccurately represented using fewer degrees of freedom

Problems with fewer degrees of freedom can be solvedwith less effort

Error which appears smooth across many degrees offreedom is more oscillatory when represented on fewerdegrees of freedom

We choose to represent such error using a subset ofthe fine-grid degrees of freedom

Solving PDEs with Multigrid Methods – p.11

Page 12: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Solving PDEs with Multigrid Methods – p.12

Page 13: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

Relaxation

A(1)x(1)=b(1)Relax

Use a smoothing process (such as Gauss-Seidel) toeliminate oscillatory errors

Remaining error satisfies

� � � �

Solving PDEs with Multigrid Methods – p.12

Page 14: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

Relaxation

A(1)x(1)=b(1)

Level

1

2

Relax

Restriction

Need to transfer residual to coarse-griduse Restriction operator

Solving PDEs with Multigrid Methods – p.12

Page 15: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

Relaxation

A(1)x(1)=b(1)

Level

1

2

Relax

Restriction

Use coarse grid correction to eliminate smooth errors

Solving PDEs with Multigrid Methods – p.12

Page 16: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

Relaxation

A(1)x(1)=b(1)

Solve A(2)e(2)=r (2)

Level

1

2

Relax

Restriction

To solve for error on coarse-grid, use residual equation� � � � � � � �

� �� � �

Solving PDEs with Multigrid Methods – p.12

Page 17: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

Relaxation

A(1)x(1)=b(1)

Solve A(2)e(2)=r (2)

Level

1

2

Relax

Restriction

Solving on coarse-grid requires an operator on this gridwhich well approximates the fine-grid operator

The coarse-grid operator can be formed byrediscretization or using a variational principal

Solving PDEs with Multigrid Methods – p.12

Page 18: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

Relaxation

A(1)x(1)=b(1)

Solve A(2)e(2)=r (2)

Level

1

2

Relax

Restriction Interpolation

Need to transfer correction to fine-griduse Interpolation (Prolongation) operator

Often pick a form of interpolation (

) and takerestriction

� � � �

(theoretical benefits)

Solving PDEs with Multigrid Methods – p.12

Page 19: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

Relaxation

A(1)x(1)=b(1)

Solve A(2)e(2)=r (2)

Level

1

2

Relax

Restriction Interpolation

Solving PDEs with Multigrid Methods – p.12

Page 20: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Multigrid Basics

Multigrid Methods achieve optimality through complementarity

Multigrid Components

Relaxation

Restriction

Coarse Grid Correction

Interpolation

RelaxationSolve

Restrict

Relax

Restrict

Relax

Interpolate

Relax

Relax

Interpolate

Relax

Relax 1

Level

3

K

2

Obtain optimal efficiency through recursion

Solving PDEs with Multigrid Methods – p.12

Page 21: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Geometric Multigrid

Multigrid algorithms can be broadly classified by howthey pick their coarse grids

If we start with a geometrically regular grid, coarsegrids can easily be chosen

Solving PDEs with Multigrid Methods – p.13

Page 22: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Geometric Multigrid

Interpolation that is accurate for geometrically smoothfunctions is easy to choose

Can use linear/bilinear/trilinear averaging to get valuesat fine-grid points that are not also coarse-grid points

Restriction can be chosen either by simply taking thefine-grid values at coarse-grid points (injection), or asthe transpose of interpolation

Coarse grid equations can be chosen by rediscretizingthe PDE on the coarser grid or . . .

Solving PDEs with Multigrid Methods – p.14

Page 23: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Variational Multigrid

Multigrid with

� � � �

and

��� � � � �

is called avariational formulation

Terminology comes from minimization form of

� � �

:

� �� � ��

� � ��� � � � �� �

� �� � ����� � � �� �

Given an approximation � to the solution on the finelevel, it can be shown that the optimal coarse gridcorrection

��� solves

� � � �� � � � � � � �� �

Solving PDEs with Multigrid Methods – p.15

Page 24: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Nested Multigrid

Properties of Multigrid are most easily understood inthe case of nested grids

This means that not only each coarse grid a subset ofthe finer grid, but that the coarse-grid operators are alsoappropriately nested

To have this, consider a finite element framework

Solving PDEs with Multigrid Methods – p.16

Page 25: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Nested Framework

Consider the bilinear form

� ��� � � on a finite-dimensionalspace

Let � � � �� � � � � � � �

Define

� � � s.t.

� � � �� � � � � � � � � ��

� � � � s.t.

� � � � �� � � � � �� � �� ��

� � � � s.t.

� � � � � � �� � � � �� ��

Consider on each grid a smoother,

� � � , with

� � � � � ��

Solving PDEs with Multigrid Methods – p.17

Page 26: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Nested Approximate Inverses

Want to construct the approximate inverse

to� � � �

on � �

Do this recursively, by defining approximate inverses

for

On the coarsest grid we perform an exact solve, so

� � � �� ��

For � ,Take � � � �

Take � � � � � � � � � � � � � � �

Define

� � � �

� � � � � �

Solving PDEs with Multigrid Methods – p.18

Page 27: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Stationarity

Now, consider the grid

error-propagation matrix

� � � �

Can show that

� � � � � � � � � � � � � � � � � � � � � � � � � � � � � ��

So, taking

� � � � � have

� � � � � � � � �� � � � �� � � � � � � � � � � � � � �� � � � � � � � �� �

So, nested multigrid is a stationary linear iteration

Solving PDEs with Multigrid Methods – p.19

Page 28: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Convergence Theory

For finite elements, the above theory leads to anoptimal convergence result

For a bounded, open, connected domain� � �

with asmooth enough boundary

� �

and an� �

-elliptic bilinearform

� ��� � � , the nested multigrid method usingGauss-Seidel relaxation converges (in the norminduced by

� ��� � � ) in a fixed, finite number of iterations

� � � � � � � � �� �� � � � � � ��

� � ��� � �

Moreover, each iteration has cost bounded by

� ��

.

Fourier analysis gives similar results for finite differencediscretizations

Solving PDEs with Multigrid Methods – p.20

Page 29: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Numerical Results

0 5 10 15 20 25 30 3510

−25

10−20

10−15

10−10

10−5

100

Error Reduction for n =33

Iterations

log(

|u|/|

u 0|)

V(1,0)V(1,1)V(1,2)V(2,2)W(1,1)W(1,2)W(2,2)

Solving PDEs with Multigrid Methods – p.21

Page 30: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Numerical Results

0 5 10 15 20 25 30 3510

−25

10−20

10−15

10−10

10−5

100

Error Reduction for n =65

Iterations

log(

|u|/|

u 0|)

V(1,0)V(1,1)V(1,2)V(2,2)W(1,1)W(1,2)W(2,2)

Solving PDEs with Multigrid Methods – p.22

Page 31: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Numerical Results

0 5 10 15 20 25 30 3510

−25

10−20

10−15

10−10

10−5

100

Error Reduction for n =129

Iterations

log(

|u|/|

u 0|)

V(1,0)V(1,1)V(1,2)V(2,2)W(1,1)W(1,2)W(2,2)

Solving PDEs with Multigrid Methods – p.23

Page 32: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Complications

Difficult to work out appropriate interpolation forarbitrary geometries

Some problems don’t have associated geometry (e.g.graph problems)

Linear interpolation is not optimal across materialboundaries (discontinuities in PDE coefficients)

Linear interpolation is inefficient in cases of stronganisotropy or convection

Solving PDEs with Multigrid Methods – p.24

Page 33: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Philosophy

All of the above problems can be solved by tweakingthe standard, geometric multigrid algorithm

Different smoothers and different interpolations can beused (although theory may no longer hold)

Each problem requires its own tuning

Instead, we concentrate on developing an algorithmwhich is nearly-optimal on a larger number of problems

Solving PDEs with Multigrid Methods – p.25

Page 34: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Algebraic Multigrid

In the absence of geometric information, choices canbe made based on algebraic information

Interpolation and coarse grids must be chosen basedon the ability to interpolate a suitable correction

Coarse grid operators must be chosen based on thefine-grid operator - Galerkin coarsening may be themost natural choice

Solving PDEs with Multigrid Methods – p.26

Page 35: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Smoothness

Without geometric information, we can’t talk about avector being “smooth” in the same sense

We define a vector, � , to be algebraically smooth if it isslow to be reduced by relaxation on

��� � �

For a stationary iteration

� � � �

, this means that� � � �� � � � , or

� ��� � in some measure

In practice, ask that

� � � � �� � �

� � � � �

�, so ask that

� � ���� ��� � �� � �

In general, we think of � as being algebraically smooth if��� � in some measure

Solving PDEs with Multigrid Methods – p.27

Page 36: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Influence and Dependence

Classical (Ruge-Stueben) AMG focuses on how onegridpoint affects another

Two gridpoints,

and

are said to be stronglyconnected if �� � is large

In particular, for fixed

� � �

, we say�

strongly influences

if

� �� � � � � � � �� �

� � � �

We say

strongly depends on

if

� � � � � � � � � �� �

� �� �

Solving PDEs with Multigrid Methods – p.28

Page 37: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Coarsening Heuristics

An good choice of a coarse grid is one which can beeffectively used to complement relaxation

That is, we want to choose a coarse grid to allow us tocorrect the algebraically smooth components on thefine grid

Ideally, to interpolate to a point�

, we would want to havevalues at all points that it strongly depends on

In practice, this would yield far too many coarse-gridpoints

Instead, we say that for each point

that stronglyinfluences

, either�

is a coarse grid point or it is itselfstrongly dependent on one coarse-grid neighbour of

Solving PDEs with Multigrid Methods – p.29

Page 38: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Coarsening Heuristics

We must also, however, balance the desire for a goodinterpolation with the need to have a small coarse-grid

To do this, we insist that the set of coarse points is amaximal subset of the fine-grid such that no coarse-gridpoint strongly depends on another coarse-grid point

Implementing these heuristics is accomplished using acolouring algorithm

Solving PDEs with Multigrid Methods – p.30

Page 39: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Defining Interpolation

For each fine-grid point,

, we want to interpolate itsvalues from neighbouring coarse-grid points

Solving PDEs with Multigrid Methods – p.31

Page 40: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

�, the Neighbourhood of

Coarse Grid Points

Fine Grid Points

Solving PDEs with Multigrid Methods – p.32

Page 41: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Defining Interpolation

For each fine-grid point,

, we want to interpolate itsvalues from neighbouring coarse-grid points

We consider an interpolation operator that must beaccurate for algebraically smooth components, so westart by considering

��� � � � �

, or

�� � � � � �� � ���

�� � � � � � ��

�� �

Must get rid of connections to points

� ��

Solving PDEs with Multigrid Methods – p.33

Page 42: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Defining Interpolation

Points

� �� can be either strongly or weaklyconnected to

If

is weakly connected, it isn’t important ininterpolation, so collapse to the diagonal (i.e. consider

� � � � )

If

is strongly connected, then we’ve ensured it isstrongly dependent on something in

��

So, approximate � by a weighted average of � �� � ��

� �� � ��

� � � �

� � ��

� �

Solving PDEs with Multigrid Methods – p.34

Page 43: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Theoretical Aspects

The AMG iteration is still stationary

Relies implicitly on properties of M-matrices orpositive-type matrices

Convergence theory much harder

Still a

� ��

or

� � �� ��

solver

Solving PDEs with Multigrid Methods – p.35

Page 44: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Improvements

Resulting algorithm can easily handle jumps incoefficients

No need to know underlying geometry

Can be adapted to handle anisotropy

Can be modified to handle more complicated problems,e.g. Elasticity, Stokes Flow, Maxwell’s Equations,Hyperbolic PDEs, . . .

Solving PDEs with Multigrid Methods – p.36

Page 45: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Numerical Results

We start with 2 test problems on

� �� � � �

, both frombilinear FE discretizations

Problem 1 is Poisson with pure Dirichlet BoundaryConditions

Problem 2 is � � � � � �� ��� � � �� � �with Dirichlet BCs

on the left and right and Neumann BCs on top andbottom, and

� � � �� �

� � � � �� � ��� ��

� �

�otherwise

Solving PDEs with Multigrid Methods – p.37

Page 46: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Numerical Results

Convergence Factors for AMG

Problem 1 Problem 2� �� �

0.09 0.14� �� �

0.10 0.13� � � ��

0.14 0.16� � �� �

0.13 0.15� �� � �

0.15 0.21

Solving PDEs with Multigrid Methods – p.38

Page 47: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Complications

Each new type of problem requires a new adaptation

Coupled Systems become complicated - should tuneAMG to each piece of the system

Very hard to predict what tuning will be necessary

Many knobs to turn

Solving PDEs with Multigrid Methods – p.39

Page 48: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

AMG Assumptions

Algebraic Multigrid methods attempt to mimic geometricmethods in their choices of interpolation operators andcoarse grids

Typically use a fixed, pointwise relaxation scheme

Classical (Ruge-Stueben) AMG assumes thatalgebraically smooth error varies slowly along strongconnections

This is equivalent to assuming that algebraically smootherror is essentially (locally) constant

Solving PDEs with Multigrid Methods – p.40

Page 49: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Importance of Interpolation

Complementarity is key in multigrid - error componentsthat are not quickly reduced by relaxation must bereduced by coarse-grid correction

A component can only be corrected from thecoarse-grid if it is properly interpolated from that grid

Interpolation must be most accurate for componentsthat relaxation is slowest to resolve

Solving PDEs with Multigrid Methods – p.41

Page 50: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Choosing Interpolation

Seek to define interpolation to fit an algebraicallysmooth vector

Algebraic smoothness means

��� � � � �

or �� � � � � �� � ��

�� � � �

� �� � ���

�� � � � � � ��

�� �

To define interpolation, need to collapse connectionsfrom

�� to

��

Solving PDEs with Multigrid Methods – p.42

Page 51: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Choosing Interpolation . . .

Seek to define interpolation to fit an algebraicallysmooth vector

If

� �� is connected to a set of

� �� , we want to write

� �� � ��

� � � �

Then, using the definition of algebraic smoothness, wehave

�� � � � � �� � ��

� � � � � � � �� � � ��

�� � � � �

� �� � ��

�� � � � ��

�� � � � �

Solving PDEs with Multigrid Methods – p.43

Page 52: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Choosing ��

If we have a vector, � � �

, such that

� � � � � � �and so

� � � �

� �� � ��

� � � � �

� �� � � ��

� � � � �

Eliminate extra terms by replacing matrix entry � witharbitrary

� � � �

� �� � ��

� � � � �

Solving PDEs with Multigrid Methods – p.44

Page 53: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Choosing � � . . .

Taking the value of

� given here, we can write

� � �

� �� � ��

� ��

� � �

� �� � ��

� � � � �

�� � ��

� �� � � �

��

� � �

Use this formula to collapse all algebraically smootherror

� �� � ��

�����

� � � � �

�� � ��

� �� � � �

��

�����

� � �� � ��

� � � �

Solving PDEs with Multigrid Methods – p.45

Page 54: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Adaptive Interpolation

So, we define interpolation to a fine grid point

as

� � � �� � ��

�� � � � ��

�� � �

�� �

� �

� �� � ���

�� � � � ��

�� �����

� � � � �

�� � ��

� �� � � �

��

�����

�� �

� �

Solving PDEs with Multigrid Methods – p.46

Page 55: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Relation to Ruge-Stueben

Ruge-Stueben AMG takes � � �

� �

Substituting this into our interpolation formula gives

� � � �� � ��

�� � � � ��

�� �����

� �

�� � ��

� �������

�� �

� �

This is the same as the AMG strong-connection-onlyinterpolation formula

Solving PDEs with Multigrid Methods – p.47

Page 56: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Scaling Invariance

Combining our interpolation with pointwise relaxationleads to an algorithm that is nearly insensitive to anydiagonal scaling

In particular, if

is scaled to

� � �

, and � � �

is scaled to

� � � � � �

, then we achieve the same convergence ratesfor the scaled problem as for the unscaled problem

Difficulty lies in generating the scaled vector

� � � � � �

Solving PDEs with Multigrid Methods – p.48

Page 57: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Determining

� � �

Choosing a good interpolation operator requires a goodapproximation, � � �

, to the algebraically-smoothestvector of a given matrix

Such an approximation could be determined bysufficient relaxation on a random initial guess with azero right-hand side

In practice, this requires too much computation to befeasible

Instead, we use preliminary V-cycles to accelerate theexposure of components for which

� � �

Solving PDEs with Multigrid Methods – p.49

Page 58: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Test Problems

We start with 2 test problems on

� �� � � �

, both frombilinear FE discretizations

Problem 1 is Poisson with pure Dirichlet BoundaryConditions

Problem 2 is � � � � � �� ��� � � �� � �with Dirichlet BCs

on the left and right and Neumann BCs on top andbottom, and

� � � �� �

� � � � �� � ��� ��

� �

�otherwise

Solving PDEs with Multigrid Methods – p.50

Page 59: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Test Problems

The second pair of problems come from diagonallyscaling Problems 1 and 2

To scale, we use the node-wise scaling function

� � � �� � � � � � � � �� �� � � � � � � � � � �

This function gives variable scaling on each node, butdoes not change its character with

Solving PDEs with Multigrid Methods – p.51

Page 60: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Numerical Results

Coarse grids are chosen geometrically, based onfull-coarsening

Coarse grid operators are determined by the Galerkincondition.

Setup involves creation of a preliminary V-cycle, andimprovement on that cycle

Compute asymptotic convergence factor, then use thisto estimate number of V(1,1)-cycles needed to reduceerror by

� � � �

From number and cost of cycles (

�� work units), can

estimate total cost of solution stage

Solving PDEs with Multigrid Methods – p.52

Page 61: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

AMG-Equivalent Results

By fixing � � �

� �

, we can generate results indicative ofAMG’s performance

Work Units for standard AMG

Problem 1 Problem 2 Problem 3 Problem 4� �� �

12.9 14.5 1297 59.4� �� �

13.4 15.6 4075 112.1� � � ��

13.6 14.9 6122 218.7� � �� �

13.8 16.4 6122 430.6� �� � �

13.9 15.2 7350 858.6� � � � � �

13.9 16.7 7350 1656

Solving PDEs with Multigrid Methods – p.53

Page 62: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Adapted Interpolation Results

Work Units using adapted AMG

Problem 1 Problem 2 Problem 3 Problem 4� �� �

12.9 14.9 12.9 14.9� �� �

13.4 15.6 13.5 15.3� � � ��

13.6 15.2 13.7 15.3� � �� �

13.8 16.4 13.8 16.4� �� � �

13.9 15.2 13.9 15.2� � � � � �

13.9 16.7 13.9 16.8

Solving PDEs with Multigrid Methods – p.54

Page 63: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Convergence Factors

101

102

103

0

0.2

0.4

0.6

0.8

1

1/h

Asy

mpt

otic

Con

verg

ence

Fac

tor

Convergence Factor vs 1/h

AMG Laplaceα AMG LaplaceAMG Diffusionα AMG Diffusion

Solving PDEs with Multigrid Methods – p.55

Page 64: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Full Adaptivity

Method still relies on having a good representative of analgebraically smooth vector

If known a priori, then use it

If not, then develop the representative using the methodand adapt interpolation (and possibly coarse grids) asinformation is available

Solving PDEs with Multigrid Methods – p.56

Page 65: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Relation to PCG

A simple version of the fully adaptive procedure mimicsPCG

Given � , relax on

� � �

, so � � � �Define

� � � � � � , perform (two-level) multigrid correction

Error after correction is

� � � � � � � � �� � � � � � � � �� �� � � �

Notice

� � � � � � �� � � � � � � � �� �

is an

-orthogonalprojection onto the space

� � ��

.

Solving PDEs with Multigrid Methods – p.57

Page 66: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Relation to PCG

At step

:Relax on

� � �

with the current multigrid and initialguess � � , so

� � � � � � � � � � � � � � � � � � �

Define

� � � � � �� � ,

� � � � � � � � � � � �

New multigrid cycle is given by error propagationmatrix

� � � � � � �� �

� is an

-orthogonal projection onto

� � � � �� � � �� � � �� � ��

Solving PDEs with Multigrid Methods – p.58

Page 67: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Improvement on PCG

Instead of mimicking PCG, we define

so that thecoarse-grid system (

� � � �

) retains properties of thefine-grid system

The vector now becomes an indicator of error that isboth algebraically smooth and not sufficientlyaddressed by coarse-grid correction

Updating interpolation is done so that it remainsaccurate for � through � � , but also addresses

Results to date indicate that

need be no larger thanthe null-space of the differential operator

Solving PDEs with Multigrid Methods – p.59

Page 68: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Summary

For regular grids, with smooth PDE coefficients,geometric MG works well

For irregular grids, discontinuous coefficients, algebraicMG works well

For coupled systems, exotic bases, adaptive algebraicMG offers hope

All are

� ��

algorithms, constants are non-trivial, butnot prohibitive

Solving PDEs with Multigrid Methods – p.60

Page 69: Solving PDEs with Multigrid Methodsta.twi.tudelft.nl/mf/users/maclachl/research/SMpims2003.pdf · Without geometric information, we can’t talk about a vector being “smooth”

Current and Future Work

Developing a theory for self-correcting AMG

Developing a fully-algebraic version

Investigating better coarsening procedures (CompatibleRelaxation)

Natural extension to systems

Alternate smoothers

Solving PDEs with Multigrid Methods – p.61