44 virtual doublereal
vdot(doublereal t);
54 virtual doublereal
Q(doublereal t);
71 void setThermalResistance(doublereal Rth) {
87 if (epsilon > 1.0 || epsilon < 0.0)
89 "emissivity must be between 0.0 and 1.0");
93 double getEmissivity()
const {
127 return (m_left != 0 && m_right != 0);
151 return m_surf[leftright];
157 return m_chem[leftright];
162 void setCoverages(
int leftright,
const doublereal* cov);
175 return m_pleft.size();
177 return m_pright.size();
180 void addSensitivityReaction(
int leftright,
size_t rxn);
181 void setSensitivityParameters(
int lr,
double* params);
182 void resetSensitivityParameters(
int lr);
190 doublereal m_area, m_k, m_rrth;
196 std::vector<size_t> m_pleft, m_pright;
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.
This file contains definitions of terms that are used in internal routines and are unlikely to need m...
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].