15
Standard Form 298 (Rev 8/98) Prescribed by ANSI Std. Z39.18 805-371-7500 W911NF-14-C-0011 Technical Report 64503-MA-ST2.1 a. REPORT 14. ABSTRACT 16. SECURITY CLASSIFICATION OF: 1. REPORT DATE (DD-MM-YYYY) 4. TITLE AND SUBTITLE 13. SUPPLEMENTARY NOTES 12. DISTRIBUTION AVAILIBILITY STATEMENT 6. AUTHORS 7. PERFORMING ORGANIZATION NAMES AND ADDRESSES 15. SUBJECT TERMS b. ABSTRACT 2. REPORT TYPE 17. LIMITATION OF ABSTRACT 15. NUMBER OF PAGES 5d. PROJECT NUMBER 5e. TASK NUMBER 5f. WORK UNIT NUMBER 5c. PROGRAM ELEMENT NUMBER 5b. GRANT NUMBER 5a. CONTRACT NUMBER Form Approved OMB NO. 0704-0188 3. DATES COVERED (From - To) - UU UU UU UU Approved for public release; distribution is unlimited. A Priori Error-Controlled Simulation of Electromagnetic Phenomena for HPC In this project we aim to construct a high fidelity boundary condition module for Maxwell's equations that can be interfaced with major time-domain electromagnetics solver systems. There is ample need in the EM modeling community for reliable and stable far field boundary conditions of high accuracy. Most existing methods are limited in one or more of these requirements, and recent developments in the CRBC procedure (as originally presented by Hagstrom and Warburton in 2009), have made the technique an attractive candidate for implementation in multi-purpose solvers. In phase-I of this project The views, opinions and/or findings contained in this report are those of the author(s) and should not contrued as an official Department of the Army position, policy or decision, unless so designated by other documentation. 9. SPONSORING/MONITORING AGENCY NAME(S) AND ADDRESS (ES) U.S. Army Research Office P.O. Box 12211 Research Triangle Park, NC 27709-2211 Computational electromagnetics, time-domain, outer boundary conditions, high order accuracy, modular software REPORT DOCUMENTATION PAGE 11. SPONSOR/MONITOR'S REPORT NUMBER(S) 10. SPONSOR/MONITOR'S ACRONYM(S) ARO 8. PERFORMING ORGANIZATION REPORT NUMBER 19a. NAME OF RESPONSIBLE PERSON 19b. TELEPHONE NUMBER Ramakanth Munipalli Xing He, Ramakanth Munipalli, Thomas Hagstrom 665502 c. THIS PAGE The public reporting burden for this collection of information is estimated to average 1 hour per response, including the time for reviewing instructions, searching existing data sources, gathering and maintaining the data needed, and completing and reviewing the collection of information. Send comments regarding this burden estimate or any other aspect of this collection of information, including suggesstions for reducing this burden, to Washington Headquarters Services, Directorate for Information Operations and Reports, 1215 Jefferson Davis Highway, Suite 1204, Arlington VA, 22202-4302. Respondents should be aware that notwithstanding any other provision of law, no person shall be subject to any oenalty for failing to comply with a collection of information if it does not display a currently valid OMB control number. PLEASE DO NOT RETURN YOUR FORM TO THE ABOVE ADDRESS. HyPerComp, Inc. 2629 Townsgate Road Suite 105 Westlake Village, CA 91361 -2981

REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

Standard Form 298 (Rev 8/98) Prescribed by ANSI Std. Z39.18

805-371-7500

W911NF-14-C-0011

Technical Report

64503-MA-ST2.1

a. REPORT

14. ABSTRACT

16. SECURITY CLASSIFICATION OF:

1. REPORT DATE (DD-MM-YYYY)

4. TITLE AND SUBTITLE

13. SUPPLEMENTARY NOTES

12. DISTRIBUTION AVAILIBILITY STATEMENT

6. AUTHORS

7. PERFORMING ORGANIZATION NAMES AND ADDRESSES

15. SUBJECT TERMS

b. ABSTRACT

2. REPORT TYPE

17. LIMITATION OF ABSTRACT

15. NUMBER OF PAGES

5d. PROJECT NUMBER

5e. TASK NUMBER

5f. WORK UNIT NUMBER

5c. PROGRAM ELEMENT NUMBER

5b. GRANT NUMBER

5a. CONTRACT NUMBER

Form Approved OMB NO. 0704-0188

3. DATES COVERED (From - To)-

UU UU UU UU

Approved for public release; distribution is unlimited.

A Priori Error-Controlled Simulation of Electromagnetic Phenomena for HPC

In this project we aim to construct a high fidelity boundary condition module for Maxwell's equationsthat can be interfaced with major time-domain electromagnetics solver systems. There is ample needin the EM modeling community for reliable and stable far field boundary conditions of high accuracy.Most existing methods are limited in one or more of these requirements, and recent developments inthe CRBC procedure (as originally presented by Hagstrom and Warburton in 2009), have made thetechnique an attractive candidate for implementation in multi-purpose solvers. In phase-I of this project

The views, opinions and/or findings contained in this report are those of the author(s) and should not contrued as an official Department of the Army position, policy or decision, unless so designated by other documentation.

9. SPONSORING/MONITORING AGENCY NAME(S) AND ADDRESS(ES)

U.S. Army Research Office P.O. Box 12211 Research Triangle Park, NC 27709-2211

Computational electromagnetics, time-domain, outer boundary conditions, high order accuracy, modular software

REPORT DOCUMENTATION PAGE

11. SPONSOR/MONITOR'S REPORT NUMBER(S)

10. SPONSOR/MONITOR'S ACRONYM(S) ARO

8. PERFORMING ORGANIZATION REPORT NUMBER

19a. NAME OF RESPONSIBLE PERSON

19b. TELEPHONE NUMBERRamakanth Munipalli

Xing He, Ramakanth Munipalli, Thomas Hagstrom

665502

c. THIS PAGE

The public reporting burden for this collection of information is estimated to average 1 hour per response, including the time for reviewing instructions, searching existing data sources, gathering and maintaining the data needed, and completing and reviewing the collection of information. Send comments regarding this burden estimate or any other aspect of this collection of information, including suggesstions for reducing this burden, to Washington Headquarters Services, Directorate for Information Operations and Reports, 1215 Jefferson Davis Highway, Suite 1204, Arlington VA, 22202-4302. Respondents should be aware that notwithstanding any other provision of law, no person shall be subject to any oenalty for failing to comply with a collection of information if it does not display a currently valid OMB control number.PLEASE DO NOT RETURN YOUR FORM TO THE ABOVE ADDRESS.

HyPerComp, Inc.2629 Townsgate RoadSuite 105Westlake Village, CA 91361 -2981

Page 2: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

ABSTRACT

A Priori Error-Controlled Simulation of Electromagnetic Phenomena for HPC

Report Title

In this project we aim to construct a high fidelity boundary condition module for Maxwell's equationsthat can be interfaced with major time-domain electromagnetics solver systems. There is ample needin the EM modeling community for reliable and stable far field boundary conditions of high accuracy.Most existing methods are limited in one or more of these requirements, and recent developments inthe CRBC procedure (as originally presented by Hagstrom and Warburton in 2009), have made thetechnique an attractive candidate for implementation in multi-purpose solvers. In phase-I of this projectwe implemented and improved upon many aspects of this method, particularly in light of the needs ofhigh order accurate Maxwell equations solvers (based on the discontinuous Galerkin method). Errorbounds were computed and demonstrated for a number of cases. We continue in the second phase ofthis project to improve upon the robustness of this method, as we develop a software platform whichshall be its flagship (and open source) implementation. In this first quarterly report we present initialprogress to this end, showing recent mathematical developments, project coordination plans and someresults from our initial experience with MEEP.

Page 3: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

Cover Page

Contract Number: W911NF-13-C-0039Proposal Number: A2-5030

Contractor’s Name and Address: HyPerComp, Inc.2629 Townsgate Road, Suite 105Westlake Village, CA 91361

Title of the Project: A Priori Error-Controlled Simulationof Electromagnetic Phenomena for HPC

Contract Performance Period: March 13, 2013 - March 12, 2015Current Reporting Period: March 13, 2013 - June 12, 2013

Total Contract Amount: $749,996Amount of funds paid by DFAS to date: $0Total amount expended/invoiced to date: $0Number of employees working on the project: 3Number of new employees placed on contract this month: 0

1 of 13

Page 4: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

CONTENTS CONTENTS

Contents

1 Abstract 2

2 Introduction 3

3 CRBCs and Corner Conditions for the TM Maxwell System 4

4 Meep 8

1 Abstract

In this project we aim to construct a high fidelity boundary condition module for Maxwell’s equationsthat can be interfaced with major time-domain electromagnetics solver systems. There is ample needin the EM modeling community for reliable and stable far field boundary conditions of high accuracy.Most existing methods are limited in one or more of these requirements, and recent developments inthe CRBC procedure (as originally presented by Hagstrom and Warburton in 2009), have made thetechnique an attractive candidate for implementation in multi-purpose solvers. In phase-I of this projectwe implemented and improved upon many aspects of this method, particularly in light of the needs ofhigh order accurate Maxwell equations solvers (based on the discontinuous Galerkin method). Errorbounds were computed and demonstrated for a number of cases. We continue in the second phase ofthis project to improve upon the robustness of this method, as we develop a software platform whichshall be its flagship (and open source) implementation. In this first quarterly report we present initialprogress to this end, showing recent mathematical developments, project coordination plans and someresults from our initial experience with MEEP.

2 of 13

Page 5: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

2. INTRODUCTION CONTENTS

2 Introduction

In this project, HyPerComp is collaborating with Prof. Thomas Hagstrom and his research group atthe Southern Methodist University (SMU). Roles of the two organizations are very broadly dividedinto mathematical method development (led by SMU) and implementation, software development andmaturation (led by HyPerComp). The project is coordinated via a series of in-person and telephonemeetings. As of May 17, 2013 we have been conducting weekly telephone meetings. Two students, JohnLagrone and Fritz Juhnke have been included in the team and have been actively participating in thework so far.

Tasks: The following is a list of tasks to be performed in this project.

1. Project Formulation

2. Software Development

3. Verification Validation

4. Coupling

5. Efficiency Testing

6. Release of software

7. Documentation

8. Sustainability Plan

9. User Support

At present, we are working on a refined formulation of the CRBC method and testing it in sampleproblems. Primary concerns pertaining to method stability at corners, particularly in 3D are beingaddressed. CRBC implementations in finite difference schemes, DG (in FORTRAN as well as in MAT-LAB) are available from prior research in this project, for testing. We hope to host a telephone meetingwith our project manager from the Army in July, coinciding with Prof. Hagstrom’s visit to HyPerComp.

We are presently aiming to integrate the CRBC module with the following codes:

• HDphysics from HyPerComp, a high order DG based solver

• MEEP from MIT, an open source FDTD code

• cgmx part of “Overture” suite of simulation codes from LLNL - high order finite differences,second order PDEs

• CLAWPACK a finite difference suite of solvers from U.Washington

Students from SMU shall initially focus on an FDTD implementation with MEEP and begin toidentify software needs. We are in the process of developing software requirements for each of the systemsmentioned above, so that we can outline a common implementation of the method and programmingtechniques. This shall be discussed in the forthcoming report.

3 of 13

Page 6: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

3. CRBCS AND CORNER CONDITIONS FOR THE TM MAXWELL SYSTEM CONTENTS

3 CRBCs and Corner Conditions for the TM Maxwell System

Consider the TM Maxwell system:

∂Hx

∂t+

1

µ

∂Ez

∂y= 0 (1)

∂Hy

∂t−

1

µ

∂Ez

∂x= 0 (2)

∂Ez

∂t−

1

ε

∂Hy

∂x+

1

ε

∂Hx

∂y= 0 (3)

and set c = 1√εµ

.

CRBC on an arbitrary edge

Consider a portion of the radiation boundary with unit normal n pointing outward from the compu-tational domain and unit tangent vector τ :

n = (nxny) , τ = (

−nynx) . (4)

(Notice we have chosen a specific orientation for simplicity.) Introducing angles φj , φ̄j , j = 1, . . . , P , werewrite the Maxwell system in terms of normal and tangential derivatives, ∂

∂nand ∂

∂τand recursively

replace normal derivatives with interpolation operators. For outgoing waves

∂n≈ −

cosφj

c

∂t−

sin2 φj

cT cosφj, (5)

and for incoming waves∂

∂n≈

cos φ̄j

c

∂t+

sin2 φ̄j

cT cos φ̄j. (6)

Although not necessary, it is convenient to recast the first two equations using the normal and tangentialcomponents of H:

∂t(nxH

x+ nyH

y) +

1

µ

∂Ez

∂τ= 0 (7)

∂t(−nyH

x+ nxH

y) −

1

µ

∂Ez

∂n= 0 (8)

Introducing auxiliary variables Hxj , Hy

j , and Ezj with Hx0 , Hy

0 , and Ez0 coinciding with the trace of thesolution at the boundary (or in the DG context the boundary state) we solve for j = 1, . . . P

∂t(−nyH

xj−1 + nxH

yj−1) +

cosφj

µc

∂Ezj−1

∂t+

1

µcT

sin2 φj

cosφjEzj−1 = (9)

∂t(−nyH

xj + nxH

yj ) −

cos φ̄j

µc

∂Ezj

∂t−

1

µcT

sin2 φ̄j

cos φ̄jEzj

4 of 13

Page 7: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

3. CRBCS AND CORNER CONDITIONS FOR THE TM MAXWELL SYSTEM CONTENTS

∂Ezj−1

∂t+

cosφj

εc

∂t(−nyH

xj−1 + nxH

yj−1) (10)

+1

εcT

sin2 φj

cosφj(−nyH

xj−1 + nxH

yj−1) +

1

ε

∂τ(nxH

xj−1 + nyH

yj−1) =

∂Ezj

∂t−

cos φ̄j

εc

∂t(−nyH

xj + nxH

yj )

−1

εcT

sin2 φ̄j

cos φ̄j(−nyH

xj + nxH

yj ) +

1

ε

∂τ(nxH

xj + nyH

yj ) ,

and for j = 0, . . . , P∂

∂t(nxH

xj + nyH

yj ) +

1

µ

∂Ezj

∂τ= 0. (11)

These are 3P + 1 equations for 3P + 3 unknowns. Two additional equations are obtained first by usingdata from the interior for outgoing characteristics and terminating the incoming characteristic recursion.The system simplifies if we introduce the normal characteristic variables:

R±,j = Ezj ±

õ

ε(−nyH

xj + nxH

yj ) , Hn,j = nxH

xj + nyH

yj , (12)

then the recursions take the form

(1 + cosφj)∂R+,j−1

∂t+

1

T

sin2 φj

cosφjR+,j−1 +

1

ε

∂Hn,j−1

∂τ= (13)

(1 − cos φ̄j)∂R+,j

∂t−

1

T

sin2 φ̄j

cos φ̄jR+,j +

1

ε

∂Hn,j

∂τ.

(1 − cosφj)∂R−,j−1

∂t−

1

T

sin2 φj

cosφjR−,j−1 +

1

ε

∂Hn,j−1

∂τ= (14)

(1 + cos φ̄j)∂R−,j

∂t+

1

T

sin2 φ̄j

cos φ̄jR−,j +

1

ε

∂Hn,j

∂τ.

We then take∂R−,0

∂t= (

∂R−,0

∂t)

interior

, (15)

and solve (14) in increasing j for∂R−,j∂t

. The termination condition is

R+,P = 0, (16)

which allows us to solve (13) in decreasing j for∂R+,j−1∂t

.

Corner

We now consider the case of two artificial boundaries meeting at a corner point. Let n1 = (n1x, n1y)T be

the unit outward normal for the first boundary and n2 = (n2x, n2y)T be the unit outward normal for the

second. Introduceγ = n1 ⋅ n2, γ2 < 1.

5 of 13

Page 8: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

3. CRBCS AND CORNER CONDITIONS FOR THE TM MAXWELL SYSTEM CONTENTS

Notice that if the angle between the edges is obtuse then γ > 0. Also introduce sj = ±1, j = 1,2 withsj = 1 if the edge orientation is into the corner and sj = −1 otherwise. We now solve for a doubly-indexedarray of auxiliary variables Ezj,k, Hx

j,k and Hyj,k which coincide with the corner values of the auxiliary

variables E1,zk , H1,x

k , H1,yk when j = 0 and E2,z

j , H2,xj , H2,y

j when k = 0. Thus the auxiliary variableswith index 0,0 correspond to the corner values of the actual fields. A complete set of equations for thecorner variables is obtained by applying the interpolation conditions to replace all space derivatives.We do so by solving for ∇W in terms of n1 ⋅ ∇W and n2 ⋅ ∇W where W is any function. This yields

∇W = (1 − γ2)−1(n1 − γn2)(n1 ⋅ ∇W ) (17)

+(1 − γ2)−1(n2 − γn1)(n2 ⋅ ∇W )

To further simplify the formula we use the fact that Rn1R = Rn2R = 1 and find that

1 − γ2 = 1 − (n1xn2x + n

1yn

2y)

2

= ((n1x)2+ (n1y)

2) ((n2x)2+ (n2y)

2) − (n1xn2x + n

1yn

2y)

2

= (n1x)2(n2y)

2+ (n1y)

2(n2x)

2− 2n1xn

2xn

1yn

2y

= S2 (18)

where we have introducedS = n1xn

2y − n

1yn

2x. (19)

Then

(n1 − γn2) = (n1x − n

1x(n

2x)

2 − n1yn2yn

2x

n1y − n1xn

2xn

2y − n

1y(n

2y)

2 )

= (n1x(n

2y)

2 − n1yn2yn

2x

n1y(n2x)

2 − n1xn2xn

2y)

= S (n2y

−n2x) (20)

Similarly

(1 − γ2)−1(n2 − γn1) =1

S(−n1yn1x) . (21)

Thus

∂x=

1

S(n2y

∂n1− n1y

∂n2) (22)

∂y=

1

S(−n2x

∂n1+ n1x

∂n2) . (23)

Then all derivatives can be replaced by the interpolation conditions (5)-(6) associated with one ofthe edges. We also assume for simplicity that we are using the same angle parameters and orders oneach edge. This is not necessary, but it is what we usually do and assuming it simplifies the notation.

The recursions corresponding to (9) are the easiest to write down. We solve for j = 1, . . . , P ,k = 0, . . . , P

∂t(−n2yH

xj−1,k + n

2xH

yj−1,k) +

cosφj

µc

∂Ezj−1,k

∂t+

1

µcT

sin2 φj

cosφjEzj−1,k =

∂t(−n2yH

xj,k + n

2xH

yj,k) −

cos φ̄j

µc

∂Ezj,k

∂t−

1

µcT

sin2 φ̄j

cos φ̄jEzj,k, (24)

6 of 13

Page 9: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

3. CRBCS AND CORNER CONDITIONS FOR THE TM MAXWELL SYSTEM CONTENTS

and for j = 0, . . . , P , k = 1, . . . , P

∂t(−n1yH

xj,k−1 + n

1xH

yj,k−1) +

cosφkµc

∂Ezj,k−1

∂t+

1

µcT

sin2 φkcosφk

Ezj,k−1 =

∂t(−n1yH

xj,k + n

1xH

yj,k) −

cos φ̄kµc

∂Ezj,k

∂t−

1

µcT

sin2 φ̄k

cos φ̄kEzj,k. (25)

Lastly from the (10) we derive a relationship involving both recursions which we impose for j, k =

1, . . . , P . Using (22)-(23) to express the space derivatives using the normals we find

εS∂Ez

∂t− n2y

∂Hy

∂n1+ n1y

∂Hy

∂n2− n2x

∂Hx

∂n1+ n1x

∂Hx

∂n2= 0. (26)

Now replacing the normal derivatives by (5)-(6) we derive:

S∂

∂t(Ezj−1,k−1 +E

zj,k −E

zj,k−1 −E

zj−1,k) (27)

+cosφj

εc

∂t(−n1x (H

xj−1,k−1 −H

xj−1,k) − n

1y (H

yj−1,k−1 −H

yj−1,k))

+sin2 φj

εcT cosφj(−n1x (H

xj−1,k−1 −H

xj−1,k) − n

1y (H

yj−1,k−1 −H

yj−1,k))

+cos φ̄j

εc

∂t(n1x (H

xj,k −H

xj,k−1) + n

1y (H

yj,k −H

yj,k−1))

+sin2 φ̄j

εcT cos φ̄j(n1x (H

xj,k −H

xj,k−1) + n

1y (H

yj,k −H

yj,k−1))

+cosφkεc

∂t(n2x (H

xj−1,k−1 −H

xj,k−1) + n

2y (H

yj−1,k−1 −H

yj,k−1))

+sin2 φk

εcT cosφk(n2x (H

xj−1,k−1 −H

xj,k−1) + n

2y (H

yj−1,k−1 −H

yj,k−1))

+cos φ̄kεc

∂t(−n2x (H

xj,k −H

xj−1,k) − n

2y (H

yj,k −H

yj−1,k))

+sin2 φ̄k

εcT cos φ̄k(−n2x (H

xj,k −H

xj−1,k) − n

2y (H

yj,k −H

yj−1,k)) = 0

We have now written down 2P (P +1)+P 2 = 3P 2+2P equations in 3(P +1)2 = 3P 2+6P +3 variables.Thus 4P +3 additional equations are required. We first incorporate incoming data from the edges. Herewe define outgoing characteristics (ingoing to the corner) in the tangential directions for each edge.Then for k = 0, . . . , P set

S1k = E

z0,k + s1

õ

ε(n1xH

x0,k + n

1yH

y0,k) . (28)

Then with the correspondence

(Ez0,k,Hx0,k,H

y0,k)↔ (E

zk ,H

xk ,H

yk)

edge1 (29)

we can impose

∂S1k

∂t= (

∂S1k

∂t)

edge1

. (30)

7 of 13

Page 10: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

4. MEEP CONTENTS

Similarly for j = 0, . . . , P set

S2j = E

zj,0 + s2

õ

ε(n2xH

xj,0 + n

2yH

yj,0) , (31)

and note the correspondence

(Ezj,0,Hxj,0,H

yj,0)↔ (E

zj ,H

xj ,H

yj )

edge2 . (32)

Then we can impose

∂S2j

∂t= (

∂S2j

∂t)

edge2

. (33)

Finally we can impose the termination conditions

R1+,j,P = 0 j = 0, . . . , P (34)

R2+,P,k = 0 k = 0, . . . , P.. (35)

These constitute 4(P + 1) = 4P + 4 equations, one more than we can use. We remove an equation byonly imposing the sum of (30) and (33) for j = k = 0.

4 Meep

Meep-1.2 and related supporting software, libctl-3.2.1, harminv, harminv-devel have been installedin Linux systems. Single CPU build has been tested and verified against the examples posted on theMeep website. Parallel version has not been tested yet.

In Fedora OS systems, default configure for libctl-3.2.1 will not work, instead, we need to use./configure LDFLAGS=-lmto configure the software.

Packages harminv and harminv-devel will be needed for solutions’ Fourier transforms and needto be installed before compile Meep.

Default configure for Meep-1.2 also failed in our Linux system. It cannot automatically include theLapack library when trying to link the software. We need to explicitly add the Lapack library as follows:./configure LDFLAGS=-llapack prefix=$Meep homewith $Meep home the destination of Meep installation.

Post-processing utility h5utils-1.12.1 is also installed. There are a lot of utilities included in thispackage. To manipulate unsteady solution easier, we developed a python script to call h5tovtk utilityand create a series of .vtk file from the big .h5 file. The script is list below

#!/usr/bin/python

import commands

import string

import sys

argc = len(sys.argv)

if argc != 2:

print "usage error, wrong number of arguments"

print "usage example: ./convH5ToVtk.py sq_scatter-hz.h5"

8 of 13

Page 11: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

4. MEEP CONTENTS

exit(-1)

#get the final time step

cmd = "h5ls " + sys.argv[argc-1]

h5lso = commands.getoutput(cmd)

h5lso = h5lso.replace("/Inf}", "")

lspace = h5lso.rfind(" ")

tend = int(h5lso[lspace+1:])

print "final time step is: ", tend-1

fileRoot = sys.argv[argc-1]

fileRoot = fileRoot[:len(fileRoot)-3]

defaultVtk = fileRoot+".vtk"

print fileRoot

for i in range(tend):

bigNum = 1000000+i

newVtk = fileRoot+"_"+(str(bigNum))[1:]+".vtk"

cmd1 = "h5tovtk -t " + str(i) + " " + sys.argv[argc-1]

commands.getoutput(cmd1)

cmd2 = "mv " + defaultVtk + " " + newVtk

commands.getoutput(cmd2)

print newVtk + " is ready"

With .vtk files, we can easily use paraview to do more detailed analysis.

Meep code was verified with several examples using the input data provided in the Meep Tutorialweb page. Grid resolution and pml-layer thickness have been studied to check the code accuracy andpml-layer sensitivity.

Figure 1 gives the solution of Ez 2-D field in a a straight waveguide. The waveguide has ε = 12.Figure 2 depicts the solution of a 90o bend waveguide solution at t = 79.8,139.8 and 199.8 respectively.To further check the code capability, a 3D case with a perfect-electric-conductor sphere put at the centerof the domain is calculated. The wavelength is set to λ = 1m, and the source frequency nondimensionalfrequency f = 1 (which indicates the real frequency = f ∗ c/λ = 3 × 108 Hz). The domain is set to10 × 10 × 10, and the radius of the sphere is set to r = 10λ/(2π) = 1.59m. Figure 3 shows the Ez fielddistribution at non-dimensional t = 200. For this run, with resolution=20, it takes about 2 hours in anIntel core-i7 CPU.

In Figure 2 , we computed the field patterns for light propagating around a waveguide bend. Theresults are only visually pretty and not quantitatively satisfying. We’d like to know exactly how muchpower makes it around the bend, how much is reflected, and how much is radiated away. This is done byrunning the example case bend-flux in the Meep example website. The domain size is 16× 32, includingthe pml-layers, which we set the thickness to be 1. We follow the instruction in the tutorial, and runwith resolution 10, 20 and 40. Figure 4 depicts the comparison of the case with different resolution. Itcan be seen a minimum resolution of 20 is needed.

In addition, we tried different pml thickness with resolution 20. Figure 5 depicts the comparison ofthe case with different pml thickness. This is to check the robustness of the radiation BC in Meep codeand see how much we can improve by using CRBC module in this project in the future. Obviously, withvery thin pml, the results oscillate, which is in our expectation. However, when pml thickness increasedto 2, the solution is also far away from the thickness 1 benchmark, which we may need to find out later.

9 of 13

Page 12: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

4. MEEP CONTENTS

Figure 1: Electric-field component Ez distribution of straight waveguide field at t = 200

(a) (b) (c)

Figure 2: Electric-field component Ez distribution at of the 90o waveguide field at t = 79.8,139.8 and199.8.

Figure 3: Electric-field component Ez distribution of a 3D case at t = 200

10 of 13

Page 13: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

4. MEEP CONTENTS

0.1

0.15

0.2

0.25

0.3

0.35

0.4

0.45

0.5

0.55

0.1 0.12 0.14 0.16 0.18 0.2

tra

nsm

issio

n

frequency

Transmission spectrum around a waveguide bend

resolution=10resolution=20resolution=40

0.19

0.2

0.21

0.22

0.23

0.24

0.25

0.26

0.1 0.12 0.14 0.16 0.18 0.2

refle

ctio

n

frequency

Transmission spectrum around a waveguide bend

resolution=10resolution=20resolution=40

0.25

0.3

0.35

0.4

0.45

0.5

0.55

0.6

0.65

0.1 0.12 0.14 0.16 0.18 0.2

loss

frequency

Transmission spectrum around a waveguide bend

resolution=10resolution=20resolution=40

Figure 4: Transmission spectrum around a waveguide bend using different grid resolution.

11 of 13

Page 14: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

4. MEEP CONTENTS

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.1 0.12 0.14 0.16 0.18 0.2

tra

nsm

issio

n

frequency

Transmission spectrum around a waveguide bend

pml thickness=0.2pml thickness=0.5pml thickness=1.0pml thickness=1.5pml thickness=2.0

0.16

0.18

0.2

0.22

0.24

0.26

0.28

0.3

0.1 0.12 0.14 0.16 0.18 0.2

refle

ctio

n

frequency

Transmission spectrum around a waveguide bend

pml thickness=0.2pml thickness=0.5pml thickness=1.0pml thickness=1.5pml thickness=2.0

-0.1

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.1 0.12 0.14 0.16 0.18 0.2

loss

frequency

Transmission spectrum around a waveguide bend

pml thickness=0.2pml thickness=0.5pml thickness=1.0pml thickness=1.5pml thickness=2.0

Figure 5: Transmission spectrum around a waveguide bend using different pml thickness.

12 of 13

Page 15: REPORT DOCUMENTATION PAGE Form Approved · 2014-11-20 · the Southern Methodist University (SMU). Roles of the two organizations are very broadly divided into mathematical method

REFERENCES REFERENCES

References

13 of 13