39 virtual std::string
type()
const {
48 virtual double vdot(
double t) {
57 virtual double Q(
double t) {
76 "To be removed after Cantera 2.5. "
77 "Replace with WallBase::area.");
89 return (m_left != 0 && m_right != 0);
106 std::vector<ReactorSurface> m_surf;
123 virtual std::string
type()
const {
145 virtual double vdot(
double t);
162 virtual double Q(
double t);
164 void setThermalResistance(
double Rth) {
180 if (epsilon > 1.0 || epsilon < 0.0) {
182 "emissivity must be between 0.0 and 1.0");
Header file for class ReactorSurface.
Base class for exceptions thrown by Cantera classes.
Base class for 'functor' classes that evaluate a function of one variable.
Base class for stirred reactors.
Base class for 'walls' (walls, pistons, etc.) connecting reactors.
bool install(ReactorBase &leftReactor, ReactorBase &rightReactor)
Install the wall between two reactors or reservoirs.
virtual bool ready()
True if the wall is correctly configured and ready to use.
double getArea() const
Get the area [m^2].
const ReactorBase & right()
Return a reference to the Reactor or Reservoir to the right of the wall.
virtual void initialize()
Called just before the start of integration.
virtual double vdot(double t)
Rate of volume change (m^3/s) for the adjacent reactors.
double area()
Area in (m^2).
virtual void setArea(double a)
Set the area [m^2].
virtual double Q(double t)
Heat flow rate through the wall (W).
virtual std::string type() const
String indicating the wall model implemented.
ReactorBase & left() const
Return a reference to the Reactor or Reservoir to the left of the wall.
Represents a wall between between two ReactorBase objects.
Func1 * m_vf
Velocity function.
double getHeatTransferCoeff() const
Get the overall heat transfer coefficient [W/m^2/K].
void setExpansionRateCoeff(double k)
Set the expansion rate coefficient.
void setEmissivity(double epsilon)
Set the emissivity.
void setHeatFlux(Func1 *q)
Specify the heat flux function .
double m_rrth
heat transfer coefficient
double getExpansionRateCoeff() const
Get the expansion rate coefficient.
Func1 * m_qf
Heat flux function.
virtual std::string type() const
String indicating the wall model implemented.
double m_k
expansion rate coefficient
double getEmissivity() const
Get the emissivity.
void setVelocity(Func1 *f=0)
Set the wall velocity to a specified function of time, i.e. .
void setHeatTransferCoeff(double U)
Set the overall heat transfer coefficient [W/m^2/K].
virtual double Q(double t)
Heat flow rate through the wall (W).
virtual double vdot(double t)
Rate of volume change (m^3/s) for the adjacent reactors.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.
const int WallType
Magic numbers.