MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ radiation_model_from_pade()

RadiationModel MayaFlux::Kinesis::Acoustics::radiation_model_from_pade ( double n1,
double d1,
double d2 )
nodiscardconstexprnoexcept

Network constants from the numerator and denominator of the Pade reflection coefficient R = -(1 - n1 s) / (1 - d1 s + d2 s^2).

With s = j k a. Fits the model's impedance to that reflection, matching both the end correction and the radiation resistance at low frequency. The mapping is solved from the impedance rather than taken from Eq. (20) of Silva et al., which carries an erratum.

Definition at line 45 of file Radiation.hpp.

46{
47 const double lambda = 0.5 * (d1 - n1);
48 const double gamma = 2.0 * lambda * lambda / (lambda * (d1 + n1) - d2) - 1.0;
49 const double theta = (0.5 * (d1 + n1) * (1.0 + gamma) - lambda) / gamma;
50 return { gamma, lambda, theta };
51}