acdecom.WaveGuide.get_modalmatrix¶
-
WaveGuide.
get_modalmatrix
(f, **kwargs)¶ Returns the modal matrix that can be used for the mode decomposition. Takes flow-effects, temperature, and pressure into account.
\[p = M p_\pm\]where \(p_\pm\) is a row vector containing the complex mode amplitudes of all cut-on modes in \(z_+\) and \(z_-\) direction and \(p\) is a row vector with measured pressure values in the frequency domain.
- Parameters
f (float) – Frequency in Hz.
Mach_number (float, optional) – Mach_number of the medium inside the waveguide. Defaults to the value stored in self.M. If specified, it overwrites the value stored in self.M.
t (float, optional) – Temperature of the medium inside the waveguide. Defaults to the value stored in self.t. If specified, it overwrites the value stored in self.t.
Ps (float, optional) – Static pressure of the medium inside the waveguide. Defaults to the value stored in self.p0. If specified, it overwrites the value stored in self.p0.
- Returns
The modal matrix with the dimensions (Microphones x (2 x cuton_mode))
- Return type
numpy.ndArray