37 "To be removed after Cantera 2.6. Use type() instead.");
43 virtual std::string
type()
const {
49 if (m_mdot ==
Undef) {
51 "Flow device is not ready. Try initializing the reactor network.");
75 virtual bool ready() {
76 return (m_in != 0 && m_out != 0);
112 size_t m_nspin, m_nspout;
115 std::vector<size_t> m_in2out, m_out2in;
Base class for exceptions thrown by Cantera classes.
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
double 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.
virtual std::string typeStr() const
String indicating the flow device implemented.
Func1 * m_tfunc
Function set by setTimeFunction; used by updateMassFlowRate.
double m_coeff
Coefficient set by derived classes; used by updateMassFlowRate.
double enthalpy_mass()
specific enthalpy
ReactorBase & in() const
Return a reference to the upstream reactor.
virtual void setPressureFunction(Func1 *f)
Set a function of pressure that is used in determining the mass flow rate through the device.
double massFlowRate()
Mass flow rate (kg/s).
const ReactorBase & out() const
Return a const reference to the downstream reactor.
virtual std::string type() const
String indicating the flow device implemented.
virtual void setTimeFunction(Func1 *g)
Set a function of time that is used in determining the mass flow rate through the device.
virtual void updateMassFlowRate(double time)
Update the mass flow rate at time 'time'.
Func1 * m_pfunc
Function set by setPressureFunction; used by updateMassFlowRate.
Base class for 'functor' classes that evaluate a function of one variable.
Base class for stirred reactors.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
This file contains definitions for utility functions and text for modules, inputfiles,...
Namespace for the Cantera kernel.
const double Undef
Fairly random number to be used to initialize variables against to see if they are subsequently defin...
void warn_deprecated(const std::string &source, const AnyBase &node, const std::string &message)
A deprecation warning for syntax in an input file.