Cantera
2.0
|
Valve objects supply a mass flow rate that is a function of the pressure drop across the valve. More...
#include <flowControllers.h>
Public Member Functions | |
virtual bool | ready () |
virtual void | updateMassFlowRate (doublereal time) |
Compute the currrent mass flow rate, based on the pressure difference. | |
int | type () |
doublereal | massFlowRate (double time=-999.0) |
Mass flow rate (kg/s). | |
doublereal | outletSpeciesMassFlowRate (size_t k) |
Mass flow rate of outlet species k. | |
doublereal | enthalpy_mass () |
bool | install (ReactorBase &in, ReactorBase &out) |
Setpoint. | |
ReactorBase & | in () const |
Return a reference to the upstream reactor. | |
const ReactorBase & | out () const |
Return a const reference to the downstream reactor. | |
virtual void | setParameters (int n, doublereal *coeffs) |
set parameters | |
void | setFunction (Cantera::Func1 *f) |
void | setMassFlowRate (doublereal mdot) |
Protected Attributes | |
doublereal | m_mdot |
Cantera::Func1 * | m_func |
vector_fp | m_coeffs |
int | m_type |
Valve objects supply a mass flow rate that is a function of the pressure drop across the valve.
The default behavior is a linearly proportional to the pressure difference. Note that real valves do not have this behavior, so this class does not model real, physical valves.
Definition at line 98 of file flowControllers.h.
|
inlinevirtual |
Compute the currrent mass flow rate, based on the pressure difference.
Reimplemented from FlowDevice.
Definition at line 114 of file flowControllers.h.
References Func1::eval(), FlowDevice::in(), and FlowDevice::out().
|
inlineinherited |
Mass flow rate (kg/s).
Definition at line 65 of file FlowDevice.h.
|
inherited |
Mass flow rate of outlet species k.
Returns zero if this species is not present in the upstream mixture.
Definition at line 56 of file FlowDevice.cpp.
References Cantera::npos.
|
inherited |
Setpoint.
Default = 0.0. Set the setpoint. May be changed at any time. By default, this does nothing. Set the controller gains. Returns false if the number of gains is too small, or if an illegal value is specified. Get the controller gains. Returns false if the 'gains' array is too small. Maximum difference between input and setpoint since last call to 'reset'. Install a flow device between two reactors.
in | Upstream reactor. |
out | Downstream reactor. |
Definition at line 12 of file FlowDevice.cpp.
References Phase::nSpecies(), Phase::speciesIndex(), and Phase::speciesName().
|
inlineinherited |
Return a reference to the upstream reactor.
Definition at line 143 of file FlowDevice.h.
Referenced by Valve::updateMassFlowRate().
|
inlineinherited |
Return a const reference to the downstream reactor.
Definition at line 148 of file FlowDevice.h.
Referenced by Valve::updateMassFlowRate().
|
inlinevirtualinherited |
set parameters
Definition at line 153 of file FlowDevice.h.