FlowDevice.h Source File#
FlowDevice.h
Go to the documentation of this file.
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
Definition FlowDevice.h:24
double outletSpeciesMassFlowRate(size_t k)
Mass flow rate (kg/s) of outlet species k.
Definition FlowDevice.cpp:72
bool install(ReactorBase &in, ReactorBase &out)
Install a flow device between two reactors.
Definition FlowDevice.cpp:14
Func1 * m_tfunc
Function set by setTimeFunction; used by updateMassFlowRate.
Definition FlowDevice.h:124
double m_coeff
Coefficient set by derived classes; used by updateMassFlowRate.
Definition FlowDevice.h:127
virtual void setPressureFunction(Func1 *f)
Set a function of pressure that is used in determining the mass flow rate through the device.
Definition FlowDevice.cpp:45
const ReactorBase & out() const
Return a const reference to the downstream reactor.
Definition FlowDevice.h:76
virtual void setTimeFunction(Func1 *g)
Set a function of time that is used in determining the mass flow rate through the device.
Definition FlowDevice.cpp:59
virtual void updateMassFlowRate(double time)
Update the mass flow rate at time 'time'.
Definition FlowDevice.h:50
double evalPressureFunction()
Return current value of the pressure function.
Definition FlowDevice.cpp:50
Func1 * m_pfunc
Function set by setPressureFunction; used by updateMassFlowRate.
Definition FlowDevice.h:121
Base class for 'functor' classes that evaluate a function of one variable.
Definition Func1.h:75
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 and logging,...
const double Undef
Fairly random number to be used to initialize variables against to see if they are subsequently defin...
Definition ct_defs.h:164
Generated by 1.9.7