Set the wall losses by hand.
- Parameters
-
| friction | Friction in 1/s, not negative |
| viscosity | Viscosity in m^2/s, not negative |
- Returns
- False, changing nothing, for a rate that is negative or not finite
Zero for both gives the lossless duct. The default is use_viscothermal_losses.
Definition at line 298 of file DuctNetwork.cpp.
299{
301 const Losses losses { .automatic =
false, .friction = friction, .viscosity = viscosity };
303 if (!next) {
304 return false;
305 }
306
307 next->keep_state = true;
308
311 return true;
312}
std::shared_ptr< Prepared > build(double length, const Profile &profile, const Losses &losses, double mouth_volume, const std::shared_ptr< TerminationOperator > &mouth, const std::shared_ptr< TerminationOperator > &bell) const
std::shared_ptr< TerminationOperator > m_mouth
void publish(std::shared_ptr< Prepared > next)
std::shared_ptr< TerminationOperator > m_bell
std::mutex m_producer_mutex
References build(), m_bell, m_length, m_losses, m_mouth, m_mouth_volume, m_producer_mutex, m_profile, and publish().