spherical_wave

Function spherical_wave 

Source
pub fn spherical_wave(
    mode: Mode,
    k: Complex,
    position: [f64; 3],
    helicity: bool,
    radial: Radial,
) -> Result<VectorWave>
Expand description

Evaluate a vector spherical wave in treams normalization. Parity polarization 0 is M, 1 is N; helicity is (N + (2pol-1) M)/sqrt(2).

Upstream: treams.special.vsw_rA, vsw_A, vsw_rM, vsw_M, vsw_rN and vsw_N, converted to Cartesian components as by treams.special.vsph2car.