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

This commit is contained in:
Ray Speth 2014-07-18 18:10:56 +00:00
parent bc70da4252
commit d5b873b697

View file

@ -199,7 +199,8 @@ void Inlet1D::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];
}
}