26 "To be removed after Cantera 2.6. Use type() instead.");
27 return "MassFlowController";
30 virtual std::string
type()
const {
31 return "MassFlowController";
76 "To be removed after Cantera 2.6. Use type() instead.");
77 return "PressureController";
80 virtual std::string
type()
const {
81 return "PressureController";
85 virtual bool ready() {
86 return FlowDevice::ready() && m_master != 0;
89 void setMaster(FlowDevice* master) {
136 "To be removed after Cantera 2.6. Use type() instead.");
140 virtual std::string
type()
const {
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
double m_coeff
Coefficient set by derived classes; used by updateMassFlowRate.
Base class for 'functor' classes that evaluate a function of one variable.
A class for mass flow controllers.
void setMassFlowCoeff(double m)
Set the mass flow coefficient.
void setMassFlowRate(double mdot)
Set the fixed mass flow rate (kg/s) through the mass flow controller.
virtual std::string typeStr() const
String indicating the flow device implemented.
virtual void updateMassFlowRate(double time)
If a function of time has been specified for mdot, then update the stored mass flow rate.
double getMassFlowCoeff()
Get the mass flow coefficient.
virtual std::string type() const
String indicating the flow device implemented.
virtual void setPressureFunction(Func1 *f)
Set a function of pressure that is used in determining the mass flow rate through the device.
An error indicating that an unimplemented function has been called.
A class for flow controllers where the flow rate is equal to the flow rate of a "master" mass flow co...
virtual std::string typeStr() const
String indicating the flow device implemented.
virtual void updateMassFlowRate(double time)
Update the mass flow rate at time 'time'.
virtual void setTimeFunction(Func1 *g)
Set a function of time that is used in determining the mass flow rate through the device.
double getPressureCoeff()
Get the pressure coefficient.
void setPressureCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
virtual std::string type() const
String indicating the flow device implemented.
Supply a mass flow rate that is a function of the pressure drop across the valve.
virtual std::string typeStr() const
String indicating the flow device implemented.
void setValveCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
double getValveCoeff()
Get the valve coefficient.
virtual void updateMassFlowRate(double time)
Compute the current mass flow rate, based on the pressure difference.
virtual std::string type() const
String indicating the flow device implemented.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.
void warn_deprecated(const std::string &source, const AnyBase &node, const std::string &message)
A deprecation warning for syntax in an input file.