Skip to content

Commit 0e0de40

Browse files
committed
update
1 parent b848641 commit 0e0de40

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
-18 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

biosteam/_equilibrium/vle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ def TP(self, T, P):
299299
P_bubble, y_bubble = self._bubble_point.solve_Py(self._zs, T)
300300

301301
# Check if there is equilibrium
302-
if P >= P_dew:
302+
if P <= P_dew:
303303
self._vapor_mol[self._index] = self._mol
304304
self._liquid_mol[self._index] = 0
305-
elif P <= P_bubble:
305+
elif P >= P_bubble:
306306
self._vapor_mol[self._index] = 0
307307
self._liquid_mol[self._index] = self._mol
308308
else:
@@ -464,7 +464,7 @@ def PQ(self, P, Q):
464464

465465
# Guess T, overall vapor fraction, and vapor flow rates
466466
self.V = V = self.V or dH_bubble/(H_dew - H_bubble)
467-
self._v = V*self._zs + (1-V)*y_bubble*V*self._molnet
467+
self._v = (V*self._zs + (1-V)*y_bubble) * V * self._molnet
468468

469469
massnet = self._massnet
470470
self.Q = Hin/massnet

biosteam/_mixed_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def LLE(self, species_IDs=None, split=None, lNK=(), LNK=(),
719719
split_dipoles = np.array(split_dipoles)
720720
try:
721721
split = split_dipoles/max(dipoles)
722-
except TypeError as TE:
722+
except TypeError:
723723
missing_dipoles = []
724724
for i, is_missing in enumerate(split_dipoles==None):
725725
if is_missing:

0 commit comments

Comments
 (0)