acoustotreams.ScalarPlaneWaveBasisByUnitVector.bycomp

ScalarPlaneWaveBasisByUnitVector.bycomp(k0, alignment='xy', material=AcousticMaterial(1.3, 343.0, 0.0))[source]

Create a ScalarPlaneWaveBasisByComp.

The plane wave basis is changed to a partial basis, where only two (real-valued) wave vector components are defined the third component is then inferred from the dispersion relation, which depends on the wave number and material, and a modetype that specifies the sign of the third component.

Parameters:
  • alignment (str, optional) – Wave vector components that are part of the partial basis. Defaults to “xy”, other permitted values are “yz” and “zx”.

  • k0 (float, optional) – Wave number. If given, it is checked that the current basis fulfils the dispersion relation.

  • material (acoustotreams.AcousticMaterial or tuple) – Material definition. Defaults to air.