Skip to content

Commit

Permalink
undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Jan 18, 2024
1 parent 63cb9e6 commit 2d10e6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thermosteam/separations.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,12 @@ def lle(feed, top, bottom, top_chemical=None, efficiency=1.0, multi_stream=None)
ms = feed.copy()
ms.lle(feed.T, top_chemical=top_chemical)
top_phase, bottom_phase = ms.phases
if not top_chemical:
rho_l = ms['l'].rho
rho_L = ms['L'].rho
if rho_L is None or rho_l is not None and rho_l < rho_L:
top_phase = 'l'
bottom_phase = 'L'
top.mol[:] = ms.imol[top_phase]
bottom.mol[:] = ms.imol[bottom_phase]
top.T = bottom.T = feed.T
Expand Down

0 comments on commit 2d10e6c

Please sign in to comment.