Skip to content

Commit 8288f4a

Browse files
committed
2.53.7 release; fix size_batch solver
1 parent 9d4a61c commit 8288f4a

5 files changed

Lines changed: 13 additions & 13 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.6'
16+
__version__ = '2.53.7'
1717

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

biosteam/units/abstract_stirred_tank_reactor.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class AbstractStirredTankReactor(PressureVessel, Unit, isabstract=True):
6969
Number of reactors.
7070
heat_exchanger_configuration :
7171
What kind of heat exchanger to default to (if any). Valid options include
72-
'jacketed', 'recirculation loop', and 'internal coil'. Defaults to 'recirculation loop'.
72+
'jacketed', 'recirculation loop', and 'internal'. Defaults to 'recirculation loop'.
7373
dT_hx_loop :
7474
Maximum change in temperature for the heat exchanger loop. Defaults to 5 K.
7575
jacket_annular_diameter :
@@ -104,8 +104,8 @@ class AbstractStirredTankReactor(PressureVessel, Unit, isabstract=True):
104104
The weight of the jacket is added to the weight of the vessel and the
105105
cost is compounded together as a jacketed vessel.
106106
107-
* 'internal coil':
108-
The internal coil is costed as an ordinary helical tube heat exchanger
107+
* 'internal':
108+
The internal is costed as an ordinary helical tube heat exchanger
109109
with the added assumption that the temperature at the wall is the
110110
operating temperature. This method is still not implemented in BioSTEAM
111111
yet.
@@ -250,7 +250,7 @@ class AbstractStirredTankReactor(PressureVessel, Unit, isabstract=True):
250250
batch_default: bool = False
251251

252252
#: What kind of heat exchanger configuration to default to (if any).
253-
#: Valid options include 'jacketed', 'recirculation loop', and 'internal coil'.
253+
#: Valid options include 'jacketed', 'recirculation loop', and 'internal'.
254254
heat_exchanger_configuration_default: str = 'recirculation loop'
255255

256256
#: Default maximum change in temperature for the heat exchanger loop.
@@ -261,7 +261,7 @@ class AbstractStirredTankReactor(PressureVessel, Unit, isabstract=True):
261261

262262
#: Available heat exchanger configurations.
263263
heat_exchanger_configurations: set[str] = {
264-
'jacketed', 'recirculation loop', 'internal coil'
264+
'jacketed', 'recirculation loop', 'internal'
265265
}
266266

267267
@property
@@ -380,11 +380,11 @@ def heat_exchanger_configuration(self, configuration):
380380
raise AttributeError(
381381
f'invalid heat exchanger configuration {configuration!r}; '
382382
"configuration must be either 'jacketed', "
383-
"'recirculation loop', or 'internal coil'"
383+
"'recirculation loop', or 'internal'"
384384
)
385-
elif configuration == 'internal coil':
385+
elif configuration == 'internal':
386386
raise AttributeError(
387-
"'internal coil' heat exchanger configuration not implemented "
387+
"'internal' heat exchanger configuration not implemented "
388388
" in BioSTEAM yet"
389389
)
390390
else:

biosteam/units/design_tools/batch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,13 @@ def size_batch(F_vol, tau_reaction, tau_cleaning, V_wf,
165165
if N_reactors is None:
166166
# Solve iteratively
167167
def f(tau_loading):
168-
N_reactors = ceil(F_vol * (tau_reaction + tau_cleaning + tau_loading) / (V_max * V_wf))
169-
if N_reactors == 1: N_reactors = 2 # Minimum
168+
N_reactors = F_vol * (tau_reaction + tau_cleaning + tau_loading) / (V_max * V_wf)
170169
V_T = F_vol * (tau_reaction + tau_cleaning) / (1 - 1 / N_reactors)
171170
V_i = V_T/N_reactors
172171
tau_loading = V_i/F_vol
173172
return tau_loading
174173

175-
tau_loading = wegstein(f, 0)
174+
tau_loading = wegstein(f, 0.5, checkconvergence=False, checkiter=False)
176175
N_reactors = ceil(F_vol * (tau_reaction + tau_cleaning + tau_loading) / (V_max * V_wf))
177176
V_T = F_vol * (tau_reaction + tau_cleaning + tau_loading)
178177
V_i = V_T / N_reactors

biosteam/units/design_tools/pressure_vessel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class PressureVessel:
2424
'Horizontal vessel weight': 'lb',
2525
'Length': 'ft',
2626
'Diameter': 'ft',
27+
'Jacketed diameter': 'ft',
2728
'Weight': 'lb',
2829
'Wall thickness': 'in',
2930
'Pressure': 'psi'}

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.6',
14+
version='2.53.7',
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)