diff --git a/interfaces/cython/cantera/examples/onedim/diffusion_flame_extinction.py b/interfaces/cython/cantera/examples/onedim/diffusion_flame_extinction.py index ac168b0d7b..bff9ccaf63 100644 --- a/interfaces/cython/cantera/examples/onedim/diffusion_flame_extinction.py +++ b/interfaces/cython/cantera/examples/onedim/diffusion_flame_extinction.py @@ -53,7 +53,7 @@ # Define a limit for the maximum temperature below which the flame is # considered as extinguished and the computation is aborted -temperature_limit_extinction = 500 # K +temperature_limit_extinction = max(f.oxidizer_inlet.T, f.fuel_inlet.T) # Initialize and solve print('Creating the initial solution') @@ -114,6 +114,7 @@ strain_factor = alpha[-1] / alpha[n_last_burning] # Create an initial guess based on the previous solution # Update grid + # Note that grid scaling changes the diffusion flame width f.flame.grid *= strain_factor ** exp_d_a normalized_grid = f.grid / (f.grid[-1] - f.grid[0]) # Update mass fluxes