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

◆ reed_flow()

MAYAFLUX_API double MayaFlux::Kinesis::Acoustics::reed_flow ( const ReedChannel & reed,
double difference )
nodiscardnoexcept

Volume velocity through the channel for a pressure difference.

Parameters
reedChannel
differenceMouth pressure minus bore pressure
Returns
Zero from the closing pressure up, and for a channel with any non-positive or non-finite field

Definition at line 25 of file Reed.cpp.

26{
27 if (!channel_valid(reed)) {
28 return 0.0;
29 }
30
31 const double opening = 1.0 - difference / reed.closing_pressure;
32 if (opening <= 0.0) {
33 return 0.0;
34 }
35 return std::copysign(reed_flow_coefficient(reed) * opening * std::sqrt(std::abs(difference)), difference);
36}
double reed_flow_coefficient(const ReedChannel &reed) noexcept
w H sqrt(2 / rho), the flow per unit of (1 - d / pM) sign(d) sqrt|d|.
Definition Reed.cpp:20

References reed_flow_coefficient().

Referenced by reed_mouth_step().

Here is the call graph for this function:
Here is the caller graph for this function: