47 "To be removed after Cantera 2.6. Use type() instead.");
51 virtual std::string
type()
const {
65 void insert(shared_ptr<Solution> sol);
103 virtual void getState(doublereal* y);
116 virtual void evalEqs(
double t,
double* y,
double* ydot,
double* params) {
126 virtual void eval(
double t,
double* LHS,
double* RHS);
186 virtual size_t speciesIndex(
const std::string& nm)
const;
199 virtual void evalSurfaces(
double* LHS,
double* RHS,
double* sdot);
243 std::vector<SensitivityParameter> m_sensParams;
Public interface for kinetics managers.
An error indicating that an unimplemented function has been called.
Base class for stirred reactors.
virtual void setThermoMgr(ThermoPhase &thermo)
Specify the mixture contained in the reactor.
ThermoPhase & contents()
return a reference to the contents.
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 evalSurfaces(double *LHS, double *RHS, double *sdot)
Evaluate terms related to surface reactions.
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 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 eval(double t, double *LHS, double *RHS)
Evaluate the reactor governing equations.
virtual void evalWalls(double t)
Evaluate terms related to Walls.
double m_Q
net heat transfer out of the reactor, through walls [W]
virtual std::string typeStr() const
String indicating the reactor model implemented.
bool energyEnabled() const
Returns true if solution of the energy equation is enabled.
size_t neq()
Number of equations (state variables) for this reactor.
virtual void addSensitivitySpeciesEnthalpy(size_t k)
Add a sensitivity parameter associated with the enthalpy formation of species k (in the homogeneous p...
virtual void evalEqs(double t, double *y, double *ydot, double *params)
double m_Qdot
net heat transfer into the reactor, through walls [W]
virtual void getState(doublereal *y)
Get the the current state of the 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).
void setEnergy(int eflag=1)
Set the energy equation on or off.
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 component 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 std::string type() const
String indicating the reactor model implemented.
virtual void resetSensitivity(double *params)
Reset the reaction rate multipliers.
virtual void initialize(doublereal t0=0.0)
Initialize the reactor.
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...
void setChemistry(bool cflag=true)
Enable or disable changes in reactor composition due to chemical reactions.
vector_fp m_wdot
Species net molar production rates.
vector_fp m_advancelimits
!< Number of variables associated with reactor surfaces
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]
Namespace for the Cantera kernel.
void warn_deprecated(const std::string &source, const AnyBase &node, const std::string &message)
A deprecation warning for syntax in an input file.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.