56 setKineticsMgr(contents);
93 virtual size_t neq() {
115 virtual void evalEqs(doublereal t, doublereal* y,
116 doublereal* ydot, doublereal* params);
163 std::vector<size_t> m_pnum;
164 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.
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.
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.
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 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 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
Tolerance on the temperature.
vector_fp m_uk
Species molar internal energies.
Class Reactor is a general-purpose class for stirred reactors.