Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations...

42
Introduction to Simulation - Lecture 23 Thanks to Deepak Ramaswamy, Michal Rewienski, and Karen Veroy Fast Methods for Integral Equations Jacob White

Transcript of Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations...

Page 1: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

Introduction to Simulation - Lecture 23

Thanks to Deepak Ramaswamy, Michal Rewienski, and Karen Veroy

Fast Methods for Integral Equations

Jacob White

Page 2: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

Outline

Solving Discretized Integral EquationsUsing Krylov Subspace MethodsFast Matrix-Vector Products

Multipole Algorithms Multipole Representation.Basic Hierarchy

Algorithmic ImprovementsLocal ExpansionsAdaptive Algorithms

Computational Results

Page 3: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

v+-2 0 Outside∇ Ψ =

is given on SurfaceΨ

potential

Exterior Problem in Electrostatics

First Kind Integral Equation For Charge:

“Dirichelet Problem”

potential

( ) ( ){

arg

1

'surface

xx xGreen

xCh

sFunction

eD

d

y

S

ensit

σ ′−

′′

Ψ = ∫14243

Page 4: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Resonator Discretized Structure

Computed ForcesBottom View

Computed ForcesTop View

Drag Force in a Microresonator

Courtesy of Werner Hemmert, Ph.D. Used with permission.

Page 5: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Basis Function Approach

Piecewise Constant Basis

3-D Laplace’sEquation

Integral Equation:

( ) 1 if is on panel jj x xϕ =( ) 0 otherwisej xϕ =

Discretize Surface into Panels

Panel j

( ) ( )1

surface

x dx x

x Sσ′

′ ′−

Ψ = ∫

( ) ( ){1 Basis Functions

Represent n

i ii

x xσ α ϕ=

≈∑

Page 6: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

3-D Laplace’sEquation

Basis Function Approach

Centroid Collocation

( ) ( )1

,

,i i

n

c j cj

i j

panel jx G x x dS

A

α=

′ ′Ψ =∑ ∫144424443

( )

( )

11,1 1, 1

,1 ,n

cn

n n n n c

xA A

A A x

α

α

Ψ = Ψ

L L

M O M MM

M O M MM

L L

Put collocation points atpanel centroids

icx Collocation

point

Page 7: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

3-D Laplace’sEquation

Basis Function Approach

Calculating Matrix Elements

Panel j

icx Collocation

point

,1

i

i jpa cnel j x x

A dS ′′−

= ∫

,

i jc centrj

idi

o

Panel Areax x

A−

≈One point quadrature

Approximation

xy

z

t

4

,1 in

0.25*

i jc oi j

j p

Ar ax x

A e= −

≈∑Four point quadrature

Approximation

Page 8: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

3-D Laplace’sEquation

Basis Function Approach

Calculating “Self-Term”

Panel i

icx Collocation

point

,1

i

i ipa cnel i x x

A dS ′′−

= ∫

,

0i i

i ic c

Panel AreaAx x−

14243

One point quadrature

Approximation

xy

z

, is an integrable singularity1

i

i ipanel i cx x

A dS′−

′= ∫

Page 9: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

3-D Laplace’sEquation

Basis Function Approach Calculating “Self-Term”

Tricks of the trade

Panel i

icx Collocation

point

,1

i

i ipa cnel i x x

A dS ′′−

= ∫xy

z

Disk of radius R surrounding

collocation point

,1 1

i ic ci i

disk rest of panel

A dS dSx x x x′ ′− −

′ ′= +∫ ∫

Disk Integral has singularity but has analytic formula

Integrate in two pieces

2

0 0

1 21

i

R

d k cis

dS rdrd Rrx x

π

θ π′

′ = =−∫ ∫ ∫

Page 10: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

3-D Laplace’sEquation

Basis Function Approach Calculating “Self-Term”Other Tricks of the trade

Panel i

icx Collocation

point

Integrand is singular

,1

i

i ipanel i cx x

A dS′

′=−∫

14243xy

z

2) Curve panels can be handled with projection

1) If panel is a flat polygon, analytical formulas exist

Page 11: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

3-D Laplace’sEquation

Basis Function Approach

Galerkin (test=basis)

1,1 1, 1 1

,1 ,

n

n n n n n

A A b

A A b

α

α

=

L L

M O M M M

M O M M M

L L

( )1

,

1n

j panel i panel jj

ii j

x dS dS dSx x

b A

α=

′ ′Ψ =′−∑∫ ∫ ∫14243

14444244443

For piecewise constant Basis

( ) ( ) ( ) ( ) ( )1

,

,n

i j i jj

i ji

x x dS x G x x x dS dS

Ab

ϕ α ϕ ϕ=

′ ′ ′Ψ = ∑∫ ∫ ∫1442443 1444442444443

Page 12: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

3-D Laplace’sEquation

Basis Function Approach

Problem with dense matrix

( )

( )

11,1 1, 1

,1 ,n

cn

n n n n c

xA A

A A x

α

α

Ψ = Ψ

L L

M O M MM

M O M MM

L L

Integral Equation Method Generate Huge Dense Matrices

Gaussian Elimination Much Too Slow!

Page 13: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

( ) ( )( ) ( )

11

10

Tkkjk

k jTj j j

Ar App r p

Ap Ap

++

+=

= −∑

( ) ( )( ) ( )

Tkk

k Tk k

r Ap

Ap Apα =

1k kk kx x pα+ = +

1k kk kr r Apα+ = −

Determine optimal stepsize in kth search direction

Update the solution and the residual

Compute the new orthogonalizedsearch direction

compute kAp For discretized Integral equations, A is dense

The kth step of GCR

The Generalized Conjugate Residual AlgorithmSolving Discretized

Integral Equations

Page 14: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

( ) ( )( ) ( )

11

10

Tkkjk

k jTj j j

Ar App r p

Ap Ap

++

+=

= −∑

( ) ( )( ) ( )

Tkk

k Tk k

r Ap

Ap Apα =

1k kk kx x pα+ = +

1k kk kr r Apα+ = −

Vector inner products, O(n)

Vector Adds, O(n)

O(k) inner products, total cost O(nk)

Algorithm is O(n2) for Integral Equations even though # iters (k) is small!

compute kAp Dense Matrix-vector product costs O(n2)

Complexity of GCR

The Generalized Conjugate Residual AlgorithmSolving Discretized

Integral Equations

Page 15: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

exactly compute kApDense Matrix-vector product costs O(n2)

Fast Matrix Vector Products

The Generalized Conjugate Residual AlgorithmSolving Discretized

Integral Equations

approximately compute kApReduces Matrix-vector product costs to

O(n) or O(nlogn)

Page 16: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 17: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 18: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 19: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 20: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 21: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 22: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 23: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 24: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 25: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 26: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 27: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 28: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 29: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 30: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 31: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 32: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 33: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT1/(# panels)

Page 34: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 35: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 36: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 37: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 38: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 39: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 40: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 41: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

SMA-HPC ©2003 MIT

Page 42: Fast Methods for Integral Equations - MIT OpenCourseWare ... · Fast Methods for Integral Equations Jacob White. ... ϕj (xx)=1 if is on panel j ... R dkis c dS rdrd R xx r

Summary

Solving Discretized Integral EquationsGCR plus Fast Matrix-Vector Products

Multipole Algorithms Multipole Representation.Basic Hierarchy

Algorithmic ImprovementsLocal ExpansionsAdaptive Algorithms

Computational ResultsPrecorrected-FFT Algorithms