51 "To be changed after Cantera 2.5. "
52 "Return string instead of magic number; use "
53 "Reactor::typeStr during transition");
67 void insert(shared_ptr<Solution> sol) {
97 virtual size_t neq() {
108 virtual void getState(doublereal* y);
119 virtual void evalEqs(doublereal t, doublereal* y,
120 doublereal* ydot, doublereal* params);
180 virtual size_t speciesIndex(
const std::string& nm)
const;
228 std::vector<SensitivityParameter> m_sensParams;
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
Public interface for kinetics managers.
Base class for stirred reactors.
thermo_t & contents()
return a reference to the contents.
virtual void setThermoMgr(thermo_t &thermo)
Specify the mixture contained in the reactor.
Class Reactor is a general-purpose class for stirred reactors.
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 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.
virtual void updateSurfaceState(double *y)
Update the state of SurfPhase objects attached to this reactor.
void insert(G &contents)
Insert something into the reactor.
virtual double evalSurfaces(double t, double *ydot)
Evaluate terms related to surface reactions.
virtual void applySensitivity(double *params)
Set reaction rate multipliers based on the sensitivity variables in params.
Kinetics * m_kin
Pointer to the homogeneous Kinetics object that handles the reactions.
bool getAdvanceLimits(double *limits)
Retrieve absolute step size limits during advance.
virtual void evalWalls(double t)
Evaluate terms related to Walls.
virtual std::string typeStr() const
String indicating the reactor model implemented.
bool energyEnabled() const
Returns true if solution of the energy equation is enabled.
virtual void addSensitivitySpeciesEnthalpy(size_t k)
Add a sensitivity parameter associated with the enthalpy formation of species k (in the homogeneous p...
virtual void getState(doublereal *y)
Get the the current state of the reactor.
virtual size_t neq()
Number of equations (state variables) for this reactor.
doublereal m_mass
total mass
virtual void addSensitivityReaction(size_t rxn)
Add a sensitivity parameter associated with the reaction number rxn (in the homogeneous phase).
doublereal m_Q
net heat transfer through walls [W]
virtual void setChemistry(bool cflag=true)
Enable or disable changes in reactor composition due to chemical reactions.
virtual std::string componentName(size_t k)
Return the name of the solution component with index i.
vector_fp m_sdot
Production rates of gas phase species on surfaces [kmol/s].
virtual void setKineticsMgr(Kinetics &kin)
Specify chemical kinetics governing the reactor.
void setAdvanceLimit(const std::string &nm, const double limit)
Set individual step size limit for compoment name nm
virtual void syncState()
Set the state of the reactor to correspond to the state of the associated ThermoPhase object.
bool hasAdvanceLimits()
Check whether Reactor object uses advance limits.
void setAdvanceLimits(const double *limits)
Set absolute step size limits during advance.
virtual void setEnergy(int eflag=1)
Set the energy equation on or off.
virtual void resetSensitivity(double *params)
Reset the reaction rate multipliers.
virtual void initialize(doublereal t0=0.0)
Initialize the reactor.
virtual void evalEqs(doublereal t, doublereal *y, doublereal *ydot, doublereal *params)
virtual void getSurfaceInitialConditions(double *y)
Get initial conditions for SurfPhase objects attached to this reactor.
virtual size_t nSensParams()
Number of sensitivity parameters associated with this reactor (including walls)
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...
vector_fp m_wdot
Species net molar production rates.
vector_fp m_advancelimits
Advance step limit.
vector_fp m_uk
Species molar internal energies.
virtual void updateConnected(bool updatePressure)
Update the state information needed by connected reactors and flow devices.
doublereal m_vdot
net rate of volume change from moving walls [m^3/s]
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
Namespace for the Cantera kernel.