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;
31 FlowDevice() : m_mdot(0.0), m_func(0), m_type(0),
32 m_nspin(0), m_nspout(0),
72 virtual bool ready() {
73 return (m_in != 0 && m_out != 0);
89 std::copy(coeffs, coeffs + n, m_coeffs.begin());
109 size_t m_nspin, m_nspout;
112 std::vector<size_t> m_in2out, m_out2in;
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
void setFunction(Cantera::Func1 *f)
Set a function of a single variable that is used in determining the mass flow rate through the device...
const ReactorBase & out() const
Return a const reference to the downstream reactor.
doublereal enthalpy_mass()
specific enthalpy
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
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.
virtual void setParameters(int n, doublereal *coeffs)
set parameters
Base class for 'functor' classes that evaluate a function of one variable.
ReactorBase & in() const
Return a reference to the upstream reactor.
int type()
Return an integer indicating the type of flow device.
Base class for stirred reactors.
doublereal outletSpeciesMassFlowRate(size_t k)
bool install(ReactorBase &in, ReactorBase &out)
Install a flow device between two reactors.
doublereal massFlowRate(double time=-999.0)
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual void updateMassFlowRate(doublereal time)
Update the mass flow rate at time 'time'.
Contains declarations for string manipulation functions within Cantera.