Skip to content

Commit 0fd49aa

Browse files
author
Jon Schlipf
committed
merge
2 parents ed3a364 + dc52afd commit 0fd49aa

20 files changed

+6608
-4
lines changed

src/Common/Common.jl

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include("models.jl")
88
include("grids.jl")
99
export Eigenmodes,Halfspace
1010
export eigenmodes,halfspace
11-
export a2e2d,a2p,e2p,slicehalf,getfields,get_εzz
11+
export a2e,a2e2d,a2p,e2p,slicehalf,getfields,a2p2,get_εzz
1212
"""
1313
Eigenmodes(V,W,X,q)
1414
@@ -279,7 +279,29 @@ end
279279

280280

281281
"""
282+
<<<<<<< HEAD
282283
a2p(a,b,W,Kx,Ky,kz0)
284+
=======
285+
a2p2(a,W,Kx,Ky,Kz,kz0)
286+
287+
Converts an amplitude vector (in substrate or superstrate) to Poynting power flow in z direction
288+
# Arguments
289+
* `a` : amplitude vector
290+
* `W` : eigenmodes of the halfspace
291+
* `Kx` : x component of the wavevector in the medium
292+
* `Ky` : y component of the wavevector in the medium
293+
* `Kz` : z component of the wavevector in the medium
294+
* `kz0` : z component of the plane wave wavevector in the superstrate
295+
# Outputs
296+
* `P` : power flow
297+
"""
298+
function a2p2(a,W,Kx,Ky,Kz,kz0)
299+
ex,ey,ez=a2e(a,W,Kx,Ky,Kz)
300+
return e2p(ex,ey,ez,Kz,kz0)
301+
end
302+
"""
303+
a2p(a,b,V,W,kz0)
304+
>>>>>>> dc52afda8d6111de614d87841053a2e6a1a05938
283305
284306
Converts an amplitude vector (in substrate or superstrate) to Poynting power flow in z direction
285307
# Arguments

0 commit comments

Comments
 (0)