[][src]Function autd_utils::attenuation_coef

pub fn attenuation_coef(
    freq: f64,
    hr: f64,
    ps: f64,
    ps0: f64,
    t: f64,
    t0: f64,
    t01: f64
) -> f32

Returns an attenuation coefficients due to atmospheric absorption in a unit of [Np/mm].

Bass, Henry E., et al. "Atmospheric absorption of sound: Further developments." The Journal of the Acoustical Society of America 97.1 (1995): 680-683.

Arguments

  • freq - A frequency of sound [Hz]
  • hr - A relative humidity [%]
  • ps - An atmospheric pressure [atm]
  • ps0 - A reference atmospheric pressure [atm]
  • t - An atmospheric temperature [K]
  • t0 - A reference temperature [K]
  • t01 - A triple-point isotherm temperature [K]