Cantera  2.5.1
Public Member Functions | Protected Attributes | List of all members
Wall Class Reference

Represents a wall between between two ReactorBase objects. More...

#include <Wall.h>

Inheritance diagram for Wall:
[legend]
Collaboration diagram for Wall:
[legend]

Public Member Functions

virtual std::string type () const
 String indicating the wall model implemented. More...
 
void setVelocity (Func1 *f=0)
 Set the wall velocity to a specified function of time, i.e. \( v(t) \). More...
 
virtual double vdot (double t)
 Rate of volume change (m^3/s) for the adjacent reactors. More...
 
void setHeatFlux (Func1 *q)
 Specify the heat flux function \( q_0(t) \). More...
 
virtual double Q (double t)
 Heat flow rate through the wall (W). More...
 
void setThermalResistance (double Rth)
 
void setHeatTransferCoeff (double U)
 Set the overall heat transfer coefficient [W/m^2/K]. More...
 
double getHeatTransferCoeff () const
 Get the overall heat transfer coefficient [W/m^2/K]. More...
 
void setEmissivity (double epsilon)
 Set the emissivity. More...
 
double getEmissivity () const
 Get the emissivity. More...
 
void setExpansionRateCoeff (double k)
 Set the expansion rate coefficient. More...
 
double getExpansionRateCoeff () const
 Get the expansion rate coefficient. More...
 
- Public Member Functions inherited from WallBase
 WallBase (const WallBase &)=delete
 
WallBaseoperator= (const WallBase &)=delete
 
double area ()
 Area in (m^2). More...
 
virtual void setArea (double a)
 Set the area [m^2]. More...
 
double getArea () const
 Get the area [m^2]. More...
 
bool install (ReactorBase &leftReactor, ReactorBase &rightReactor)
 Install the wall between two reactors or reservoirs. More...
 
virtual void initialize ()
 Called just before the start of integration. More...
 
virtual bool ready ()
 True if the wall is correctly configured and ready to use. More...
 
ReactorBaseleft () const
 Return a reference to the Reactor or Reservoir to the left of the wall. More...
 
const ReactorBaseright ()
 Return a reference to the Reactor or Reservoir to the right of the wall. More...
 

Protected Attributes

double m_k
 expansion rate coefficient More...
 
double m_rrth
 heat transfer coefficient More...
 
double m_emiss
 emissivity More...
 
Func1m_vf
 Velocity function. More...
 
Func1m_qf
 Heat flux function. More...
 
- Protected Attributes inherited from WallBase
ReactorBasem_left
 
ReactorBasem_right
 
std::vector< ReactorSurface > m_surf
 
double m_area
 

Detailed Description

Represents a wall between between two ReactorBase objects.

Walls can move (changing the volume of the adjacent reactors) and allow heat transfer between reactors.

Definition at line 116 of file Wall.h.

Member Function Documentation

◆ type()

virtual std::string type ( ) const
inlinevirtual

String indicating the wall model implemented.

Usually corresponds to the name of the derived class.

Reimplemented from WallBase.

Definition at line 123 of file Wall.h.

◆ setVelocity()

void setVelocity ( Func1 f = 0)
inline

Set the wall velocity to a specified function of time, i.e. \( v(t) \).

Definition at line 128 of file Wall.h.

References Wall::m_vf.

◆ vdot()

double vdot ( double  t)
virtual

Rate of volume change (m^3/s) for the adjacent reactors.

The volume rate of change is given by

\[ \dot V = K A (P_{left} - P_{right}) + F(t) \]

where K is the specified expansion rate coefficient, A is the wall area, and F(t) is a specified function of time. Positive values for vdot correspond to increases in the volume of reactor on left, and decreases in the volume of the reactor on the right.

Reimplemented from WallBase.

Definition at line 39 of file Wall.cpp.

References Func1::eval(), Wall::m_k, Wall::m_vf, and ReactorBase::pressure().

◆ setHeatFlux()

void setHeatFlux ( Func1 q)
inline

Specify the heat flux function \( q_0(t) \).

Definition at line 148 of file Wall.h.

References Wall::m_qf.

◆ Q()

double Q ( double  t)
virtual

Heat flow rate through the wall (W).

The heat flux is given by

\[ Q = h A (T_{left} - T_{right}) + A G(t) \]

where h is the heat transfer coefficient, A is the wall area, and G(t) is a specified function of time. Positive values denote a flux from left to right.

Reimplemented from WallBase.

Definition at line 49 of file Wall.cpp.

References Func1::eval(), Wall::m_emiss, Wall::m_qf, Wall::m_rrth, Cantera::StefanBoltz, and ReactorBase::temperature().

◆ setHeatTransferCoeff()

void setHeatTransferCoeff ( double  U)
inline

Set the overall heat transfer coefficient [W/m^2/K].

Definition at line 169 of file Wall.h.

◆ getHeatTransferCoeff()

double getHeatTransferCoeff ( ) const
inline

Get the overall heat transfer coefficient [W/m^2/K].

Definition at line 174 of file Wall.h.

References Wall::m_rrth.

◆ setEmissivity()

void setEmissivity ( double  epsilon)
inline

Set the emissivity.

Definition at line 179 of file Wall.h.

References Wall::m_emiss.

◆ getEmissivity()

double getEmissivity ( ) const
inline

Get the emissivity.

Definition at line 188 of file Wall.h.

References Wall::m_emiss.

◆ setExpansionRateCoeff()

void setExpansionRateCoeff ( double  k)
inline

Set the expansion rate coefficient.

Definition at line 193 of file Wall.h.

References Wall::m_k.

◆ getExpansionRateCoeff()

double getExpansionRateCoeff ( ) const
inline

Get the expansion rate coefficient.

Definition at line 198 of file Wall.h.

References Wall::m_k.

Member Data Documentation

◆ m_k

double m_k
protected

expansion rate coefficient

Definition at line 205 of file Wall.h.

Referenced by Wall::getExpansionRateCoeff(), Wall::setExpansionRateCoeff(), and Wall::vdot().

◆ m_rrth

double m_rrth
protected

heat transfer coefficient

Definition at line 208 of file Wall.h.

Referenced by Wall::getHeatTransferCoeff(), and Wall::Q().

◆ m_emiss

double m_emiss
protected

emissivity

Definition at line 211 of file Wall.h.

Referenced by Wall::getEmissivity(), Wall::Q(), and Wall::setEmissivity().

◆ m_vf

Func1* m_vf
protected

Velocity function.

Definition at line 214 of file Wall.h.

Referenced by Wall::setVelocity(), and Wall::vdot().

◆ m_qf

Func1* m_qf
protected

Heat flux function.

Definition at line 217 of file Wall.h.

Referenced by Wall::Q(), and Wall::setHeatFlux().


The documentation for this class was generated from the following files: