Skip to content

Commit

Permalink
[1D] Make FreeFlame mdot guess pressure dependent
Browse files Browse the repository at this point in the history
This gives a better guess for both high and low pressure flames, since velocity
is roughly constant while mass flux can vary by orders of magnitude.
  • Loading branch information
speth committed Mar 25, 2016
1 parent 832ee88 commit 5a08cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/onedim.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def set_initial_guess(self):

if not self.inlet.mdot:
# nonzero initial guess increases likelihood of convergence
self.inlet.mdot = 1.0
self.inlet.mdot = 1.0 * self.gas.density

# get adiabatic flame temperature and composition
self.gas.equilibrate('HP')
Expand Down

0 comments on commit 5a08cf0

Please sign in to comment.