acoustotreams.spw.permute_xyz

acoustotreams.spw.permute_xyz(kx, ky, kz, inverse=False)[source]

Change the coordinate system of the plane wave

A plane wave in the coordinate system \((x, y, z)\) with primary direction of propagation along the z-axis is described in the system \((x', y', z') = (y, z, x)\). The inverse transformation is also possible.

The function is essentially diagonal in the wave number, because we always describe the source and destination mode in the unprimed coordinate system.

Parameters:
  • kxa (float, array_like) – X component of destination mode wave vector

  • kya (float or complex, array_like) – Y component of destination mode wave vector

  • kza (float, array_like) – Z component of destination mode wave vector

  • kx (float, array_like) – X component of source mode wave vector

  • ky (float, array_like) – Y component of source mode wave vector

  • kz (float or complex, array_like) – Z component of source mode wave vector

  • inverse (bool, optional) – Use the inverse transformation.

Returns:

complex