6#ifndef CT_FLOWREACTOR_H
7#define CT_FLOWREACTOR_H
22 "To be removed after Cantera 2.6. Use type() instead.");
26 virtual std::string
type()
const {
30 virtual void getState(doublereal* y);
33 virtual void eval(
double t,
double* LHS,
double* RHS);
36 void setMassFlowRate(
double mdot);
38 void setTimeConstant(doublereal tau) {
42 double speed()
const {
45 double distance()
const {
56 doublereal m_speed, m_dist, m_T;
58 doublereal m_rho0, m_speed0, m_P0, m_h0;
Adiabatic flow in a constant-area duct.
virtual size_t componentIndex(const std::string &nm) const
Return the index in the solution vector for this reactor of the component named nm.
virtual void updateState(doublereal *y)
Set the state of the reactor to correspond to the state vector y.
virtual void eval(double t, double *LHS, double *RHS)
Evaluate the reactor governing equations.
virtual std::string typeStr() const
String indicating the reactor model implemented.
virtual void getState(doublereal *y)
Get the the current state of the reactor.
virtual std::string type() const
String indicating the reactor model implemented.
virtual void initialize(doublereal t0=0.0)
Initialize the reactor.
Class Reactor is a general-purpose class for stirred reactors.
Namespace for the Cantera kernel.
void warn_deprecated(const std::string &source, const AnyBase &node, const std::string &message)
A deprecation warning for syntax in an input file.