1
Computation of Electromagnetic Fields Scattered From Dielectric Objects of Uncertain Shapes Using MLMC Alexander Litvinenko 1 , Abdul-Lateef Haji-Ali, ˙ Ismail Enes Uysal, H ¨ useyin Arda ¨ Ulk ¨ u, Jesper Oppelstrup, Raul Tempone, and Hakan Ba ˘ gcı [email protected] Center for Uncertainty Quantification Abstract Simulators capable of computing scattered fields from objects of uncertain shapes are highly useful in elec- tromagnetics and photonics, where device designs are typically subject to fabrication tolerances. Knowl- edge of statistical variations in scattered fields is use- ful in ensuring error-free functioning of devices. Of- tentimes such simulators use a Monte Carlo (MC) scheme to sample the random domain, where the variables parameterize the uncertainties in the geom- etry. At each sample, which corresponds to a realiza- tion of the geometry, a deterministic electromagnetic solver is executed to compute the scattered fields. However, to obtain accurate statistics of the scattered fields, the number of MC samples has to be large. This significantly increases the total execution time. In this work, to address this challenge, the Multilevel MC (MLMC [1]) scheme is used together with a (deter- ministic) surface integral equation solver. The MLMC achieves a higher efficiency by “balancing” the statisti- cal errors due to sampling of the random domain and the numerical errors due to discretization of the ge- ometry at each of these samples. Error balancing re- sults in a smaller number of samples requiring coarser discretizations. Consequently, total execution time is significantly shortened. 1. Frequency domain surface integral equation Electromagnetic scattering from dielectric objects is analyzed by solving Poggio-Miller-Chan-Harrington- Wu-Tsai surface integral equation (PMCHWT-SIE) [2]. Surface equivalence principle allows scattered fields to be represented in terms of (unknown) equivalent surface current densities. Current densities are ex- panded in terms of Rao Wilton Glisson (RWG) [3] ba- sis functions, each of which is defined on a pair of triangular patches. Further these expansions are in- serted into the PMCHWT-SIE. Galerkin linear matrix system is solved for the unknown expansion coeffi- cients. Scattered (far) fields are then computed from the (known) current densities. 2. Generation of random geometries Let S = S (x) be the sphere and ˜ S (x) = S (x)+ ~n(x)κ(x), where κ(x) is a random field and ~n - nor- mal vector at point x, ω Ω - random event. Usually κ(x) is unknown, but it is assumed that the covariance matrix cov κ (x, y ) of κ is known (e.g. of Mat´ ern type). -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 Figure 1: Original sphere (blue) and perturbed (black) computa- tional geometries. Three different grids with 1, 2 and 3 levels of refinements. The mesh is projected along rays from the origin from the sphere to the new shape. (Second line) The same, but for another shape realization. Difference between sphere and perturbed sphere can be mea- sured in 2 and H 1 norms: d(ω )= d(S, ˜ S (ω )) = v u u t 1 n n X i=1 (x i 1 - x i 2 ) 2 +(y i 1 - y i 2 ) 2 +(z i 1 - z i 2 ) 2 , where point x =(x i 1 ,y i 1 ,z i 1 ) S and (x i 2 ,y i 2 ,z i 2 ) ˜ S . We average over all realisations d := E d(S, ˜ S ) 1 M M X j =1 d j , Var[d] 1 M - 1 M X j =1 ( d - d(S, S (ω j )) 2 Alternatively, let r (ϕ, θ ) be radius of the perturbed sphere, then d 2 (S, ˜ S (ω )) = kS - ˜ S k 2 H 1 = ZZ S (1 - r ) 2 + (0 - grad r ) 2 dS. Here L 2 part of the norm measures the magnitude and the H 1 part measures the oscillation. The measure of input uncertainty is Var[d] E[d] . To generate random perturbations of the domain we use spherical harmonics (below) multiplied by random variables. Figure 2: Spherical harmonics used to generate random pertur- bations on sphere 3. Electric and magnetic current densities and scattering cross sections Figure 3: Electric current densities on the sphere (left) and the perturbed shape (right). Simulation frequency is 150 MHz, radius 1m. Figure 4: Magnetic current densities on the sphere (left) and the perturbed shape (right). The scattering cross sections of the sphere and perturbed struc- ture are as following: for fine mesh (7000 RWG basis functions): 15.39 and 16.39, 16.39-15.39 16.39 =6.1% for middle mesh (2000 RWG): 15.37 and 16.3, error 5.7%. for coarse mesh (500 RWG): 15.27 and 15.88, error 3.8%. 4. Multilevel Monte Carlo (CMLMC) Aim: to approximate the mean E[g (u)] of QoI g (u) to a given ac- curacy ε := TOL, where u = u(ω ) and ω - random perturbations in the domain. Idea: Balance discretization and statistical errors. Very few sam- ples on a fine grid and more on coarse (denote by M ). Assume: have a hierarchy of L +1 meshes {h } L =0 , h := h 0 β -for each realization of random domain. Consider: E[g L ] = L =0 E[g (ω ) - g -1 (ω )] =: L =0 E[G ] L =0 E ˜ G , where ˜ G = M -1 M m=0 G (ω ‘,m ). Finally obtain the MLMC estimator: A≈ E[g (u)] L =0 ˜ G . Cost of generating one sample of ˜ G : W h -γ =(h 0 β -) -γ . Total work of estimation A: W = L =0 M W . We want to satisfy: P[|E[g (u)] - A| > TOL] α with smallest work W . |E[g ] - A| ≤ |E[g -A]| | {z } Bias + |E[A] - A| | {z } Statistical error , (1) and use a splitting parameter, θ (0, 1), such that TOL = θ TOL | {z } Statitical error tolerance + (1 - θ )TOL | {z } Bias tolerance . As such, we bound the bias and the statistical error as follows: B = |E[g -A]|≤ (1 - θ )TOL, (2a) |E[A] - A| ≤ θ TOL, (2b) where the latter bound leads us to require [1] Var[A] (θ TOL/C α ) 2 . By construction of the MLMC estimator, E[A] = E[g L ], and denot- ing V = Var[G ], then by independence, we have Var[A]= L X =1 V M -1 , and the total error estimate can be written as Total error estimate = B + C α p Var[A]. (3) Estimate optimal number of samples per level : M = C α θ TOL 2 s V W L X =0 p V W . (4) Assume: E[g - g ] Q W h q 1 , (5a) Var[g - g ] Q S h q 2 , (5b) for 0 <q 2 2q 1 . Then for ‘> 0: E[G ] Q W h q 1 (1 - β q 1 ) , (6a) Var[G ]= V Q S h q 2 1 - β q 2 2 2 . (6b) Further compute the total number of samples M of G gener- ated in all iterations, the sample average G and sample variance V before go to level +1. 4.1 Continuation MLMC (CMLMC) CMLMC Algorithm below uses optimized parameters (grid hier- archy, θ , work, constants) to optimally distribute computational effort. We define L min = max 1, q 1 log(h 0 ) - log TOL i Q W q 1 log β . (7) For choice of L max see [1]. For each L, we define the splitting parameter to be θ =1 - Q W h q 1 L TOL i , (8) when computing the optimal number of samples according to (4). 1: function CMLMC 2: Compute with an initial, inexpensive hierarchy 3: Estimate parameters {V } L =0 ,Q S ,Q W ,q 1 and q 2 . 4: Set i =0. 5: repeat 6: Set L min (i) and L max (i). 7: Given problem parameters, find L = argmin L min (i)LL max (i) W (L), 8: Generate hierarchy {h } L =0 9: Using variance estimates and θ from (8), compute the optimal number of samples according to (4). 10: F j =RandomShapeGenerate(...) SolveScateredProblem for F j and for each grid h 11: Estimate parameters, {V } L =0 ,Q S ,Q W ,q 1 and q 2 , 12: Estimate the total error. 13: Set i = i +1 14: until i>i E and the total error estimate is less than TOL 15: end function 5. Conclusion Modeled uncertainties in the shape by random fields Solved scattered problem with uncertain shape geometry. Re- searched how uncertainties in the shape propagate to the un- certainty in the solution Decreased the total computational cost by novel CMLMC method Need more efficient (without input/output) coupling between software packages 6. Implementation We have 3 software packages: CMLMC[1], mesh generator and deterministic solver of scattered problem. CMLMC module call solver and mesh generator. 7. Literature 1. N. Collier, A. Haji-Ali, F. Nobile, E. von Schwerin, R. Tem- pone, ”A Continuation Multilevel Monte Carlo algorithm”, BIT Num. Math., 2014. 2. L. N. Medgyesi-Mitschang, J. M. Putnam, M. B. Gedera, ”Gen- eralized method of moments for three-dimensional penetrable scatterers”, J. Opt. Soc. Am. A, 1994. 3. S. M. Rao, D. R. Wilton, A. W. Glisson, ”Electromagnetic scat- tering by surfaces of arbitrary shape”, IEEE Trans. Antennas Propag., 1982. Acknowledgements We appreciate support of the KAUST SRI UQ Center.

Computation of Electromagnetic Fields Scattered from Dielectric Objects of Uncertain Shapes Using Multi Level Monte Carlo

Embed Size (px)

Citation preview

Page 1: Computation of Electromagnetic Fields Scattered from Dielectric Objects of Uncertain Shapes Using Multi Level Monte Carlo

Center for UncertaintyQuantification

Center for UncertaintyQuantification

Center for Uncertainty Quantification Logo Lock-up

Computation of Electromagnetic Fields Scattered From

Dielectric Objects of Uncertain Shapes Using MLMC

Alexander Litvinenko1, Abdul-Lateef Haji-Ali, Ismail Enes Uysal, Huseyin Arda

Ulku, Jesper Oppelstrup, Raul Tempone, and Hakan Bagcı

[email protected]

Center for UncertaintyQuantification

Center for UncertaintyQuantification

Center for Uncertainty Quantification Logo Lock-up

Abstract

Simulators capable of computing scattered fields fromobjects of uncertain shapes are highly useful in elec-tromagnetics and photonics, where device designsare typically subject to fabrication tolerances. Knowl-edge of statistical variations in scattered fields is use-ful in ensuring error-free functioning of devices. Of-tentimes such simulators use a Monte Carlo (MC)scheme to sample the random domain, where thevariables parameterize the uncertainties in the geom-etry. At each sample, which corresponds to a realiza-tion of the geometry, a deterministic electromagneticsolver is executed to compute the scattered fields.However, to obtain accurate statistics of the scatteredfields, the number of MC samples has to be large.This significantly increases the total execution time.In this work, to address this challenge, the MultilevelMC (MLMC [1]) scheme is used together with a (deter-ministic) surface integral equation solver. The MLMCachieves a higher efficiency by “balancing” the statisti-cal errors due to sampling of the random domain andthe numerical errors due to discretization of the ge-ometry at each of these samples. Error balancing re-sults in a smaller number of samples requiring coarserdiscretizations. Consequently, total execution time issignificantly shortened.

1. Frequency domain surface integralequation

Electromagnetic scattering from dielectric objects isanalyzed by solving Poggio-Miller-Chan-Harrington-Wu-Tsai surface integral equation (PMCHWT-SIE) [2].Surface equivalence principle allows scattered fieldsto be represented in terms of (unknown) equivalentsurface current densities. Current densities are ex-panded in terms of Rao Wilton Glisson (RWG) [3] ba-sis functions, each of which is defined on a pair oftriangular patches. Further these expansions are in-serted into the PMCHWT-SIE. Galerkin linear matrixsystem is solved for the unknown expansion coeffi-cients. Scattered (far) fields are then computed fromthe (known) current densities.

2. Generation of random geometries

Let S = S(x) be the sphere and S(x, ω) = S(x) +~n(x)κ(x, ω), where κ(x, ω) is a random field and ~n - nor-mal vector at point x, ω ∈ Ω - random event. Usuallyκ(x, ω) is unknown, but it is assumed that the covariancematrix covκ(x,y) of κ is known (e.g. of Matern type).

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

−1

−0.5

0

0.5

1

Figure 1: Original sphere (blue) and perturbed (black) computa-tional geometries. Three different grids with 1, 2 and 3 levels ofrefinements. The mesh is projected along rays from the originfrom the sphere to the new shape. (Second line) The same, butfor another shape realization.

Difference between sphere and perturbed sphere can be mea-sured in `2 and H1 norms:

d(ω) = d(S, S(ω)) =

√√√√1

n

n∑i=1

(xi1 − xi2)2 + (yi1 − y

i2)2 + (zi1 − z

i2)2,

where point x = (xi1, yi1, z

i1) ∈ S and (xi2, y

i2, z

i2) ∈ S. We average

over all realisations

d := E[d(S, S)

]≈ 1

M

M∑j=1

dj, Var[d] ≈ 1

M − 1

M∑j=1

(d− d(S, S(ωj))2

Alternatively, let r(ϕ, θ) be radius of the perturbed sphere, then

d2(S, S(ω)) = ‖S − S‖2H1=

∫∫S

(1− r)2 + (0− grad r)2dS.

Here L2 part of the norm measures the magnitude and the H1part measures the oscillation.

The measure of input uncertainty is Var[d]E[d]

.

To generate random perturbations of the domain we usespherical harmonics (below) multiplied by random variables.

Figure 2: Spherical harmonics used to generate random pertur-bations on sphere

3. Electric and magnetic currentdensities and scattering cross sections

Figure 3: Electric current densities on the sphere (left) and theperturbed shape (right). Simulation frequency is 150 MHz, radius1m.

Figure 4: Magnetic current densities on the sphere (left) and theperturbed shape (right).

The scattering cross sections of the sphere and perturbed struc-ture are as following:for fine mesh (≈7000 RWG basis functions): 15.39 and 16.39,16.39−15.39

16.39 = 6.1%for middle mesh (≈2000 RWG): 15.37 and 16.3, error 5.7%.for coarse mesh (≈500 RWG): 15.27 and 15.88, error 3.8%.

4. Multilevel Monte Carlo (CMLMC)

Aim: to approximate the mean E[g(u)] of QoI g(u) to a given ac-curacy ε := TOL, where u = u(ω) and ω - random perturbationsin the domain.Idea: Balance discretization and statistical errors. Very few sam-ples on a fine grid and more on coarse (denote by M`).Assume: have a hierarchy of L + 1 meshes h`L`=0, h` := h0β

−`

for each realization of random domain.Consider: E[gL] =

∑L`=0 E[g`(ω)− g`−1(ω)] =:

∑L`=0 E[G`] ≈∑L

`=0 E[G`], where G` = M−1

`

∑M`m=0G`(ω`,m).

Finally obtain the MLMC estimator: A ≈ E[g(u)] ≈∑L`=0 G`.

Cost of generating one sample of G`: W` ∝ h−γ` = (h0β

−`)−γ.Total work of estimation A: W =

∑L`=0M`W`.

We want to satisfy: P[|E[g(u)]−A| > TOL] ≤ α with smallestwork W .

|E[g]−A| ≤ |E[g −A]|︸ ︷︷ ︸Bias

+ |E[A]−A|︸ ︷︷ ︸Statistical error

, (1)

and use a splitting parameter, θ ∈ (0, 1), such that

TOL = θTOL︸ ︷︷ ︸Statitical error tolerance

+ (1− θ)TOL︸ ︷︷ ︸Bias tolerance

.

As such, we bound the bias and the statistical error as follows:

B = |E[g −A]| ≤ (1− θ)TOL, (2a)|E[A]−A| ≤ θTOL, (2b)

where the latter bound leads us to require [1] Var[A] ≤(θTOL/Cα)2.By construction of the MLMC estimator, E[A] = E[gL], and denot-ing V` = Var[G`], then by independence, we have

Var[A] =

L∑`=1

V`M−1` ,

and the total error estimate can be written as

Total error estimate = B + Cα√

Var[A]. (3)

Estimate optimal number of samples per level `:

M` =

(CαθTOL

)2√V`W`

L∑`=0

√V`W`

. (4)

Assume:

E[g − g`] ≈ QWhq1` , (5a)

Var[g − g`] ≈ QShq2` , (5b)

for 0 < q2 ≤ 2q1. Then for ` > 0:

E[G`] ≈ QWhq1` (1− βq1) , (6a)

Var[G`] = V` ≈ QShq2`

(1− β

q22

)2. (6b)

Further compute the total number of samples M ` of G` gener-ated in all iterations, the sample average G` and sample varianceV ` before go to level ` + 1.

4.1 Continuation MLMC (CMLMC)CMLMC Algorithm below uses optimized parameters (grid hier-archy, θ, work, constants) to optimally distribute computationaleffort. We define

Lmin = max

1,q1 log(h0)− log

(TOLiQW

)q1 log β

. (7)

For choice of Lmax see [1]. For each L, we define the splittingparameter to be

θ = 1−QWh

q1L

TOLi, (8)

when computing the optimal number of samples according to (4).1: function CMLMC2: Compute with an initial, inexpensive hierarchy3: Estimate parameters V`L`=0 , QS, QW , q1 and q2.4: Set i = 0.5: repeat6: Set Lmin(i) and Lmax(i).7: Given problem parameters, find

L = argminLmin(i)≤L≤Lmax(i)W (L),

8: Generate hierarchy h`L`=09: Using variance estimates and θ from (8), compute

the optimal number of samples according to (4).10: Fj=RandomShapeGenerate(...)

SolveScateredProblem for Fj and for each grid h`11: Estimate parameters, V`L`=0 , QS, QW , q1 and q2,12: Estimate the total error.13: Set i = i + 114: until i > iE and the total error estimate is less than TOL15: end function

5. Conclusion

•Modeled uncertainties in the shape by random fields• Solved scattered problem with uncertain shape geometry. Re-

searched how uncertainties in the shape propagate to the un-certainty in the solution•Decreased the total computational cost by novel CMLMC

method•Need more efficient (without input/output) coupling between

software packages

6. Implementation

We have 3 software packages: CMLMC[1], mesh generator anddeterministic solver of scattered problem. CMLMC module callsolver and mesh generator.

7. Literature

1. N. Collier, A. Haji-Ali, F. Nobile, E. von Schwerin, R. Tem-pone, ”A Continuation Multilevel Monte Carlo algorithm”, BITNum. Math., 2014.2. L. N. Medgyesi-Mitschang, J. M. Putnam, M. B. Gedera, ”Gen-eralized method of moments for three-dimensional penetrablescatterers”, J. Opt. Soc. Am. A, 1994.3. S. M. Rao, D. R. Wilton, A. W. Glisson, ”Electromagnetic scat-tering by surfaces of arbitrary shape”, IEEE Trans. AntennasPropag., 1982.

Acknowledgements

We appreciate support of the KAUST SRI UQ Center.