Represents a wall between between two ReactorBase objects.
More...
#include <Wall.h>
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 110 of file Wall.h.
|
string | type () const override |
| String indicating the wall model implemented.
|
|
double | velocity () const |
| Wall velocity \( v(t) \) at current reactor network time.
|
|
void | setVelocity (Func1 *f=0) |
| Set the wall velocity to a specified function of time, \( v(t) \).
|
|
double | expansionRate () override |
| Rate of volume change (m^3/s) for the adjacent reactors.
|
|
double | heatFlux () const |
| Heat flux function \( q_0(t) \) evaluated at current reactor network time.
|
|
void | setHeatFlux (Func1 *q) |
| Specify the heat flux function \( q_0(t) \).
|
|
double | heatRate () override |
| Heat flow rate through the wall (W).
|
|
void | setThermalResistance (double Rth) |
|
void | setHeatTransferCoeff (double U) |
| Set the overall heat transfer coefficient [W/m^2/K].
|
|
double | getHeatTransferCoeff () const |
| Get the overall heat transfer coefficient [W/m^2/K].
|
|
void | setEmissivity (double epsilon) |
| Set the emissivity.
|
|
double | getEmissivity () const |
| Get the emissivity.
|
|
void | setExpansionRateCoeff (double k) |
| Set the expansion rate coefficient.
|
|
double | getExpansionRateCoeff () const |
| Get the expansion rate coefficient.
|
|
| WallBase (const WallBase &)=delete |
|
WallBase & | operator= (const WallBase &)=delete |
|
virtual string | type () const |
| String indicating the wall model implemented.
|
|
virtual double | expansionRate () |
| Rate of volume change (m^3/s) for the adjacent reactors at current reactor network time.
|
|
virtual double | heatRate () |
| Heat flow rate through the wall (W) at current reactor network time.
|
|
double | area () |
| Area in (m^2).
|
|
virtual void | setArea (double a) |
| Set the area [m^2].
|
|
bool | install (ReactorBase &leftReactor, ReactorBase &rightReactor) |
| Install the wall between two reactors or reservoirs.
|
|
virtual void | initialize () |
| Called just before the start of integration.
|
|
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.
|
|
const ReactorBase & | right () |
| Return a reference to the Reactor or Reservoir to the right of the wall.
|
|
void | setSimTime (double time) |
| Set current reactor network time.
|
|
◆ type()
String indicating the wall model implemented.
Usually corresponds to the name of the derived class.
Reimplemented from WallBase.
Definition at line 117 of file Wall.h.
◆ velocity()
double velocity |
( |
| ) |
const |
Wall velocity \( v(t) \) at current reactor network time.
- Since
- New in Cantera 3.0.
Definition at line 30 of file Wall.cpp.
◆ setVelocity()
void setVelocity |
( |
Func1 * |
f = 0 | ) |
|
|
inline |
Set the wall velocity to a specified function of time, \( v(t) \).
Definition at line 126 of file Wall.h.
◆ expansionRate()
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 and F(t) is a specified function evaluated at the current network time. Positive values for expansionRate
correspond to increases in the volume of reactor on left, and decreases in the volume of the reactor on the right.
- Since
- New in Cantera 3.0.
Reimplemented from WallBase.
Definition at line 37 of file Wall.cpp.
◆ heatFlux()
double heatFlux |
( |
| ) |
const |
Heat flux function \( q_0(t) \) evaluated at current reactor network time.
- Since
- New in Cantera 3.0.
Definition at line 51 of file Wall.cpp.
◆ setHeatFlux()
void setHeatFlux |
( |
Func1 * |
q | ) |
|
|
inline |
Specify the heat flux function \( q_0(t) \).
Definition at line 151 of file Wall.h.
◆ heatRate()
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 evaluated at the current network time. Positive values denote a flux from left to right.
- Since
- New in Cantera 3.0.
Reimplemented from WallBase.
Definition at line 58 of file Wall.cpp.
◆ setThermalResistance()
void setThermalResistance |
( |
double |
Rth | ) |
|
|
inline |
◆ setHeatTransferCoeff()
void setHeatTransferCoeff |
( |
double |
U | ) |
|
|
inline |
Set the overall heat transfer coefficient [W/m^2/K].
Definition at line 173 of file Wall.h.
◆ getHeatTransferCoeff()
double getHeatTransferCoeff |
( |
| ) |
const |
|
inline |
Get the overall heat transfer coefficient [W/m^2/K].
Definition at line 178 of file Wall.h.
◆ setEmissivity()
void setEmissivity |
( |
double |
epsilon | ) |
|
|
inline |
Set the emissivity.
Definition at line 183 of file Wall.h.
◆ getEmissivity()
double getEmissivity |
( |
| ) |
const |
|
inline |
Get the emissivity.
Definition at line 192 of file Wall.h.
◆ setExpansionRateCoeff()
void setExpansionRateCoeff |
( |
double |
k | ) |
|
|
inline |
Set the expansion rate coefficient.
Definition at line 197 of file Wall.h.
◆ getExpansionRateCoeff()
double getExpansionRateCoeff |
( |
| ) |
const |
|
inline |
Get the expansion rate coefficient.
Definition at line 202 of file Wall.h.
◆ m_k
expansion rate coefficient
Definition at line 209 of file Wall.h.
◆ m_rrth
heat transfer coefficient
Definition at line 212 of file Wall.h.
◆ m_emiss
emissivity
Definition at line 215 of file Wall.h.
◆ m_vf
Velocity function.
Definition at line 218 of file Wall.h.
◆ m_qf
Heat flux function.
Definition at line 221 of file Wall.h.
The documentation for this class was generated from the following files: