16 FlowReactor::FlowReactor() :
Reactor(), m_fctr(1.0e10),
21 void FlowReactor::getInitialConditions(
double t0,
size_t leny,
double* y)
25 writelog(
"Error: reactor is empty.\n");
55 doublereal* mss = y + 2;
59 doublereal rho = m_rho0 * m_speed0/m_speed;
62 doublereal pmom = m_P0 - rho*m_speed*m_speed;
67 hmom = m_h0 - 0.5*m_speed*m_speed;
79 void FlowReactor::evalEqs(doublereal time, doublereal* y,
80 doublereal* ydot, doublereal* params)
91 for (n = 0; n < npar; n++) {
102 ydot[1] = m_fctr*(m_speed0 - m_thermo->
density()*m_speed/m_rho0);
110 fill(ydot + 2, ydot + 2 +
m_nsp, 0.0);
112 doublereal rrho = 1.0/m_thermo->
density();
113 for (n = 0; n <
m_nsp; n++) {
114 ydot[n+2] *= mw[n]*rrho;
119 npar = nSensParams();
120 for (n = 0; n < npar; n++) {
130 size_t FlowReactor::componentIndex(
string nm)
const