7 #ifndef CT_FLOWDEVICE_H
8 #define CT_FLOWDEVICE_H
19 const int MFC_Type = 1;
20 const int PressureController_Type = 2;
21 const int Valve_Type = 3;
41 m_nspin(0), m_nspout(0),
67 updateMassFlowRate(time);
74 virtual void updateMassFlowRate(doublereal time) {}
80 doublereal enthalpy_mass();
138 virtual bool ready() {
139 return (m_in != 0 && m_out != 0);
155 std::copy(coeffs, coeffs + n, m_coeffs.begin());
159 void setMassFlowRate(doublereal mdot) {
173 size_t m_nspin, m_nspout;
176 std::vector<size_t> m_in2out, m_out2in;
178 void warn(std::string meth) {
179 writelog(std::string(
"Warning: method ") + meth +
" of base class "
180 +
" FlowDevice called. Nothing done.\n");