Skip to content

Commit

Permalink
Simplify residual to make it even more understandable
Browse files Browse the repository at this point in the history
  • Loading branch information
fwitte committed Jan 26, 2025
1 parent 88c249b commit 164eb12
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/tespy/components/turbomachinery/steam_turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,8 @@ def find_sat(frac):
)
hout = hsat - eta_s * (hsat - hout_isen)

# calculate the difference in enthalpy
dh_bisectioned = hout - inl.h.val_SI
dh = outl.h.val_SI - inl.h.val_SI

# return residual
return dh - dh_bisectioned
# return residual: outlet enthalpy = calculated outlet enthalpy
return outl.h.val_SI - hout

def eta_s_wet_deriv(self, increment_filter, k):
r"""
Expand Down

0 comments on commit 164eb12

Please sign in to comment.