treams.pw.to_sw

treams.pw.to_sw(l, m, polsw, kx, ky, kz, polpw, helicity=True)

Coefficient for the expansion of a plane 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

  • kx (float, array_like) – X component of plane wave’s wave vector

  • ky (float, array_like) – Y component of plane wave’s wave vector

  • kz (float, array_like) – Z component of plane wave’s wave vector

  • polpw (int, array_like) – Polarization of the plane wave

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

Returns:

complex