Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Aug 30, 2024
1 parent 32a66c7 commit 197d679
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 292 deletions.
2 changes: 1 addition & 1 deletion How2STEAM
184 changes: 0 additions & 184 deletions benchmark/deleteme.py

This file was deleted.

2 changes: 1 addition & 1 deletion biosteam/_heat_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def default_cooling_agents(cls):
phase='l',
)
propylene = UtilityAgent(
'propane',
'propylene',
Propylene=1,
thermo=cls.thermo_propylene,
T=227.59,
Expand Down
9 changes: 1 addition & 8 deletions biosteam/_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -2397,15 +2397,8 @@ def run_phenomena(self):
conf.solve_material_flows()
except (NotImplementedError, UnboundLocalError) as error:
raise error
# except AttributeError:
# for i in path: i.run()
except Exception as e:
print('Failed!')
print(e)
except:
for i in path: i.run()
# conf.solve_nonlinearities()
# conf.solve_energy_departures()
# conf.solve_material_flows()

def _solve(self):
"""Solve the system recycle iteratively."""
Expand Down
43 changes: 18 additions & 25 deletions biosteam/facilities/_boiler_turbogenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,16 @@ class BoilerTurbogenerator(bst.Facility):
ins...
[0] bagasse
phase: 'l', T: 298.15 K, P: 101325 Pa
composition (%): Water 40
Cellulose 28.2
Hemicellulose 16.7
Lignin 15.1
------------- 8e+04 kg/hr
flow (kmol/hr): Water 1.78e+03
Cellulose 139
Hemicellulose 101
Lignin 79.5
[1] -
phase: 'l', T: 298.15 K, P: 101325 Pa
flow: 0
[2] -
phase: 'l', T: 298.15 K, P: 101325 Pa
composition (%): Water 100
----- 8.8e+03 kg/hr
flow (kmol/hr): Water 488
[3] -
phase: 'g', T: 288.71 K, P: 101560 Pa
flow: 0
Expand All @@ -125,30 +123,25 @@ class BoilerTurbogenerator(bst.Facility):
flow: 0
[5] -
phase: 'l', T: 298.15 K, P: 101325 Pa
composition (%): Ash 100
--- 0.567 kg/hr
flow (kmol/hr): Ash 0.567
[6] -
phase: 'g', T: 298.15 K, P: 101325 Pa
composition (%): O2 21
N2 79
-- 1.5e+06 kg/hr
flow (kmol/hr): O2 9.85e+03
N2 4.23e+04
outs...
[0] emissions
phase: 'g', T: 394.15 K, P: 101325 Pa
composition (%): Water 3.64
CO2 5.5
O2 15.9
N2 75
----- 1.58e+06 kg/hr
flow (kmol/hr): Water 3.19e+03
CO2 1.98e+03
O2 7.84e+03
N2 4.23e+04
[1] rejected_water_and_blowdown
phase: 'l', T: 298.15 K, P: 101325 Pa
composition (%): Water 100
----- 8.8e+03 kg/hr
flow (kmol/hr): Water 488
[2] ash_disposal
phase: 'l', T: 298.15 K, P: 101325 Pa
composition (%): Water 23.1
Ash 76.9
----- 0.737 kg/hr
flow (kmol/hr): Water 0.00944
Ash 0.567
>>> BT.results() # Steam and electricity are produced, so costs are negative
Boiler turbogenerator Units BT
Expand All @@ -160,12 +153,12 @@ class BoilerTurbogenerator(bst.Facility):
Cooling water Duty kJ/hr -8.42e+07
Flow kmol/hr 5.75e+04
Cost USD/hr 28.1
Natural gas (inlet) Flow kg/hr 0
Fuel (inlet) Flow kg/hr 0
Cost USD/hr 0
Ash disposal (outlet) Flow kg/hr 0.737
Cost USD/hr 0.0234
Design Flow rate kg/hr 2.93e+05
Work kW 1.33e+05
Design Work kW 1.33e+05
Flow rate kg/hr 2.93e+05
Ash disposal kg/hr 0.737
Purchase cost Baghouse bags USD 81.1
Boiler USD 3.33e+07
Expand Down
26 changes: 13 additions & 13 deletions biosteam/units/aerated_bioreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,13 @@ class GasFedBioreactor(StirredTankReactor):
flow (kmol/hr): H2O 555
[1] H2
phase: 'g', T: 298.15 K, P: 101325 Pa
flow (kmol/hr): H2 4.02
flow (kmol/hr): H2 18.1
[2] fluegas
phase: 'g', T: 298.15 K, P: 101325 Pa
flow (kmol/hr): CO2 2.01
N2 8.83
O2 0.221
H2O 0.589
flow (kmol/hr): CO2 1.65
N2 7.27
O2 0.182
H2O 0.485
[3] recycle
phase: 'g', T: 298.15 K, P: 101325 Pa
flow (kmol/hr): CO2 0.0523
Expand All @@ -397,15 +397,15 @@ class GasFedBioreactor(StirredTankReactor):
outs...
[0] vent
phase: 'g', T: 305.15 K, P: 101325 Pa
flow (kmol/hr): H2 0.669
CO2 0.387
N2 9.08
O2 0.233
H2O 0.478
AceticAcid 0.000463
flow (kmol/hr): H2 14.8
CO2 0.0324
N2 7.52
O2 0.194
H2O 1.02
AceticAcid 0.000984
[1] product
phase: 'l', T: 305.15 K, P: 101325 Pa
flow (kmol/hr): H2O 557
flow (kmol/hr): H2O 556
AceticAcid 0.836
"""
Expand Down Expand Up @@ -705,4 +705,4 @@ def _design(self):
for hu in unit.heat_utilities: hu.hxn_ok = False

GFB = GasFedBioreactor
ABR = AeratedBioreactor
ABR = AeratedBioreactor
Loading

0 comments on commit 197d679

Please sign in to comment.