42 virtual doublereal
vdot(doublereal t);
52 virtual doublereal
Q(doublereal t);
69 void setThermalResistance(doublereal Rth) {
85 if (epsilon > 1.0 || epsilon < 0.0)
87 "emissivity must be between 0.0 and 1.0");
91 double getEmissivity()
const {
125 return (m_left != 0 && m_right != 0);
149 return m_surf[leftright];
155 return m_chem[leftright];
160 void setCoverages(
int leftright,
const doublereal* cov);
168 void setCoverages(
int leftright,
const std::string& cov);
181 return m_pleft.size();
183 return m_pright.size();
186 void addSensitivityReaction(
int leftright,
size_t rxn);
187 void setSensitivityParameters(
int lr,
double* params);
188 void resetSensitivityParameters(
int lr);
196 doublereal m_area, m_k, m_rrth;
202 std::vector<size_t> m_pleft, m_pright;
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.
Cantera::Kinetics * kinetics(int leftright)
Return a pointer to the surface kinetics object for the left (leftright=0) or right (leftright=1) wal...
virtual doublereal Q(doublereal t)
Heat flow rate through the wall (W).
bool install(ReactorBase &leftReactor, ReactorBase &rightReactor)
Install the wall between two reactors or reservoirs.
void setKinetics(Cantera::Kinetics *leftMechanism, Cantera::Kinetics *rightMechanism)
Specify the heterogeneous reaction mechanisms for each side of the wall.
size_t nSensParams(int lr) const
Number of sensitivity parameters associated with reactions on the left (lr = 0) or right (lr = 1) sid...
void setHeatTransferCoeff(doublereal U)
Set the overall heat transfer coefficient [W/m^2/K].
doublereal area()
Area in m^2.
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
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.
Base class for exceptions thrown by Cantera classes.
Base class for stirred reactors.
void setEmissivity(doublereal epsilon)
Set the emissivity.
double getHeatTransferCoeff() const
Get the overall heat transfer coefficient [W/m^2/K].
void syncCoverages(int leftright)
Set the coverages in the surface phase object to the values for this wall surface.
Cantera::SurfPhase * surface(int leftright)
Return a pointer to the surface phase object for the left (leftright=0) or right (leftright=1) wall s...
double getExpansionRateCoeff() const
Get the expansion rate coefficient.
void setVelocity(Cantera::Func1 *f=0)
Set the wall velocity to a specified function of time.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
virtual doublereal vdot(doublereal t)
Rate of volume change (m^3/s) for the adjacent reactors.
double getArea() const
Get the area [m^2].
void setExpansionRateCoeff(doublereal k)
Set the expansion rate coefficient.
ReactorBase & left() const
Return a reference to the Reactor or Reservoir to the left of the wall.
void getCoverages(int leftright, doublereal *cov)
Write the coverages of the left or right surface into array cov.
virtual void initialize()
Called just before the start of integration.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
void setHeatFlux(Cantera::Func1 *q)
Specify the heat flux function .
void setArea(doublereal a)
Set the area [m^2].