32 virtual string type()
const {
86 return (m_left != 0 && m_right != 0);
129 using WallBase::WallBase;
184 void setThermalResistance(
double Rth) {
200 if (epsilon > 1.0 || epsilon < 0.0) {
202 "emissivity must be between 0.0 and 1.0");
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.
virtual double expansionRate()
Rate of volume change (m^3/s) for the adjacent reactors at current reactor network time.
bool m_defaultNameSet
true if default name has been previously set.
virtual string type() const
String indicating the wall model implemented.
double m_time
current reactor network time
ReactorBase & left() const
Return a reference to the Reactor or Reservoir to the left of the wall.
bool setDefaultName(map< string, int > &counts)
Set the default name of a wall. Returns false if it was previously set.
void setSimTime(double time)
Set current reactor network time.
ReactorBase & right()
Return a reference to the Reactor or Reservoir to the right of the wall.
void setName(const string &name)
Set wall name.
virtual void initialize()
Called just before the start of integration.
double area()
Area in (m^2).
virtual void setArea(double a)
Set the area [m^2].
virtual double heatRate()
Heat flow rate through the wall (W) at current reactor network time.
string name() const
Retrieve wall name.
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].
string type() const override
String indicating the wall model implemented.
double heatFlux() const
Heat flux function evaluated at current reactor network time.
void setExpansionRateCoeff(double k)
Set the expansion rate coefficient.
void setEmissivity(double epsilon)
Set the emissivity.
double heatRate() override
Heat flow rate through the wall (W).
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.
double m_k
expansion rate coefficient
double getEmissivity() const
Get the emissivity.
double velocity() const
Wall velocity at current reactor network time.
double expansionRate() override
Rate of volume change (m^3/s) for the adjacent reactors.
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].
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.