treams.PlaneWaveBasisByComp.byunitvector¶
- PlaneWaveBasisByComp.byunitvector(k0, material=Material(1, 1, 0), modetype='up')¶
Create a complete basis
PlaneWaveBasis
.A plane wave basis is considered complete, when all three Cartesian components and the polarization is 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 (
Material
or tuple, optional) – Material definition. Defaults to vacuum/air.modetype (str, optional) – Propagation direction. Defaults to “up”.