Skip to content

Commit 217742c

Browse files
committed
2.53.9 release; fix gas fed bioreactor bug
1 parent 19a9b93 commit 217742c

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

biosteam/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
"""
1515
from __future__ import annotations
16-
__version__ = '2.53.8'
16+
__version__ = '2.53.9'
1717

1818
#: Chemical engineering plant cost index (defaults to 567.5 at 2017).
1919
CE: float = 567.5

biosteam/units/aerated_bioreactor.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,6 @@ class GasFedBioreactor(AbstractStirredTankReactor):
667667
default_methods = AeratedBioreactor.default_methods
668668
get_kLa = AeratedBioreactor.get_kLa
669669
get_agitation_power = AeratedBioreactor.get_agitation_power
670-
_run_vent = AeratedBioreactor._run_vent
671670

672671
def _init(self,
673672
gas_substrates,
@@ -790,6 +789,11 @@ def _load_gas_feeds(self):
790789
for i in self.gas_coolers: i.simulate()
791790
self.sparger.simulate()
792791

792+
def _run_vent(self, vent, effluent):
793+
vent.copy_flow(self.sparged_gas)
794+
vent.imol[self.gas_substrates] = 0
795+
aeration.vent_broth(vent, effluent)
796+
793797
def _run(self):
794798
variable_gas_feeds = self.variable_gas_feeds
795799
vent, effluent = self.outs
@@ -809,7 +813,6 @@ def _run(self):
809813
effluent.mix_from(liquid_feeds, energy_balance=False)
810814
effluent.set_flow(STRs, units='mol/s', key=self.gas_substrates)
811815
self._run_reactions(effluent)
812-
vent.empty()
813816
self._run_vent(vent, effluent)
814817
elif variable_gas_feeds:
815818
# Solve gas flow rates to meet titer.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"path": "../../How2STEAM/case_studies/Bioreactor_modeling.ipynb",
3+
"extra-media": [
4+
"../../How2STEAM/case_studies/mass_transfer.png"
5+
]
6+
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
name='biosteam',
1212
packages=['biosteam'],
1313
license='MIT',
14-
version='2.53.8',
14+
version='2.53.9',
1515
description='The Biorefinery Simulation and Techno-Economic Analysis Modules',
1616
long_description=open('README.rst', encoding='utf-8').read(),
1717
author='Yoel Cortes-Pena',

0 commit comments

Comments
 (0)