ReactorBase.h Source File#
ReactorBase.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
An error indicating that an unimplemented function has been called.
Definition ctexceptions.h:195
virtual void setKineticsMgr(Kinetics &kin)
Specify chemical kinetics governing the reactor.
Definition ReactorBase.h:87
FlowDevice & outlet(size_t n=0)
Return a reference to the n-th outlet FlowDevice connected to this reactor.
Definition ReactorBase.cpp:114
double massFraction(size_t k) const
Return the mass fraction of the k-th species.
Definition ReactorBase.h:239
size_t nWalls()
Return the number of Wall objects connected to this reactor.
Definition ReactorBase.h:127
WallBase & wall(size_t n)
Return a reference to the n-th Wall connected to this reactor.
Definition ReactorBase.cpp:61
double density() const
Returns the current density (kg/m^3) of the reactor's contents.
Definition ReactorBase.h:204
void setInitialVolume(double vol)
Set the initial reactor volume. By default, the volume is 1.0 m^3.
Definition ReactorBase.h:77
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
virtual string type() const
String indicating the reactor model implemented.
Definition ReactorBase.h:59
void addWall(WallBase &w, int lr)
Insert a Wall between this reactor and another reactor.
Definition ReactorBase.cpp:51
void setNetwork(ReactorNet *net)
Set the ReactorNet that this reactor belongs to.
Definition ReactorBase.cpp:96
FlowDevice & inlet(size_t n=0)
Return a reference to the n-th inlet FlowDevice connected to this reactor.
Definition ReactorBase.cpp:110
double temperature() const
Returns the current temperature (K) of the reactor's contents.
Definition ReactorBase.h:209
vector< int > m_lr
Vector of length nWalls(), indicating whether this reactor is on the left (0) or right (1) of each wa...
Definition ReactorBase.h:268
virtual void setChemistry(bool cflag=true)
Enable or disable changes in reactor composition due to chemical reactions.
Definition ReactorBase.h:92
void addInlet(FlowDevice &inlet)
Connect an inlet FlowDevice to this reactor.
Definition ReactorBase.cpp:41
virtual void syncState()
Set the state of the reactor to correspond to the state of the associated ThermoPhase object.
Definition ReactorBase.cpp:30
const double * massFractions() const
Return the vector of species mass fractions.
Definition ReactorBase.h:234
double intEnergy_mass() const
Returns the current internal energy (J/kg) of the reactor's contents.
Definition ReactorBase.h:219
virtual void setThermoMgr(ThermoPhase &thermo)
Specify the mixture contained in the reactor.
Definition ReactorBase.cpp:20
void restoreState()
Set the state of the Phase object associated with this reactor to the reactor's current state.
Definition ReactorBase.cpp:79
double residenceTime()
Return the residence time (s) of the contents of this reactor, based on the outlet mass flow rates an...
Definition ReactorBase.cpp:101
size_t nOutlets()
Return the number of outlet FlowDevice objects connected to this reactor.
Definition ReactorBase.h:122
size_t nInlets()
Return the number of inlet FlowDevice objects connected to this reactor.
Definition ReactorBase.h:116
ReactorSurface * surface(size_t n)
Return a reference to the n-th ReactorSurface connected to this reactor.
Definition ReactorBase.cpp:74
double enthalpy_mass() const
Returns the current enthalpy (J/kg) of the reactor's contents.
Definition ReactorBase.h:214
A surface where reactions can occur that is in contact with the bulk fluid of a Reactor.
Definition ReactorSurface.h:21
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
Base class for 'walls' (walls, pistons, etc.) connecting reactors.
Definition Wall.h:22
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,...
Generated by 1.9.7