43 virtual doublereal
vdot(doublereal t);
55 virtual doublereal
Q(doublereal t);
74 void setThermalResistance(doublereal Rth) {
90 if (epsilon > 1.0 || epsilon < 0.0) {
92 "emissivity must be between 0.0 and 1.0");
97 double getEmissivity()
const {
131 return (m_left != 0 && m_right != 0);
157 return m_surf[leftright].thermo();
163 return &m_surf[leftright];
171 return m_surf[leftright].kinetics();
178 void setCoverages(
int leftright,
const doublereal* cov);
190 void setCoverages(
int leftright,
const std::string& cov);
208 return m_surf[lr].nSensParams();
227 std::vector<ReactorSurface> m_surf;
229 doublereal m_area, m_k, m_rrth;
std::map< std::string, doublereal > compositionMap
Map connecting a string name with a double.
virtual bool ready()
True if the wall is correctly configured and ready to use.
const ReactorBase & right()
Return a reference to the Reactor or Reservoir to the right of the wall.
void setKinetics(Kinetics *leftMechanism, Kinetics *rightMechanism)
Specify the heterogeneous reaction mechanisms for each side of the wall.
void setVelocity(Func1 *f=0)
Set the wall velocity to a specified function of time.
SurfPhase * surface(int leftright)
Return a pointer to the surface phase object for the left (leftright=0) or right (leftright=1) wall s...
virtual doublereal Q(doublereal t)
Heat flow rate through the wall (W).
void resetSensitivityParameters()
bool install(ReactorBase &leftReactor, ReactorBase &rightReactor)
Install the wall between two reactors or reservoirs.
void setHeatTransferCoeff(doublereal U)
Set the overall heat transfer coefficient [W/m^2/K].
void setSensitivityParameters(double *params)
doublereal area()
Area in m^2.
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
ReactorSurface * reactorSurface(int leftright)
Represents a wall between between two ReactorBase objects.
void setCoverages(int leftright, const doublereal *cov)
Set the surface coverages on the left (leftright = 0) or right (leftright = 1) surface to the values ...
Public interface for kinetics managers.
Base class for 'functor' classes that evaluate a function of one variable.
double getArea() const
Get the area [m^2].
size_t nSensParams(int lr) const
Number of sensitivity parameters associated with reactions on the left (lr = 0) or right (lr = 1) sid...
Base class for exceptions thrown by Cantera classes.
ReactorBase & left() const
Return a reference to the Reactor or Reservoir to the left of the wall.
Base class for stirred reactors.
void setHeatFlux(Func1 *q)
Specify the heat flux function .
void setEmissivity(doublereal epsilon)
Set the emissivity.
virtual void initialize()
Called just before the start of integration.
Header file for class ReactorSurface.
Kinetics * kinetics(int leftright)
Return a pointer to the surface kinetics object for the left (leftright=0) or right (leftright=1) wal...
void syncCoverages(int leftright)
Set the coverages in the surface phase object to the values for this wall surface.
double getExpansionRateCoeff() const
Get the expansion rate coefficient.
void addSensitivityReaction(int leftright, size_t rxn)
virtual doublereal vdot(doublereal t)
Rate of volume change (m^3/s) for the adjacent reactors.
void setExpansionRateCoeff(doublereal k)
Set the expansion rate coefficient.
Namespace for the Cantera kernel.
double getHeatTransferCoeff() const
Get the overall heat transfer coefficient [W/m^2/K].
void getCoverages(int leftright, doublereal *cov)
Write the coverages of the left or right surface into array cov.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
void setArea(doublereal a)
Set the area [m^2].