56 setKineticsMgr(contents);
93 virtual size_t neq() {
115 virtual void evalEqs(doublereal t, doublereal* y,
116 doublereal* ydot, doublereal* params);
160 virtual size_t speciesIndex(
const std::string& nm)
const;
198 std::vector<size_t> m_pnum;
199 std::vector<size_t> m_nsens_wall;
virtual void getInitialConditions(doublereal t0, size_t leny, doublereal *y)
Called by ReactorNet to get the initial conditions.
vector_fp m_sdot
Production rates of gas phase species on surfaces [kmol/s].
doublereal m_mass
total mass
virtual size_t nSensParams()
Number of sensitivity parameters associated with this reactor (including walls)
vector_fp m_wdot
Species net molar production rates.
void setEnergy(int eflag=1)
Set the energy equation on or off.
virtual void addSensitivityReaction(size_t rxn)
Add a sensitivity parameter associated with the reaction number rxn (in the homogeneous phase)...
bool energyEnabled() const
Returns true if solution of the energy equation is enabled.
virtual void evalWalls(double t)
Evaluate terms related to Walls Calculates m_vdot and m_Q based on wall movement and heat transfer...
virtual void resetSensitivity(double *params)
Reset the reaction rate multipliers.
void enableChemistry()
Enable changes in reactor composition due to chemical reactions.
virtual void initialize(doublereal t0=0.0)
Initialize the reactor.
virtual void updateState(doublereal *y)
Set the state of the reactor to correspond to the state vector y.
Kinetics * m_kin
Pointer to the homogeneous Kinetics object that handles the reactions.
void insert(G &contents)
Insert something into the reactor.
virtual void applySensitivity(double *params)
Set reaction rate multipliers based on the sensitivity variables in params.
doublereal m_Q
net heat transfer through walls [W]
virtual double evalSurfaces(double t, double *ydot)
Evaluate terms related to surface reactions Calculates m_sdot and rate of change in surface species c...
Public interface for kinetics managers.
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
Base class for stirred reactors.
virtual size_t speciesIndex(const std::string &nm) const
Return the index in the solution vector for this reactor of the species named nm, in either the homog...
virtual void setThermoMgr(thermo_t &thermo)
Specify the mixture contained in the reactor.
void disableChemistry()
Disable changes in reactor composition due to chemical reactions.
thermo_t & contents()
return a reference to the contents.
virtual void syncState()
Set the state of the reactor to correspond to the state of the associated ThermoPhase object...
virtual int type() const
Return a constant indicating the type of this Reactor.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
size_t nReactions() const
Number of reactions in the reaction mechanism.
std::vector< std::pair< void *, int > > getSensitivityOrder() const
Return a vector specifying the ordering of objects to use when determining sensitivity parameter indi...
virtual size_t neq()
Number of equations (state variables) for this reactor.
virtual size_t componentIndex(const std::string &nm) const
Return the index in the solution vector for this reactor of the component named nm.
virtual void evalEqs(doublereal t, doublereal *y, doublereal *ydot, doublereal *params)
doublereal m_vdot
net rate of volume change from moving walls [m^3/s]
vector_fp m_uk
Species molar internal energies.
virtual void updateSurfaceState(double *y)
Update the state of SurfPhase objects attached to this reactor.
virtual void getSurfaceInitialConditions(double *y)
Get initial conditions for SurfPhase objects attached to this reactor.
Class Reactor is a general-purpose class for stirred reactors.