Skip to content

Commit

Permalink
2.49.2 release; fix stripper/absorber lines
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Dec 17, 2024
1 parent 5b37ae5 commit 42e15b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion biosteam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""
from __future__ import annotations
__version__ = '2.49.1'
__version__ = '2.49.2'

#: Chemical engineering plant cost index (defaults to 567.5 at 2017).
CE: float = 567.5
Expand Down
12 changes: 6 additions & 6 deletions biosteam/units/distillation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2093,12 +2093,12 @@ class AdiabaticMultiStageVLEColumn(MultiStageEquilibrium):
>>> bst.settings.set_thermo(['AceticAcid', 'EthylAcetate', 'Water', 'MTBE'], cache=True)
>>> feed = bst.Stream('feed', Water=75, AceticAcid=5, MTBE=20, T=320)
>>> steam = bst.Stream('steam', Water=100, phase='g', T=390)
>>> absorber = bst.Absorber(None,
>>> stripper = bst.Stripper(None,
... N_stages=2, ins=[feed, steam],
... solute="AceticAcid", outs=['vapor', 'liquid']
... )
>>> absorber.simulate()
>>> absorber.show()
>>> stripper.simulate()
>>> stripper.show()
AdiabaticMultiStageVLEColumn
ins...
[0] feed
Expand All @@ -2122,7 +2122,7 @@ class AdiabaticMultiStageVLEColumn(MultiStageEquilibrium):
MTBE 0.00031
>>> absorber.results()
Absorber Units
Stripper Units
Design Theoretical stages 2
Actual stages 4
Height ft 19.9
Expand Down Expand Up @@ -2276,10 +2276,10 @@ def _get_relative_volatilities(self):
index = IDs.index(solute)
K = gmean([i.partition.K[index] for i in stages])
if self.liquid.imol[solute] > self.vapor.imol[solute]:
self.line = "Stripper"
self.line = "Absorber"
alpha = 1 / K
else:
self.line = "Absorber"
self.line = "Stripper"
alpha = K
return alpha

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
name='biosteam',
packages=['biosteam'],
license='MIT',
version='2.49.1',
version='2.49.2',
description='The Biorefinery Simulation and Techno-Economic Analysis Modules',
long_description=open('README.rst', encoding='utf-8').read(),
author='Yoel Cortes-Pena',
Expand Down

0 comments on commit 42e15b1

Please sign in to comment.