35 virtual std::string
type()
const {
44 virtual double vdot(
double t) {
53 virtual double Q(
double t) {
73 return (m_left != 0 && m_right != 0);
90 std::vector<ReactorSurface> m_surf;
107 virtual std::string
type()
const {
129 virtual double vdot(
double t);
146 virtual double Q(
double t);
148 void setThermalResistance(
double Rth) {
164 if (epsilon > 1.0 || epsilon < 0.0) {
166 "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.
ReactorBase & left() const
Return a reference to the Reactor or Reservoir to the left 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.
const ReactorBase & right()
Return a reference to the Reactor or Reservoir to the right 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, .
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.