FlowDevice.cpp Source File#
FlowDevice.cpp
Go to the documentation of this file.
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
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
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
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
size_t speciesIndex(const string &name) const
Returns the index of a species named 'name' within the Phase object.
Definition Phase.cpp:129
double massFraction(size_t k) const
Return the mass fraction of the k-th species.
Definition ReactorBase.h:239
double pressure() const
Returns the current pressure (Pa) of the reactor.
Definition ReactorBase.h:224
void addOutlet(FlowDevice &outlet)
Connect an outlet FlowDevice to this reactor.
Definition ReactorBase.cpp:46
void addInlet(FlowDevice &inlet)
Connect an inlet FlowDevice to this reactor.
Definition ReactorBase.cpp:41
double enthalpy_mass() const
Returns the current enthalpy (J/kg) of the reactor's contents.
Definition ReactorBase.h:214
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
Generated by 1.9.7