44 double radius,
double frequency,
double sound_speed = 343.0,
double air_density = 1.2) noexcept;
58 double sound_speed = 343.0,
59 double air_density = 1.2,
60 double low_frequency = 150.0,
61 double high_frequency = 3000.0) noexcept;
Interleaved grid of a one dimensional acoustic bore.
std::vector< double > m_edge
bool active() const noexcept
double friction() const noexcept
double viscosity() const noexcept
std::vector< double > m_inverse_pivot
std::vector< double > m_mass
bool configure(const DuctGrid &grid, double friction, double viscosity)
Factor the loss for a grid.
std::vector< double > m_upper
void apply(std::span< double > velocity) const noexcept
Apply the loss to the velocities of a sample, in place.
Prepared implicit loss step for one duct grid.
double viscothermal_attenuation(double radius, double frequency, double sound_speed, double air_density) noexcept
Plane wave attenuation of a circular tube from its wall boundary layers.
std::pair< double, double > viscothermal_rates(double radius, double sound_speed, double air_density, double low_frequency, double high_frequency) noexcept
Friction and viscosity that match the tube's attenuation at two frequencies.
T velocity(const Memory::HistoryBuffer< T > &history, double dt) noexcept
First difference: rate of change of position.
Prepared grid and update gains of one bore.