25 return "MassFlowController";
69 return "PressureController";
72 virtual bool ready() {
73 return FlowDevice::ready() && m_master != 0;
76 void setMaster(FlowDevice* master) {
134 "To be removed after Cantera 2.5. "
135 "Use Valve::setValveCoeff instead.");
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 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.
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 currrent mass flow rate, based on the pressure difference.
void setPressureCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.