acoustotreams.ScalarPlaneWaveBasisByComp.byunitvector

ScalarPlaneWaveBasisByComp.byunitvector(k0, material=AcousticMaterial(1.3, 343.0, 0.0), modetype='up')[source]

Create a complete basis ScalarPlaneWaveBasis.

A plane wave basis is considered complete, when all three Cartesian components are defined for each mode. So, the specified wave number, material, and modetype is taken to calculate the third Cartesian wave vector. The modetype “up” (“down”) is for waves propagating in the positive (negative) direction with respect to the Cartesian axis that is orthogonal to the alignment.

Parameters:
  • k0 (float) – Wave number.

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

  • modetype (str, optional) – Propagation direction. Defaults to “up”.