6#ifndef CT_REACTOR_SURFACE_H
7#define CT_REACTOR_SURFACE_H
29 virtual string type()
const {
30 return "ReactorSurface";
71 return m_params.size();
116 vector<double> m_cov;
117 vector<SensitivityParameter> m_params;
Public interface for kinetics managers.
Base class for stirred reactors.
A surface where reactions can occur that is in contact with the bulk fluid of a Reactor.
bool m_defaultNameSet
true if default name has been previously set.
double area() const
Returns the surface area [m^2].
void setReactor(ReactorBase *reactor)
Set the reactor that this Surface interacts with.
void setSensitivityParameters(const double *params)
Set reaction rate multipliers.
virtual string type() const
String indicating the wall model implemented.
bool setDefaultName(map< string, int > &counts)
Set the default name of a wall. Returns false if it was previously set.
void setName(const string &name)
Set reactor surface name.
size_t nSensParams() const
Number of sensitivity parameters associated with reactions on this surface.
void getCoverages(double *cov) const
Get the surface coverages.
void setArea(double a)
Set the surface area [m^2].
void resetSensitivityParameters()
Set reaction rate multipliers back to their initial values.
void syncState()
Set the coverages and temperature in the surface phase object to the values for this surface.
string m_name
Reactor surface name.
void setCoverages(const double *cov)
Set the surface coverages.
void setKinetics(Kinetics *kin)
Set the InterfaceKinetics object for this surface.
SurfPhase * thermo()
Accessor for the SurfPhase object.
void addSensitivityReaction(size_t i)
Enable calculation of sensitivities with respect to the rate constant for reaction i.
Kinetics * kinetics()
Accessor for the InterfaceKinetics object.
string name() const
Retrieve reactor surface name.
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
Namespace for the Cantera kernel.
map< string, double > Composition
Map from string names to doubles.