From 6c466f65fa2dac68e59af72fd21c8f1b832fcbd3 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 25 Mar 2016 11:52:07 -0400 Subject: [PATCH] [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. --- interfaces/cython/cantera/onedim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/onedim.py b/interfaces/cython/cantera/onedim.py index fd429a93f..66ccd04e7 100644 --- a/interfaces/cython/cantera/onedim.py +++ b/interfaces/cython/cantera/onedim.py @@ -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))