12 throw CanteraError(
"FlowDevice::install",
"Already installed");
27 for (ki = 0; ki < m_nspin; ki++) {
30 m_in2out.push_back(ko);
32 for (ko = 0; ko < m_nspout; ko++) {
35 m_out2in.push_back(ki);
50 size_t ki = m_out2in[k];
doublereal enthalpy_mass() const
Returns the current enthalpy (J/kg) of the reactor's contents.
void setFunction(Cantera::Func1 *f)
Set a function of a single variable that is used in determining the mass flow rate through the device...
const ReactorBase & out() const
Return a const reference to the downstream reactor.
const size_t npos
index returned by functions to indicate "no position"
doublereal enthalpy_mass()
specific enthalpy
void addOutlet(FlowDevice &outlet)
Connect an outlet FlowDevice to this reactor.
void addInlet(FlowDevice &inlet)
Connect an inlet FlowDevice to this reactor.
Base class for a phase with thermodynamic properties.
size_t speciesIndex(const std::string &name) const
Returns the index of a species named 'name' within the Phase object.
Base class for 'functor' classes that evaluate a function of one variable.
ReactorBase & in() const
Return a reference to the upstream reactor.
Base class for exceptions thrown by Cantera classes.
Base class for stirred reactors.
doublereal outletSpeciesMassFlowRate(size_t k)
bool install(ReactorBase &in, ReactorBase &out)
Install a flow device between two reactors.
thermo_t & contents()
return a reference to the contents.
size_t nSpecies() const
Returns the number of species in the phase.
doublereal massFraction(size_t k) const
Return the mass fraction of the k-th species.
std::string speciesName(size_t k) const
Name of the species with index k.