emlab 1 the perfectly matched layer (pml). emlab 2 lecture outline review of lecture 12 background...

51
EMLAB 1 The Perfectly Matched Layer (PML)

Upload: hilary-williams

Post on 04-Jan-2016

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

1

The Perfectly Matched Layer (PML)

Page 2: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

2Lecture Outline

• Review of Lecture 12• Background Information• The Uniaxial Perfectly Matched Layer (UPML)• Stretched Coordinate PML (SC‐PML)• Calculating the PML parameters• Incorporating a UPML into Maxwell’s equations

Page 3: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

3

Background

Page 4: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

4Tensors

Tensors are a generalization of a scaling factor where the direction of a vector can be al-tered in addition to its magnitude.

Page 5: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

5Reflectance from a Surface with Loss

Complex refractive index

Reflectance from a lossy surface

10

10

01

01

01

01

0

0

1

1

0

0

1

1

01

01

11

11

11

11

nn

nn

nn

nn

Page 6: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

6Reflection, Transmission and Refraction at an Interface:Isotropic Case

Page 7: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

7Maxwell’s Equations in Anisotropic Media

Maxwell’s curl equations in anisotropic media are:

These can also be written in a matrix form that makes the tensor aspect of μ and ε more obvious.

Page 8: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

8Types of Anisotropic Media

There are three basic types of anisotropic media

isotropic

uniaxial

biaxial

Note: terms only arise in the off-diagonal positions when the tensor is rotated relative to the coordinate system.

Page 9: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

9

There are two ways to incorporate loss into Maxwell’s equations. At very low frequencies and/or for time‐domain analysis, the (εr, σ) system is usually pre-ferred.

σ),ε()ε,ε( rrr vs

At high frequencies and in the frequency‐domain, is usually preferred.)( rr ε,ε

The parameters are related through

Note: It does not make sense to have a complex εr and a conductivity σ.

Page 10: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

10Maxwell’s Equations in Doubly‐Diagonally Anisotropic Media

Maxwell’s equations for diagonally anisotropic media can be written as

We can generalize further by incorporating loss.

Page 11: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

11Scattering at a Doubly‐Diagonal Anisotropic Interface

Refraction into a diagonally anisotropic materials is described by

Reflection from a diagonally anisotropic material is

Page 12: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

12Notes on a Single Interface

• It is a change in impedance that causes reflections

• Snell’s Law quantifies the angle of transmission

• Angle of transmission and reflection does not depend on polarization.

• The Fresnel equations quantify the amount of reflection and transmission

• Amount of reflection and transmission depends on the polarization

Page 13: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

13

The Uniaxial PerfectlyMatched Layer (UPML)

S. Zachary, D. Kingsland, R. Lee, J. Lee, “A Perfectly Matched Anisotropic Absorber for Use as an Absorbing Boundary Condition,” IEEE Trans. on Ant. and Prop., vol. 43,no. 12, pp 1460–1463, 1995.

Page 14: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

14Boundary Condition Problem

If we model a wave hitting some device or object, it will scatter the applied wave into potentially many directions. We do NOT want these scattered waves to reflect from the boundaries of the grid. We also don’t want them to reenter from the other side of the grid (periodic boundaries).

Page 15: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

15Concept of a PML

Page 16: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

16How We Prevent Reflections in Lab

In the lab, we use anechoic foam to absorb outgoing waves.

Page 17: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

17No PAB in Two Dimensions

If we model a wave hitting some device or object, it will scatter the applied wave into po-tentially many directions. Waves at different angles travel at different speeds through a boundary. Therefore, the PAB condition can only be satisfied for one direction, not all di-rections.

Page 18: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

18Absorbing Boundary Conditions

We can introduce loss at the boundaries of the grid!

Page 19: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

19Oops!!

But if we introduce loss, we also introduce reflections from the lossy regions!!

Page 20: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

20

We need to introduce loss to absorb outgoing waves, but we also need to match the im-pedance of the problem space to prevent reflections.

Match the Impedance

Page 21: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

21More Trouble?

By examining the Fresnel equations, we see that we can only prevent reflections from the interface at one frequency, one angle of incident, and one polarization.

Page 22: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

22Anisotropy to the Rescue!!

It turns out we can prevent reflections at all angles and for all polarizations if we allow our absorbing material to be doubly‐diagonally anisotropic.

Page 23: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

23Problem Statement for the PML

Page 24: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

24Designing Anisotropy for Zero Reflection (1 of 3)

We need to perfectly match the impedance of the grid to the impedance of the absorb-ing region. For an absorbing boundary in air, this condition can be thought of as

One easy way to ensure impedance is perfectly matched to air is:

Page 25: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

25Designing Anisotropy for Zero Reflection (2 of 3)

If we choose , then the refraction equation reduces to1bc

These are no longer a function of angle!!

With this choice, the reflection coefficients reduce to

Page 26: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

26

If we further choose a = b , the reflection equations reduce to

Reflection will always be zero regardless of frequency, angle of incidence, or po-larization!!

Designing Anisotropy for Zero Reflection (3 of 3)

Recall the necessary conditions:

Page 27: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

27The PML Parameters (1 of 3)

So far, we have

Thus, we can write our PML in terms of just one parameter sz.

This is for a wave travelling in the +z direction incident on one boundary.

Page 28: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

28The PML Parameters (2 of 3)

We potentially want a PML along all the borders.

These can be combined into a single tensor quantity.

Page 29: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

29The PML Parameters (3 of 3)

The 3D PML can be visualized this way…

Page 30: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

30

Stretched Coordinate Perfectly Matched Layer (SC‐PML)

Page 31: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

31The Uniaxial PMLMaxwell’s equations with uniaxial PML are:

Page 32: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

32

We can bring the PML tensor to the left side of the equations and as-sociate it with the curl operator.

The curl operator is now

Rearrange the Terms

Page 33: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

33

Our new curl operator is

“Stretched” Coordinates

The factors sx, sy, and sz are effectively “stretching” the coordinates, but they are “stretching” into a complex space.

Page 34: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

34

Justification Inside the z‐PML, sx = sy = 1. This is valid everywhere except at the extreme corners of the grid where the PMLs overlap.

This also implies that the UPML and SC‐PML have nearly identical performance in terms of reflections, sensitivity to angle of inci-dence, polarization, etc.

We drop the non‐stretching terms.

Drop the Other Terms

Page 35: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

35

Calculating the PML Pa-rameters

Page 36: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

36The Perfectly Matched Layer (PML)

The perfectly matched layer (PML) is an absorbing boundary condition (ABC) where the impedance is perfectly matched to the problem space. Reflections entering the lossy regions are prevented because impedance is matched. Reflections from the grid bound-aries are prevented because the outgoing waves are absorbed.

Page 37: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

37Calculating the PML Loss Terms

For best performance, the loss terms should increase gradually into the PMLs.

L ≡ length of the PML in the x, y, z direction

Page 38: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

38

For best performance, the loss terms should increase gradually into the PMLs.

Visualizing the PML Loss Terms – 2D

Page 39: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

39Note About x/Lx, y/Ly, and z/Lz

The following ratios provide a single quantity that goes from 0 to 1 as you movethrough a PML region.

We can calculate the same ratio using integer indices from our grid.

Page 40: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

40Visualizing σx in 2D

Page 41: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

41Visualizing σy in 2D

Page 42: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

42Procedure for Calculating σx and σy on a 2D Grid

1. Initialize σx and σy to all zeros.

2. Fill in x‐axis PML regions using two for loops.

3. Fill in y‐axis PML regions using two for loops.

Page 43: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

43

Incorporating a UPML intoMaxwell’s Equations

Page 44: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

44Why a UPML

• A convolutional PML (stretched coordinate PML) is currently the state‐of‐the‐art in FDTD.

• A UPML offers benefits to frequency‐domain models that are useful for begin-ners.

The models can be formulated and implemented without considering the PML. The PML is incorporated simply by adjusting the values of permittiv-ity and permeability at the edges of the grid.

Page 45: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

45Incorporating a UPML into Maxwell’s Equations

Before incorporating a PML, Maxwell’s equations in the frequency domain are

We can incorporate a PML independent of the actual materials on the grid as fol-lows:

Page 46: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

46Normalize Maxwell’s Equations with PML

We normalize the electric field quantities according to

Maxwell’s equations with the PML and normalized fields are

Page 47: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

47Matrix Form of Maxwell’s Equations

Maxwell’s equations can be written in matrix form as

Page 48: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

48Assume Only Diagonal Tensors

Here we assume that [μ], [ε], and [σ] contain only diagonal terms.

Page 49: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

49Vector Expansion of Maxwell’s Equations

Page 50: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

50Final Form of Maxwell’s Equations with UPML

Page 51: EMLAB 1 The Perfectly Matched Layer (PML). EMLAB 2 Lecture Outline Review of Lecture 12 Background Information The Uniaxial Perfectly Matched Layer (UPML)

EMLAB

51The PML is Not a Boundary Condition

• A numerical boundary condition is the rule you follow when a finite‐difference equation references a field from outside the grid.

• The PML does not address this issue.

• It is simply a way of incorporating loss while preventing reflections so as to absorb outgoing waves.

• Sometimes it is called an absorbing boundary condition, but this is still a misleading title because the PML is not a boundary condition.