Go to the documentation of this file.
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.");
void setValveCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
double getPressureCoeff()
Get the pressure coefficient.
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.
An error indicating that an unimplemented function has been called.
virtual void setPressureFunction(Func1 *f)
Set a function of pressure that is used in determining the mass flow rate through the device.
double getMassFlowCoeff()
Get the mass flow coefficient.
Supply a mass flow rate that is a function of the pressure drop across the valve.
virtual void updateMassFlowRate(double time)
Compute the currrent mass flow rate, based on the pressure difference.
A class for flow controllers where the flow rate is equal to the flow rate of a "master" mass flow co...
double m_coeff
Coefficient set by derived classes; used by updateMassFlowRate.
double getValveCoeff()
Get the valve coefficient.
void setPressureCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
virtual void updateMassFlowRate(double time)
Update the mass flow rate at time 'time'.
virtual void updateMassFlowRate(double time)
If a function of time has been specified for mdot, then update the stored mass flow rate.
virtual std::string typeStr() const
String indicating the flow device implemented.
Base class for 'functor' classes that evaluate a function of one variable.
void setPressureCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
virtual void setTimeFunction(Func1 *g)
Set a function of time that is used in determining the mass flow rate through the device.
A class for mass flow controllers.
Namespace for the Cantera kernel.
virtual std::string typeStr() const
String indicating the flow device implemented.