Skip to content

Commit

Permalink
Fix logic of checking for binary mixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ibell committed Aug 6, 2023
1 parent 589e18d commit 5c31110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PDSim/flow/flow_models.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ cpdef IsothermalWallTube(mdot,State1,State2,fixed,L,ID,OD=None,HTModel='Twall',T
# so a local Newton's method approach is used instead
# and we cannot use scipy.optimize.newton because Cython
# does not support closures in cpdef functions.
if hasattr(State2,'pAS') and State2.pAS.fluid_names() > 1:
if hasattr(State2,'pAS') and len(State2.pAS.fluid_names()) > 1:
# Use Newton's method to solve for the
# temperature yielding the outlet enthalpy
T = T2_star
Expand Down

0 comments on commit 5c31110

Please sign in to comment.