[1D] Use better guess for CounterflowDiffusionFlame initial position

The new formula is based on a set of test flames where the density ratio of the
fuel and oxidizer streams was varied by changing temperature and fuel
composition and the flame position was calculated as the centroid of the H2O
mass fraction profile.
This commit is contained in:
Ray Speth 2016-03-25 11:52:07 -04:00
parent 5e35ca5486
commit 6c466f65fa

View file

@ -597,7 +597,7 @@ class CounterflowDiffusionFlame(FlameBase):
self.gas.species_index('o2'))
f = np.sqrt(a / (2.0 * self.gas.mix_diff_coeffs[kOx]))
x0 = mdotf * dz / (mdotf + mdoto)
x0 = np.sqrt(mdotf*u0f) * dz / (np.sqrt(mdotf*u0f) + np.sqrt(mdoto*u0o))
nz = len(zz)
Y = np.zeros((nz, self.gas.n_species))