Optimizing the perfectly matched layer by F. Collino, P . B. Monk - - PowerPoint PPT Presentation

optimizing the perfectly matched layer
SMART_READER_LITE
LIVE PREVIEW

Optimizing the perfectly matched layer by F. Collino, P . B. Monk - - PowerPoint PPT Presentation

Optimizing the perfectly matched layer by F. Collino, P . B. Monk Norbert Stoop Optimizing the perfectly matched layer p. 1 Overview PML constructed using a change of variables Cartesian coordinates (review) Comparison to Brengers


slide-1
SLIDE 1

Optimizing the perfectly matched layer

by F. Collino, P . B. Monk

Norbert Stoop

Optimizing the perfectly matched layer – p. 1

slide-2
SLIDE 2

Overview

PML constructed using a change of variables Cartesian coordinates (review) Comparison to Bérenger’s approach in cylindrical coordinates Discretization of PMLs and resulting effects Optimization of cartesian PMLs Effects of boundary conditions Framework: Planar Maxwell equations

Optimizing the perfectly matched layer – p. 2

slide-3
SLIDE 3

PML construction - Overview

We have already seen that a PML can be understood in two ways: Split the magnetic field and introduce a damping term σ (Bérenger’s approach) Perform a complex change of variables We will see:

  • 1. cartesian case: both are equivalent
  • 2. cylindrical coordinates: inequivalent, efficiency differs

Optimizing the perfectly matched layer – p. 3

slide-4
SLIDE 4

Planar PML for cartesian coords

Consider a TE wave (Ez = 0) in free space (ǫ0 = µ0 = c = 1). The two-dimensional Maxwell equations then reduce to: ∂Hz ∂t = ∂Ex ∂y − ∂Ey ∂x ∂Ey ∂t = −∂Hz ∂x , ∂Ex ∂t = ∂Hz ∂y Suppose we’d like to construct a 2D PML for x > 0:

x x=0 y PML z E E

x y

Hz

Optimizing the perfectly matched layer – p. 4

slide-5
SLIDE 5

Bérenger PML for cart. coords

Bérenger:

  • 1. Split H field: Hz = Hzx + Hzy such that the MW equations can

be written as: ∂Hzx ∂t = −∂Ey ∂x , ∂Hzy ∂t = ∂Ex ∂y ∂Ey ∂t = −∂Hz ∂x , ∂Ex ∂t = ∂Hz ∂y

  • 2. Introduce damping term σ(x) (σ(x) = 0 for x < 0) in all

equations which contain x-derivatives: ∂Hzx ∂t + σ(x)Hzx = −∂Ey ∂x , ∂Hzy ∂t = ∂Ex ∂y ∂Ey ∂t + σ(x)Ey = −∂Hz ∂x , ∂Ex ∂t = ∂Hz ∂y

Optimizing the perfectly matched layer – p. 5

slide-6
SLIDE 6

Bérenger PML for cart. coords II

  • 3. In time harmonic regime,

Ei(x, y, t) = ˆ Ei(x, y) exp(−iωt), Hzi(x, y, t) = ˆ Hzi(x, y) exp(−iωt), i = x, y , the PML equations can be written as: −iω ˆ Hz = ∂ ˆ Ex ∂y − 1 1 + iσ/ω ∂ ˆ Ey ∂x , −iω ˆ Ey = − 1 1 + iσ/ω ∂ ˆ Hz ∂x , −iω ˆ Ex = ∂ ˆ Hz ∂y

Optimizing the perfectly matched layer – p. 6

slide-7
SLIDE 7

Change of variables technique

  • 1. Start again in time harmonic regime, but don’t split fields:

Ei(x, y, t) = ˆ Ei(x, y) exp(−iωt), Hz(x, y, t) = ˆ Hz(x, y) exp(−iωt), i = x, y

  • 2. In frequency domain, the Maxwell equations become:

−iω ˆ Hz = ∂ ˆ Ex ∂y − ∂ ˆ Ey ∂x , −iω ˆ Ey = −∂ ˆ Hz ∂x , −iω ˆ Ex = ∂ ˆ Hz ∂y

  • 3. Change of variables: x → x′ = x + i

ω

x

0 σ(s)ds

Optimizing the perfectly matched layer – p. 7

slide-8
SLIDE 8

Change of variables technique II

If we use the chain rule to replace x′ by x, we get:

−iω ˆ Hz = ∂ ˆ Ex ∂y − 1 1 + iσ/ω ∂ ˆ Ey ∂x , −iω ˆ Ey = − 1 1 + iσ/ω ∂ ˆ Hz ∂x , −iω ˆ Ex = ∂ ˆ Hz ∂y

This is exactly the Bérenger PML in the frequency domain: Both approaches are equivalent! Practical computation: truncate PML. We impose Dirichlet BC: ˆ Ey(x = δ, y, t) = 0 = ⇒ R = e−2ikx

R δ

0 (1+iσ(s)/ω)ds

Note: Pick σ large to minimize R (if kx ∈ R).

Optimizing the perfectly matched layer – p. 8

slide-9
SLIDE 9

PML for curvilinear coordinates

Do Bérenger’s and the complex change of variables approach also result in equivalent PMLs for non-Cartesian coordinate system? Maxwell’s equations in polar coordinates (ρ, θ): ∂Hz ∂t = 1 ρ ∂Eρ ∂θ − ∂ ∂ρ(ρEθ)

  • ∂Eρ

∂t = 1 ρ ∂Hz ∂θ , ∂Eθ ∂t = −∂Hz ∂ρ

Assume the layer starts at ρ = a, so σ(ρ) > 0 for ρ > a and 0 otherwise.

PML ρ=a z eρ eθ

Optimizing the perfectly matched layer – p. 9

slide-10
SLIDE 10

Change of variables for polar coords

Start in the frequency domain. Let ρ′ = ρ + i

ω

ρ

a σ(s)ds and introduce

d(ρ) = 1 + iσ(ρ) ω and ¯ d(ρ) = 1 + i 1 ρω ρ

a

σ(s)ds such that ρ′ = ρ ¯ d and

dρ′ dρ = d. We thus have in freq. domain:

−iωHz = 1 ¯ dρ ∂Eρ ∂θ − 1 d ∂ ∂ρ( ¯ dρEθ)

  • −iωEρ = 1

¯ dρ ∂Hz ∂θ , −iωEθ = −1 d ∂Hz ∂ρ Note: 1

d ∂ ∂ρ = ∂ ∂ρ′ = ∂ ∂( ¯ dρ)

Optimizing the perfectly matched layer – p. 10

slide-11
SLIDE 11

Change of variables for polar coords II

Using ˜ Eρ = dEρ and ˜ Eθ = ¯ dEθ we get the traditional Helmholtz equations: −iωd ¯ dHz = 1 ρ

  • ∂ ˜

Eρ ∂θ − ∂ ∂ρ(ρ ˜ Eθ)

  • −iω

¯ d d ˜ Eρ = 1 ρ ∂Hz ∂θ , −iω d ¯ d ˜ Eθ = −∂Hz ∂ρ We can return to time domain by introducing E∗

ρ = 1/d ˜

Eρ, E∗

θ = 1/ ¯

d ˜ Eθ, H∗

z = ¯

dHz and ¯ σ(ρ) = 1

ρ

ρ

a σ(s)ds:

∂H∗

z

∂t +σH∗

z = 1

ρ ∂ ˜ Eρ ∂θ − ∂ ∂ρ (ρ ˜ Eθ) ! , ∂E∗

ρ

∂t +¯ σE∗

ρ = 1

ρ ∂Hz ∂θ , ∂E∗

θ

∂t +σE∗

θ = − ∂Hz

∂ρ ∂ ˜ Eρ ∂t = ∂E∗

ρ

∂t + σE∗

ρ,

∂ ˜ Eθ ∂t = ∂E∗

θ

∂t + ¯ σE∗

θ ,

∂Hz ∂t + ¯ σHz = ∂H∗

z

∂t

Optimizing the perfectly matched layer – p. 11

slide-12
SLIDE 12

Comparison to Bérenger’s PML

In order to compare the two constructions, assume that ∂Hz

∂θ = 0 and

choose Eρ = 0. = ⇒ ∂H∗

z

∂t + σH∗

z = −1

ρ ∂ ∂ρ(ρ ˜ Eθ), ∂E∗

θ

∂t + σE∗

θ = −∂Hz

∂ρ ∂ ˜ Eθ ∂t = ∂E∗

θ

∂t + ¯ σE∗

θ,

∂Hz ∂t + ¯ σHz = ∂H∗

z

∂t Bérenger’s construction would yield: ∂Hz ∂t + σHz = −1 ρ ∂ ∂ρ(ρEθ), ∂Eθ ∂t + σEθ = −∂Hz ∂ρ They are clearly different! Question: How do they perform qualitatively?

Optimizing the perfectly matched layer – p. 12

slide-13
SLIDE 13

Comparison to Bérenger’s PML II

Think of the following setup:

PML

1 a δ

We take the source to be on the unit disc, At ρ = 1: Eθ = sin(2πt) for 0 ≤ t ≤ 1 and 0 otherwise, and choose a quadratic ρ-dependance for σ: σ(ρ) = σ0(ρ − a)2/δ2, for ρ ≥ a

Optimizing the perfectly matched layer – p. 13

slide-14
SLIDE 14

Comparison to Bérenger’s PML III

Bérenger Change of variables Bérenger Change of variables 1.0 0.5 0.0

  • 0.5
  • 1.0

Magnetic field 1.0 2.0 3.0 4.0 0.0 Time σ = 50 1.0 2.0 3.0 4.0 0.0 Time 1.0 0.5 0.0

  • 0.5
  • 1.0

Magnetic field σ = 100 1.0 2.0 3.0 4.0 0.0 Time 1.0 0.5 0.0

  • 0.5
  • 1.0

Magnetic field σ = 100 a = 1.02 a = 2.0 a = 2.0

Parameters: N = 100 (number of points) n = 10 (number of points in PML) h = (a-1)/N (spacing) δ = n h (layer thickness) σ(ρ) = σ (ρ−a) / δ

l l

All plots show H at x = h/2 (ie. close to the scatterer)

z 2 2

Optimizing the perfectly matched layer – p. 14

slide-15
SLIDE 15

Conclusions

The change of variables PML gives a much more accurate (discrete) absorbing layer than Bérenger’s construction in polar coordinates. Unlike Bérenger’s PML, the change of variables technique allows tuning of PMLs situated very close to the scatterer, yet producing very good absorption. The quality of our PML still depends on a number of parameters (including discretization params) which need to be chosen wisely.

= ⇒ Is there a way to quantify the effects of discretization?

Furtermore, can we derive optimal PML parameters from there?

Optimizing the perfectly matched layer – p. 15

slide-16
SLIDE 16

Effects of discretization

For simplicity, we restrict ourselves to the planar, two-dimensional

  • case. Starting from Bérenger’s construction, we avoid the split

fields by defining: ˜ Ex = (1 + iσ/ω) ˆ Ex, ˜ Ey = ˆ Ey, ˜ Hz = ˆ Hz Now we have again a traditional curl-curl structure: −iω(1 − iσ/ω) ˜ Hz = ∂ ˜ Ex ∂y − ∂ ˜ Ey ∂x −iω(1 − iσ/ω) ˜ Ey = −∂ ˜ Hz ∂x , − iω 1 + iσ/ω ˜ Ex = ∂ ˜ Hz ∂y

Optimizing the perfectly matched layer – p. 16

slide-17
SLIDE 17

Discretization of planar PML

We use

H

~

l-1/2, j+1/2

H

~

l+1/2, j+1/2

H

~

l+1/2, j-1/2

E

~

l-1, j+1/2

E

~

l-1/2, j

E

~

l+1/2, j

E

~

l+1/2, j-1

E

~

l+1, j-1/2

E

~

l+1, j+1/2

E

~

l+1/2, j+1

E

~

l, j+1/2

l=0 l-1 l l+1 l=nl j-1 j j+1

a standard Yee scheme and let σ(x) be piecewise constant with jumps at x = lh, l = 0, 1, 2, . . .. We denote by σl+1/2 the value of σ in the interval (lh, (l + 1)h). We then arrive at the following discretized equations:

−i ω γl+1/2 ˜ El+1/2,j = ˜ Hl+1/2,j+1/2 − ˜ Hl+1/2,j−1/2 h −iω γl+1/2 + γl−1/2 2 ˜ El,j+1/2 = − ˜ Hl+1/2,j+1/2 − ˜ Hl−1/2,j+1/2 h −iωγl+1/2 ˜ Hl+1/2,j+1/2 = ˜ El+1/2,j+1 − ˜ El+1/2,j h − ˜ El+1,j+1/2 − ˜ El,j+1/2 h with γl+1/2 = 1 + iσl+1/2/ω.

Optimizing the perfectly matched layer – p. 17

slide-18
SLIDE 18

Discretization of planar PML II

To make life easier: Assume ˜ Hl+1/2,j+1/2 = eiκ2(j+1/2)h ˜ Hl+1/2 and eliminate the various ˜ E’s to get an expression for ˜ H only: −h2ω2λγl+1/2 ˜ Hl+1/2 = 2 γl+3/2 + γl+1/2 ( ˜ Hl+3/2 − ˜ Hl+1/2) − 2 γl+1/2 + γl−1/2 ( ˜ Hl+1/2 − ˜ Hl−1/2) where we defi ned λ = 1 −

4 h2ω2 sin2(κ2h/2).

To fi nd the reflection coeffi cient due to the discretization, we’ll use σ = const, thus γ = γl+1/2 = const and use the plain wave ansatz ˜ Hl+1/2 = eiκ1h(l+1/2) + Re−iκ1h(l+1/2) for l ≤ −1 (x < 0) ˜ Hl+1/2 = Teiκσ

1 h(l+1/2)

for l ≥ 0 (inside PML)

Optimizing the perfectly matched layer – p. 18

slide-19
SLIDE 19

Discretization of planar PML III

Using this ansatz to solve the discrete ˜ H equations at the interface (corresponding to x = 0), we can derive an expression for the reflection coeffcient R for an infinite layer: R = 1 16(ω2 − κ2

2)σ(σ − 2ωi)

ω2 h2 + O(h4) Discretizing the PML has introduced a reflection from the interface at x = 0. The layer is thus no longer perfectly matched . As R is of magnitude σ2h2, we cannot choose σ arbitrarily large anymore. Before dealing with an optimal choice of σ, we will consider the case of a finite layer.

Optimizing the perfectly matched layer – p. 19

slide-20
SLIDE 20
  • Refl. coeff. for fi nite, discrete PMLs

Suppose a PML thickness of δ = nl · h. The discretized equations at l = nl − 1 will require the value of the boundary data. If we choose Dirichlet BC, we can set ˜ Enl,j+1/2 = 0, ∀j. Remember: −iωγ ˜ Enl,j+1/2 = − ˜ Hnl+1/2,j+1/2 − ˜ Hnl−1/2,j+1/2 h , −h2ω2λγ ˜ Hl+1/2 = 1 γ ( ˜ Hl+3/2 − ˜ Hl+1/2) − 1 γ ( ˜ Hl+1/2 − ˜ Hl−1/2) Given ˜ H−3/2, we can therefore compute

  • H = ( ˜

H−1/2, ˜ H1/2, . . . , ˜ Hnl−1/2)⊤

Optimizing the perfectly matched layer – p. 20

slide-21
SLIDE 21
  • Refl. coeff. for fi nite, discrete PMLs II

It is easier to calculate H in terms of the matrix equation M H = − ˜ H−3/2 F where F = (1, 0, · · · , 0)⊤ and M =

B B B B B B B B B @ c−1/2 d1/2 · · · d1/2 c1/2 d3/2 · · · d3/2 c3/2 d5/2 · · · ... ... ... · · · dnl−3/2 cnl−1/2 1 C C C C C C C C C A

with cj+1/2 = h2ω2λγj+1/2 − 2 γj+3/2 + γj+1/2 − 2 γj+1/2 + γj−1/2 , −1 ≤ j ≤ nl − 2 dj+1/2 = 2/(γj+1/2 + γj−1/2), 0 ≤ j ≤ nl − 1, cnl−1/2 = h2ω2λγnl−1/2 − 2/(γnl−1/2 + γnl−3/2)

Optimizing the perfectly matched layer – p. 21

slide-22
SLIDE 22
  • Refl. coeff. for fi nite, discrete PMLs III

An expression for the reflection coefficient is then given by Rdis = −1 + F ⊤ · M −1 · F · e−iκ1h 1 + F ⊤ · M −1 · F · eiκ1h Numerical results: We choose δ = nlh = 2π/ω (layer thickness = 1 wavelength) σ(x) = σ0(x/δ)2, for x > 0 (parabolic law) σ0 = 3 2δ log( 1 R0 ) N = 2π/(ωh) (number of points per wavelength) The choice of σ0 ensures that the reflection coefficient for the continuous model at normal incidence is just given by R0 (Remember: Rcont = e−2ikx

R δ

0 (1+iσ(s)/ω)ds for continuous models).

Optimizing the perfectly matched layer – p. 22

slide-23
SLIDE 23

Numerical results I

10 20 30 40 0.0 N 50 60

  • 10
  • 20
  • 30
  • 40
  • 50
  • 60
  • 70
  • 80
  • 90

Reflection coefficient (in db) 10 20 30 40 0.0 N 50 60

  • 10
  • 20
  • 30
  • 40
  • 50
  • 60
  • 70
  • 80
  • 90

Reflection coefficient (in db) R = 10-2 R = 10-3 R = 10-4 Normal incidence R = 10-2 R = 10-3 R = 10-4 Angle of incidence: π / 4

Optimizing the perfectly matched layer – p. 23

slide-24
SLIDE 24

Numerical results II

0.5 1.0 0.0 Angle of incidence in radians 1.5 2.0

  • 10
  • 20
  • 40
  • 50
  • 30

Reflection coefficient (in db) N = 5

  • 10
  • 20
  • 30
  • 40
  • 50
  • 60
  • 70
  • 80
  • 90

Reflection coefficient (in db) 0.5 1.0 0.0 Angle of incidence in radians 1.5 2.0 N = 10 N = 20 Exact coeff. N = 5 N = 10 N = 20 Exact coeff. R = 10-2 R = 10-4

Optimizing the perfectly matched layer – p. 24

slide-25
SLIDE 25

Conclusions

The numerical refl ection coeffi cient convergesto the derived value for the continuous model when N is increased. The convergence appears to be slower for smaller R0 (ie. for larger σ0). For fi xed N, the largest value of σ0 does not necessarily result in the smallest refl ection coeffi cient. Question: Can we choose σ in a better way in order to

  • ptimize the effects introduced by discretization?

Optimizing the perfectly matched layer – p. 25

slide-26
SLIDE 26

Optimization of the cart. PML

For practical reasons: For a given N (number of points per wavelength) and nl (number of points in the layer), what is the best σ to use? = ⇒ Introduce (discrete) σ:

  • σ = (hσ1/2, hσ3/2, . . . , hσnl−1/2)
  • σ is then found by minimizing R for all angles of incidence. We can - as an

example - emphasize normal incidence by a cos θ weight, thus minimize 1 100

100

  • q=1

cos(θq)|R(θ, N, σ)|2, where θq = π(q − 1)/200.

Optimizing the perfectly matched layer – p. 26

slide-27
SLIDE 27

Numerical results

  • 20
  • 40
  • 60
  • 80
  • 100

Reflection coefficient (in db) 0.5 1.0 0.0 Angle of incidence in radians 1.5 2.0

  • ptimized σ

quadratic σ Exact coeff. , quadr. σ 2 4 6 8 10 10 20 30 40 50 60 x σ

  • ptimized σ

quadratic σ

Optimal σ profi le is not quadraticanymore. The optimized σ improves the average reflection coeffi cient. The improvement is best for non-normal incidence.

Optimizing the perfectly matched layer – p. 27

slide-28
SLIDE 28

Effects of boundary conditions

We have already seen: Dirichlet BCs lead to additional reflections. Idea: Use absorbing boundary conditions (ABC) at the end of the PML layer: ˜ Ey = ˜ Hz

  • n x = δ

(Silver-Müller radiation cond.) ⇒ It will clearly influence ˜ Hnl−1/2. Start with the Maxwell equation at the layer end x = δ = nlh: (−iω + σ(x)) ˜ Ey = −∂ ˜ Hz ∂x Using a special FD scheme, it can be discretized in the following form −iωγnl−1/2 ˜ Enl,j+1/2 = − ˜ Hnl,j+1/2 − ˜ Hnl−1/2,j+1/2 h/2 .

Optimizing the perfectly matched layer – p. 28

slide-29
SLIDE 29

Effects of boundary conditions II

But, as imposed by our boundary conditions, ˜ Hnl,j+1/2 = ˜ Enl,j+1/2, this simplifi es to: −iωh γnl−1/2 2 + i ωh

  • ˜

Enl,j+1/2 = ˜ Hnl−1/2,j+1/2 We can now proceed as with Dirichlet BCs: Split away the j part and defi ne H = ( ˜ H−1/2, · · · , ˜ Hnl−1/2) and M such that M H = − ˜ H−3/2 F. Due to our new boundary conditions, only the last line in M will change, corresponding to the different expression for ˜ Hnl−1/2. The reflection coeffi cient, however, is still given by the same formula derived earlier: R = −1 + F ⊤ · M −1 · F · e−iκ1h 1 + F ⊤ · M −1 · F · eiκ1h

Optimizing the perfectly matched layer – p. 29

slide-30
SLIDE 30

Numerical results

10 20 30 40 0.0 N 50 60

  • 10
  • 20
  • 30
  • 40
  • 50
  • 60
  • 70
  • 80
  • 90

Reflection coefficient (in db) 10 20 30 40 0.0 N 50 60

  • 10
  • 20
  • 30
  • 40
  • 50
  • 60
  • 70
  • 80
  • 90

Reflection coefficient (in db) R = 10-2 R = 10-3 R = 10-4 Normal incidence R = 10-2 R = 10-3 R = 10-4 Angle of incidence: π / 4

Optimizing the perfectly matched layer – p. 30

slide-31
SLIDE 31

Numerical results II

0.5 1.0 0.0 Angle of incidence in radians 1.5 2.0

  • 20
  • 40
  • 60
  • 80
  • 100

Reflection coefficient (in db) N = 5 N = 10 N = 20 N = 200 R = 10-2

  • 120

0.5 1.0 0.0 Angle of incidence in radians 1.5 2.0

  • 20
  • 40
  • 60
  • 80
  • 100

Reflection coefficient (in db) N = 5 N = 10 N = 20 N = 200 R = 10-4

  • 120

Optimizing the perfectly matched layer – p. 31

slide-32
SLIDE 32

Conclusions

Using ABC’s the refl ection coeffi cient converges to zero with higher accuracy. This is what we expect, since our ABC’s are perfect, at least for normal wave incidence. For parabolic σ, the ABC’s improve the refl ection for waves close to normal incidence. Not shown: Optimizing σ for ABC’s does not result in a large improvement, compared to the parabolic case. Summarized: Absorbing boundary conditions can be considered an enhancement for parabolic σ, especially for normal incidence.

Optimizing the perfectly matched layer – p. 32

slide-33
SLIDE 33

To come to an end...

We have seen that PMLs can be generalized to curvilinear coordinates using a complex change of variables, which is superior to Bérenger’s construction. the effects of discretization can be quantifi edand we have derived an expression for the refl ection coeffi cient for both, the infi nite and the fi nite layer. in order to improve the (discrete, fi nite) layer, we can

  • ptimize σ. However, the parabolic profi le is almost
  • ptimal.

using ABC’s is worth while for parabolic σ profi les. An

  • ptimized profi le, however, will then not lead to great

improvement.

Optimizing the perfectly matched layer – p. 33

slide-34
SLIDE 34

Questions?

Optimizing the perfectly matched layer – p. 34