Cantera  2.1.2
Public Member Functions | Protected Attributes | List of all members
PressureController Class Reference

A class for flow controllers where the flow rate is equal to the flow rate of a "master" mass flow controller plus a correction proportional to the pressure difference between the inlet and outlet. More...

#include <flowControllers.h>

Inheritance diagram for PressureController:
[legend]
Collaboration diagram for PressureController:
[legend]

Public Member Functions

virtual bool ready ()
 
void setMaster (FlowDevice *master)
 
virtual void updateMassFlowRate (doublereal time)
 Update the mass flow rate at time 'time'. More...
 
- Public Member Functions inherited from FlowDevice
int type ()
 Return an integer indicating the type of flow device. More...
 
doublereal massFlowRate (double time=-999.0)
 
doublereal outletSpeciesMassFlowRate (size_t k)
 
doublereal enthalpy_mass ()
 specific enthalpy More...
 
bool install (ReactorBase &in, ReactorBase &out)
 Install a flow device between two reactors. More...
 
ReactorBasein () const
 Return a reference to the upstream reactor. More...
 
const ReactorBaseout () const
 Return a const reference to the downstream reactor. More...
 
virtual void setParameters (int n, doublereal *coeffs)
 set parameters More...
 
void setFunction (Cantera::Func1 *f)
 Set a function of a single variable that is used in determining the mass flow rate through the device. More...
 
void setMassFlowRate (doublereal mdot)
 Set the fixed mass flow rate (kg/s) through the flow device. More...
 

Protected Attributes

FlowDevicem_master
 
- Protected Attributes inherited from FlowDevice
doublereal m_mdot
 
Cantera::Func1m_func
 
vector_fp m_coeffs
 
int m_type
 

Detailed Description

A class for flow controllers where the flow rate is equal to the flow rate of a "master" mass flow controller plus a correction proportional to the pressure difference between the inlet and outlet.

Definition at line 51 of file flowControllers.h.

Member Function Documentation

virtual void updateMassFlowRate ( doublereal  time)
inlinevirtual

Update the mass flow rate at time 'time'.

This must be overloaded in subclassess to update m_mdot.

Reimplemented from FlowDevice.

Definition at line 66 of file flowControllers.h.

References FlowDevice::in(), FlowDevice::massFlowRate(), FlowDevice::out(), and ReactorBase::pressure().


The documentation for this class was generated from the following file: