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

◆ viscothermal_attenuation()

MAYAFLUX_API double MayaFlux::Kinesis::Acoustics::viscothermal_attenuation ( double radius,
double frequency,
double sound_speed = 343.0,
double air_density = 1.2 )
nodiscardnoexcept

Plane wave attenuation of a circular tube from its wall boundary layers.

Parameters
radiusTube radius in metres
frequencyFrequency in Hz
sound_speedSpeed of sound
air_densityAir density
Returns
Amplitude attenuation in nepers per metre, from the Kirchhoff low reduced frequency result for air, viscous and thermal terms together. Zero for a value that is not positive and finite.

Definition at line 23 of file DuctLoss.cpp.

24{
25 if (!positive_finite(radius) || !positive_finite(frequency)
26 || !positive_finite(sound_speed) || !positive_finite(air_density)) {
27 return 0.0;
28 }
29
30 const double omega = 2.0 * std::numbers::pi * frequency;
31 const double thermal = (heat_capacity_ratio - 1.0) / std::sqrt(prandtl_number);
32 return std::sqrt(omega * air_viscosity / (2.0 * air_density)) * (1.0 + thermal) / (radius * sound_speed);
33}

Referenced by viscothermal_rates().

Here is the caller graph for this function: