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