treams.cw.to_sw

treams.cw.to_sw(l, m, polsw, kz, mu, polcw, k, helicity=True)

Coefficient for the expansion of a cylindrical wave in spherical waves.

Returns the coefficient for the basis change from a plane wave to a spherical wave. For multiple positions only diagonal values (with respect to the position) are returned.

The polarization values 0 and 1 refer to negative and positive helicity waves or, if helicity == False, to TE and TM parity.

Parameters:
  • l (int, array_like) – Degree of the spherical wave

  • m (int, array_like) – Order of the spherical wave

  • polsw (int, array_like) – Polarization of the destination mode

  • kz (int, array_like) – Z component of the cylindrical wave

  • mu (int, array_like) – Order of the cylindrical wave

  • polcw (int, array_like) – Polarization of the source mode

  • k (float or complex, array_like) – Wave number

  • helicity (bool, optional) – If true, helicity basis is assumed, else parity basis. Defaults to True.

Returns:

complex