[1D] Fix mass flux reported by Inlet1D for freely-propagating flames

Cherry-pick of trunk r3066.
This commit is contained in:
Ray Speth 2014-09-10 22:33:07 +00:00
parent 0903dd2d5c
commit b7408c6daa

View file

@ -205,7 +205,8 @@ eval(size_t jg, doublereal* xg, doublereal* rg,
// specified. Set mdot equal to rho*u, and also set
// lambda to zero.
if (!m_flow->fixed_mdot()) {
r[0] = m_flow->density(0)*xb[0] - x[0];
m_mdot = m_flow->density(0)*xb[0];
r[0] = m_mdot - x[0];
rb[3] = xb[3];
}
}