ReactorBase.cpp Source File#
ReactorBase.cpp
Go to the documentation of this file.
Header file for class ReactorSurface.
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
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
Definition FlowDevice.h:24
void restoreState(const vector< double > &state)
Restore a state saved on a previous call to saveState.
Definition Phase.cpp:260
void saveState(vector< double > &state) const
Save the current internal state of the phase.
Definition Phase.cpp:236
FlowDevice & outlet(size_t n=0)
Return a reference to the n-th outlet FlowDevice connected to this reactor.
Definition ReactorBase.cpp:114
WallBase & wall(size_t n)
Return a reference to the n-th Wall connected to this reactor.
Definition ReactorBase.cpp:61
void addOutlet(FlowDevice &outlet)
Connect an outlet FlowDevice to this reactor.
Definition ReactorBase.cpp:46
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
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
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
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
ReactorSurface * surface(size_t n)
Return a reference to the n-th ReactorSurface connected to this reactor.
Definition ReactorBase.cpp:74
void setNeedsReinit()
Called to trigger integrator reinitialization before further integration.
Definition ReactorNet.h:272
A surface where reactions can occur that is in contact with the bulk fluid of a Reactor.
Definition ReactorSurface.h:21
void setReactor(ReactorBase *reactor)
Set the reactor that this Surface interacts with.
Definition ReactorSurface.cpp:42
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
Generated by