vswf.gpw: Beam Shape Coefficients for a Generic Plane Wave

Description Usage Arguments Details See Also Examples

Description

Beam Shape Coefficients for a Generic Plane Wave

Usage

1
vswf.gpw(kx, ky, kz, ux, uy, uz, lmax, implicit = TRUE, code = "C")

Arguments

kx

The component x of the wave vector.

ky

The component y of the wave vector.

kz

The component z of the wave vector.

implicit

The way it calculates the Beam Shape Coefficients. If TRUE, so we use the function vswf.vsh to calculate. If FALSE, we use the explicit expression for the components.

x

The component x of the position vector.

y

The component y of the position vector.

z

The component z of the position vector.

xo

The component x of the origin vector.

yo

The component y of the origin vector.

zo

The component z of the origin vector.

Details

Calculate the Beam Shape Coefficients for a plane wave with arbitrary polarization and propagating in arbitrary direction. It can be compared with the specific case calculated by Mie or that done in the book of Jackson, called here by Mie Plane Wave.

See Also

vswf.vsh, vswf.mpw, vswf.qlm, vswf.jlm.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
lm<-5
b0<-vswf.mpw(lm,norm=TRUE)
b1<-vswf.gpw(0,0,1,1/sqrt(2),1i/sqrt(2),0,lm,code="C")
b2<-vswf.gpw(0,0,1,1/sqrt(2),1i/sqrt(2),0,lm,code="R")
b3<-vswf.gpw(0,0,1,1/sqrt(2),1i/sqrt(2),0,lm,code="R",implicit=FALSE)

a<-vswf.mpw(lm,norm=TRUE)
b<-vswf.gpw(0,0,1,1/sqrt(2),1i/sqrt(2),0,lm)
#
plot(Re(a$GTE),type='b')
points(Re(b$GTE),pch=4,col='red',type='b')
#
plot(Re(a$GTM),type='b')
points(Re(b$GTM),pch=4,col='red',type='b')
#
plot(Im(a$GTE),type='b')
points(Im(b$GTE),pch=4,col='red',type='b')
#
plot(Im(a$GTM),type='b')
points(Im(b$GTM),pch=4,col='red',type='b')

wendellopes/rvswf documentation built on May 4, 2019, 4:19 a.m.