13WallBase::WallBase(shared_ptr<ReactorBase> r0, shared_ptr<ReactorBase> r1,
16 if (!m_nodes.first || !m_nodes.second) {
17 warn_deprecated(
"FlowDevice::FlowDevice",
18 "After Cantera 3.2, Reactors must be provided to a FlowDevice "
24 m_left->addWall(*
this, 0);
25 m_right->addWall(*
this, 1);
31 "To be removed after Cantera 3.2. Reactors should be provided to constructor "
34 if (m_left || m_right) {
40 m_right->addWall(*
this, 1);
59 "Wall is not ready; some parameters have not been set.");
61 double rate =
m_k * m_area * (m_left->pressure() - m_right->pressure());
80 "Wall is not ready; some parameters have not been set.");
82 double q1 = (m_area *
m_rrth) *
83 (m_left->temperature() - m_right->temperature());
85 double tl = m_left->temperature();
86 double tr = m_right->temperature();
Header file for base class WallBase.
Base class for exceptions thrown by Cantera classes.
Base class for walls and flow devices connecting reactors.
Base class for reactor objects.
virtual void addWall(WallBase &w, int lr)
Insert a Wall between this reactor and another reactor.
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 m_time
current reactor network time
virtual void setArea(double a)
Set the area [m^2].
Func1 * m_vf
Velocity function.
double heatFlux() const
Heat flux function evaluated at current reactor network time.
double heatRate() override
Heat flow rate through the wall (W).
double m_rrth
heat transfer coefficient
Func1 * m_qf
Heat flux function.
double m_k
expansion rate coefficient
double velocity() const
Wall velocity at current reactor network time.
double expansionRate() override
Rate of volume change (m^3/s) for the adjacent reactors.
const double StefanBoltz
Stefan-Boltzmann constant [W/m2/K4].
Namespace for the Cantera kernel.
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.
Contains declarations for string manipulation functions within Cantera.