PVWF_components.m File Reference

Functions

function PVWF_components (in R, in k, in alpha, in beta, in pol)
 Cartesian components of a vector plane wave with unit amplitude. More...
 

Function Documentation

◆ PVWF_components()

function PVWF_components ( in  R,
in  k,
in  alpha,
in  beta,
in  pol 
)

Cartesian components of a vector plane wave with unit amplitude.

Parameters
R(Nx3 float array): positions where to evaluate wave
k(float): wavenumber
alpha(float): azimuthal angle of propagation direction
beta(float): polar angle of propagation direction
pol(int): polarization (1=TE, 2=TM)
Return values
E_components(cell array): {Ex,Ey,Ez}