@@ -8,7 +8,7 @@ include("models.jl")
8
8
include (" grids.jl" )
9
9
export Eigenmodes,Halfspace
10
10
export eigenmodes,halfspace
11
- export a2e2d,a2p,e2p,slicehalf,getfields,get_εzz
11
+ export a2e, a2e2d,a2p,e2p,slicehalf,getfields,a2p2 ,get_εzz
12
12
"""
13
13
Eigenmodes(V,W,X,q)
14
14
279
279
280
280
281
281
"""
282
+ <<<<<<< HEAD
282
283
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
283
305
284
306
Converts an amplitude vector (in substrate or superstrate) to Poynting power flow in z direction
285
307
# Arguments
0 commit comments