14 Wall::Wall() : m_left(0), m_right(0),
16 m_area(1.0), m_k(0.0), m_rrth(0.0), m_emiss(0.0),
24 if (m_left || m_right) {
31 m_surf[0].setReactor(&rleft);
32 m_surf[1].setReactor(&rright);
38 warn_deprecated(
"Wall::setKinetics",
"Use class ReactorSurface instead. " 39 "To be removed after Cantera 2.3.");
40 m_surf[0].setKinetics(
left);
41 m_surf[1].setKinetics(
right);
48 rate1 += m_area * m_vf->
eval(t);
55 double q1 = (m_area * m_rrth) *
60 q1 += m_emiss * m_area *
StefanBoltz * (tl*tl*tl*tl - tr*tr*tr*tr);
63 q1 += m_area * m_qf->
eval(t);
70 m_surf[leftright].setCoverages(cov);
75 m_surf[leftright].setCoverages(cov);
80 m_surf[leftright].setCoverages(cov);
85 m_surf[leftright].getCoverages(cov);
90 m_surf[leftright].syncCoverages();
95 m_surf[leftright].addSensitivityReaction(rxn);
100 m_surf[0].setSensitivityParameters(params);
101 m_surf[1].setSensitivityParameters(params);
106 m_surf[0].resetSensitivityParameters();
107 m_surf[1].resetSensitivityParameters();
std::map< std::string, doublereal > compositionMap
Map connecting a string name with a double.
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.
Header for a simple thermodynamics model of a surface phase derived from ThermoPhase, assuming an ideal solution model (see Thermodynamic Properties and class SurfPhase).
Header file for class Wall.
const doublereal StefanBoltz
Stefan-Boltzmann constant.
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 warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
virtual doublereal eval(doublereal t) const
Evaluate the function.
void setSensitivityParameters(double *params)
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.
ReactorBase & left() const
Return a reference to the Reactor or Reservoir to the left of the wall.
Base class for stirred reactors.
void addWall(Wall &w, int lr)
Insert a Wall between this reactor and another reactor.
void syncCoverages(int leftright)
Set the coverages in the surface phase object to the values for this wall surface.
void addSensitivityReaction(int leftright, size_t rxn)
doublereal pressure() const
Returns the current pressure (Pa) of the reactor.
virtual doublereal vdot(doublereal t)
Rate of volume change (m^3/s) for the adjacent reactors.
Contains declarations for string manipulation functions within Cantera.
doublereal temperature() const
Returns the current temperature (K) of the reactor's contents.
Namespace for the Cantera kernel.
void getCoverages(int leftright, doublereal *cov)
Write the coverages of the left or right surface into array cov.