Cantera  2.0
MassFlowController Class Reference

A class for mass flow controllers. More...

#include <flowControllers.h>

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

## Public Member Functions

virtual void updateMassFlowRate (doublereal time)
If a function of time has been specified for mdot, then update the stored mass flow rate.

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.

ReactorBasein () const
Return a reference to the upstream reactor.

const ReactorBaseout () 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::Func1m_func

vector_fp m_coeffs

int m_type

## Detailed Description

A class for mass flow controllers.

The mass flow rate is constant, independent of any other parameters.

Definition at line 23 of file flowControllers.h.

## Member Function Documentation

 virtual void updateMassFlowRate ( doublereal time )
inlinevirtual

If a function of time has been specified for mdot, then update the stored mass flow rate.

Otherwise, mdot is a constant, and does not need updating.

Reimplemented from FlowDevice.

Definition at line 41 of file flowControllers.h.

References Func1::eval().

 doublereal massFlowRate ( double time = -999.0 )
inlineinherited

Mass flow rate (kg/s).

Definition at line 65 of file FlowDevice.h.

 doublereal outletSpeciesMassFlowRate ( size_t k )
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.

 bool install ( ReactorBase & in, ReactorBase & out )
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.

Parameters
 in Upstream reactor. out Downstream reactor.

Definition at line 12 of file FlowDevice.cpp.

References Phase::nSpecies(), Phase::speciesIndex(), and Phase::speciesName().

 ReactorBase& in ( ) const
inlineinherited

Return a reference to the upstream reactor.

Definition at line 143 of file FlowDevice.h.

Referenced by Valve::updateMassFlowRate().

 const ReactorBase& out ( ) const
inlineinherited

Return a const reference to the downstream reactor.

Definition at line 148 of file FlowDevice.h.

Referenced by Valve::updateMassFlowRate().

 virtual void setParameters ( int n, doublereal * coeffs )
inlinevirtualinherited

set parameters

Definition at line 153 of file FlowDevice.h.

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