10 #define CT_FLOWCONTR_H
33 virtual bool ready() {
34 return FlowDevice::ready() && m_mdot >= 0.0;
43 m_mdot = m_func->
eval(time);
64 m_type = PressureController_Type;
69 virtual bool ready() {
70 return FlowDevice::ready() && m_master != 0;
77 virtual void updateMassFlowRate(doublereal time) {
79 m_mdot = master_mdot + m_coeffs[0]*(
in().pressure() -
108 virtual bool ready() {
109 return FlowDevice::ready() && m_coeffs.size() >= 1;
115 double delta_P =
in().pressure() -
out().pressure();
117 m_mdot = m_func->
eval(delta_P);
119 m_mdot = m_coeffs[0]*delta_P;