6 #ifndef CT_FLOWDEVICE_H 7 #define CT_FLOWDEVICE_H 18 const int MFC_Type = 1;
19 const int PressureController_Type = 2;
20 const int Valve_Type = 3;
30 FlowDevice() : m_mdot(0.0), m_func(0), m_type(0),
31 m_nspin(0), m_nspout(0),
67 virtual bool ready() {
68 return (m_in != 0 && m_out != 0);
86 std::copy(coeffs, coeffs + n, m_coeffs.begin());
106 size_t m_nspin, m_nspout;
109 std::vector<size_t> m_in2out, m_out2in;
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
virtual void setParameters(int n, const double *coeffs)
set parameters.
doublereal enthalpy_mass()
specific enthalpy
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
const ReactorBase & out() const
Return a const reference to the downstream reactor.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
void setMassFlowRate(doublereal mdot)
Set the fixed mass flow rate (kg/s) through the flow device.
Base class for 'functor' classes that evaluate a function of one variable.
int type()
Return an integer indicating the type of flow device.
Base class for stirred reactors.
doublereal outletSpeciesMassFlowRate(size_t k)
Mass flow rate (kg/s) of outlet species k.
bool install(ReactorBase &in, ReactorBase &out)
Install a flow device between two reactors.
doublereal massFlowRate(double time=-999.0)
Mass flow rate (kg/s).
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
void setFunction(Func1 *f)
Set a function of a single variable that is used in determining the mass flow rate through the device...
virtual void updateMassFlowRate(doublereal time)
Update the mass flow rate at time 'time'.
Contains declarations for string manipulation functions within Cantera.
ReactorBase & in() const
Return a reference to the upstream reactor.
Namespace for the Cantera kernel.