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) {
17 throw CanteraError(
"WallBase::WallBase",
18 "Reactors must be provided to WallBase constructor.");
22 m_left->addWall(*
this, 0);
23 m_right->addWall(*
this, 1);
26void WallBase::setArea(
double a) {
30double Wall::velocity()
const {
32 return m_vf->eval(m_time);
37double Wall::expansionRate()
41 "Wall is not ready; some parameters have not been set.");
43 double rate = m_k * m_area * (m_left->pressure() - m_right->pressure());
46 rate += m_area * m_vf->eval(m_time);
51double Wall::heatFlux()
const {
53 return m_qf->eval(m_time);
58double Wall::heatRate()
62 "Wall is not ready; some parameters have not been set.");
64 double q1 = (m_area * m_rrth) *
65 (m_left->temperature() - m_right->temperature());
67 double tl = m_left->temperature();
68 double tr = m_right->temperature();
69 q1 += m_emiss * m_area *
StefanBoltz * (tl*tl*tl*tl - tr*tr*tr*tr);
73 q1 += m_area * m_qf->eval(m_time);
Header file for base class WallBase.
Base class for exceptions thrown by Cantera classes.
const double StefanBoltz
Stefan-Boltzmann constant [W/m2/K4].
Namespace for the Cantera kernel.
Contains declarations for string manipulation functions within Cantera.