7 #ifndef CT_FLOWREACTOR_H
8 #define CT_FLOWREACTOR_H
33 virtual int type()
const {
34 return FlowReactorType;
39 virtual void getInitialConditions(doublereal t0,
size_t leny,
44 virtual size_t neq() {
49 virtual void evalEqs(doublereal t, doublereal* y,
50 doublereal* ydot, doublereal* params);
53 void setMassFlowRate(doublereal mdot) {
55 m_speed = mdot/m_rho0;
58 m_P0 = m_thermo->
pressure() + m_rho0*m_speed*m_speed;
62 void setTimeConstant(doublereal tau) {
66 double speed()
const {
69 double distance()
const {
72 virtual size_t componentIndex(std::string nm)
const;
76 doublereal m_speed, m_dist, m_T;
78 doublereal m_rho0, m_speed0, m_P0, m_h0;