Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion thermo/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ def set_from_PT(self, Vs, only_l=False, only_g=False):
self.phase = "l/g"
else:
# Even in the case of three real roots, it is still the min/max that make sense
print([self.T, self.P, b, self.delta, self.epsilon, self.a_alpha, "coordinates of failure"])
# print([self.T, self.P, b, self.delta, self.epsilon, self.a_alpha, "coordinates of failure"])
if self.multicomponent:
extra = f", zs is {self.zs}"
else:
Expand Down
1 change: 1 addition & 0 deletions thermo/eos_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,7 @@ def volume_solutions_halley(T, P, b, delta, epsilon, a_alpha):
# the value of the second term plus P is equal to P.
if a_alpha/(b*(b + delta) + epsilon) + P == P:
return (b + R*T/P, 0.0, 0.0)

# Run this first, before the low P criteria
if a_alpha > 1e4:
V_possible = high_alpha_one_root(T, P, b, delta, epsilon, a_alpha)
Expand Down
Loading