acoustotreams.translate¶
- acoustotreams.translate(r, *, basis, k0=None, material=AcousticMaterial(1.3, 343.0, 0.0), modetype=None, where=True)[source]¶
Translation matrix.
Translate the given basis modes along the translation vector.
- Parameters:
r (array-like) – Translation vector
basis (
ScalarBasisSetor tuple) – Basis set, if it is a tuple of two basis sets the output and input modes are taken accordingly, else both sets of modes are the same.k0 (float, optional) – Wave number.
material (
AcousticMaterialor tuple, optional) – Material parameters.modetype (str, optional) – Wave mode, only used for
ScalarPlaneWaveBasisByComp.where (array-like, bool, optional) – Only evaluate parts of the translation matrix, the given array must have a shape that matches the output shape.