[1D] Fix mass flux reported by Inlet1D for freely-propagating flames
This commit is contained in:
parent
bc70da4252
commit
d5b873b697
1 changed files with 2 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue