13WallBase::WallBase(shared_ptr<ReactorBase> r0, shared_ptr<ReactorBase> r1,
14 const string& name) : ConnectorNode(r0, r1, name)
16 if (!m_nodes.first || !m_nodes.second) {
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);
44void WallBase::setArea(
double a) {
48double Wall::velocity()
const {
50 return m_vf->eval(m_time);
55double Wall::expansionRate()
59 "Wall is not ready; some parameters have not been set.");
61 double rate = m_k * m_area * (m_left->pressure() - m_right->pressure());
64 rate += m_area * m_vf->eval(m_time);
69double Wall::heatFlux()
const {
71 return m_qf->eval(m_time);
76double Wall::heatRate()
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();
87 q1 += m_emiss * m_area *
StefanBoltz * (tl*tl*tl*tl - tr*tr*tr*tr);
91 q1 += m_area * m_qf->eval(m_time);
Header file for base class WallBase.
Base class for exceptions thrown by Cantera classes.
Base class for stirred reactors.
void addWall(WallBase &w, int lr)
Insert a Wall between this reactor and another reactor.
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.