62 "Use setChemistry instead. To be removed after Cantera 2.3");
70 "Use setChemistry instead. To be removed after Cantera 2.3");
99 virtual size_t neq() {
122 virtual void getState(doublereal* y);
133 virtual void evalEqs(doublereal t, doublereal* y,
134 doublereal* ydot, doublereal* params);
174 virtual size_t speciesIndex(
const std::string& nm)
const;
212 std::vector<SensitivityParameter> m_sensParams;
void setChemistry(bool cflag=true)
Enable or disable changes in reactor composition due to chemical reactions.
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)...
virtual void evalWalls(double t)
Evaluate terms related to Walls.
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual void resetSensitivity(double *params)
Reset the reaction rate multipliers.
void enableChemistry()
Enable changes in reactor composition due to chemical reactions.
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 std::string componentName(size_t k)
Return the name of the solution component with index i.
virtual void initialize(doublereal t0=0.0)
Initialize the reactor.
bool chemistryEnabled() const
Returns true if changes in the reactor composition due to chemical reactions are enabled.
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.
Public interface for kinetics managers.
virtual void getState(doublereal *y)
Get the the current state of the reactor.
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 void syncState()
Set the state of the reactor to correspond to the state of the associated ThermoPhase object...
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual size_t componentIndex(const std::string &nm) const
Return the index in the solution vector for this reactor of the component named nm.
bool energyEnabled() const
Returns true if solution of the energy equation is enabled.
virtual int type() const
Return a constant indicating the type of this Reactor.
virtual size_t neq()
Number of equations (state variables) for this reactor.
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.
Namespace for the Cantera kernel.
virtual void addSensitivitySpeciesEnthalpy(size_t k)
Add a sensitivity parameter associated with the enthalpy formation of species k (in the homogeneous p...
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.