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

◆ couple()

std::pair< double, double > MayaFlux::Nodes::Network::RadiationOperator::couple ( double end_pressure,
double interior_flow )
nodiscardoverridevirtual

Advance the end cell and its coupling by one sample.

Parameters
end_pressurePressure of the end cell at the start of the sample
interior_flowVolume velocity leaving the end cell into the duct, from the same sample
Returns
The end pressure after the sample, then the volume velocity entering the duct through the end face

Implements MayaFlux::Nodes::Network::TerminationOperator.

Definition at line 370 of file TerminationOperators.cpp.

371{
372 if (!m_ready) {
373 return { Acoustics::end_cell_pressure(end_pressure, m_end_gain, -interior_flow), 0.0 };
374 }
375
376 const auto [pressure, outflow] = Acoustics::radiation_step(m_coefficients, m_state, end_pressure, -interior_flow);
377 return { pressure, -outflow };
378}
Kinesis::Acoustics::RadiationCoefficients m_coefficients

References m_coefficients, m_end_gain, m_ready, and m_state.