From 42e15b1eaa41653800bde236af94388ec643fb6e Mon Sep 17 00:00:00 2001 From: Yoel Date: Tue, 17 Dec 2024 09:00:33 -0600 Subject: [PATCH] 2.49.2 release; fix stripper/absorber lines --- biosteam/__init__.py | 2 +- biosteam/units/distillation.py | 12 ++++++------ setup.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/biosteam/__init__.py b/biosteam/__init__.py index 8ad06211..4f1c8771 100644 --- a/biosteam/__init__.py +++ b/biosteam/__init__.py @@ -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 diff --git a/biosteam/units/distillation.py b/biosteam/units/distillation.py index ec021050..35a1c0e7 100644 --- a/biosteam/units/distillation.py +++ b/biosteam/units/distillation.py @@ -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 @@ -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 @@ -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 diff --git a/setup.py b/setup.py index 1011a3ed..e6870f9f 100644 --- a/setup.py +++ b/setup.py @@ -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',