Skip to content

Commit

Permalink
[Python] Fix 1D initial guess condition
Browse files Browse the repository at this point in the history
A new 'unstrained-flow' type was added that was not captured correctly.
  • Loading branch information
ischoegl authored and speth committed Jul 6, 2023
1 parent f89efe8 commit 8041ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/onedim.py
Expand Up @@ -184,7 +184,7 @@ def set_initial_guess(self, *args, data=None, group=None, **kwargs):
arr.TP = T + left.T - T[0], self.P

# adjust velocities
if self.flame.domain_type.startswith("axisymmetric"):
if not self.flame.domain_type.startswith("free"):
self.gas.TPY = left.T, self.P, left.Y
u0 = left.mdot / self.gas.density
arr.velocity = u0 * arr.velocity / arr.velocity[0]
Expand Down

0 comments on commit 8041ecb

Please sign in to comment.