flowControllers.h Source File#
flowControllers.h
Go to the documentation of this file.
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
Definition FlowDevice.h:24
double m_coeff
Coefficient set by derived classes; used by updateMassFlowRate.
Definition FlowDevice.h:127
Base class for 'functor' classes that evaluate a function of one variable.
Definition Func1.h:75
void setMassFlowRate(double mdot)
Set the fixed mass flow rate (kg/s) through the mass flow controller.
Definition flowControllers.cpp:13
string type() const override
String indicating the flow device implemented.
Definition flowControllers.h:25
void setPressureFunction(Func1 *f) override
Set a function of pressure that is used in determining the mass flow rate through the device.
Definition flowControllers.h:49
void updateMassFlowRate(double time) override
If a function of time has been specified for mdot, then update the stored mass flow rate.
Definition flowControllers.cpp:21
An error indicating that an unimplemented function has been called.
Definition ctexceptions.h:195
A class for flow controllers where the flow rate is equal to the flow rate of a primary mass flow con...
Definition flowControllers.h:66
void setPrimary(FlowDevice *primary)
Set the primary mass flow controller.
Definition flowControllers.h:82
string type() const override
String indicating the flow device implemented.
Definition flowControllers.h:70
void setPressureCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
Definition flowControllers.h:100
void setTimeFunction(Func1 *g) override
Set a function of time that is used in determining the mass flow rate through the device.
Definition flowControllers.h:86
void updateMassFlowRate(double time) override
Update the mass flow rate at time 'time'.
Definition flowControllers.cpp:34
Supply a mass flow rate that is a function of the pressure drop across the valve.
Definition flowControllers.h:124
void setValveCoeff(double c)
Set the proportionality constant between pressure drop and mass flow rate.
Definition flowControllers.h:142
string type() const override
String indicating the flow device implemented.
Definition flowControllers.h:128
void updateMassFlowRate(double time) override
Compute the current mass flow rate, based on the pressure difference.
Definition flowControllers.cpp:52
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Generated by