Skip to content

Commit

Permalink
Merge branch 'main' into bsm2
Browse files Browse the repository at this point in the history
  • Loading branch information
joyxyz1994 committed Oct 15, 2024
2 parents 405a86d + a8254c3 commit b9cffb5
Show file tree
Hide file tree
Showing 7 changed files with 552 additions and 541 deletions.
2 changes: 1 addition & 1 deletion exposan/htl/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ Getting Started
References
----------
.. [1] Feng et al., Characterizing the Opportunity Space for Sustainable Hydrothermal Valorization of Wet Organic Wastes. *Environmental Science and Technology*, *In revision*
.. [1] Feng, J.; Li, Y.; Strathmann, T. J.; Guest, J. S. Characterizing the Opportunity Space for Sustainable Hydrothermal Valorization of Wet Organic Wastes. *Environ. Sci. Technol.* **2024**, *58* (5), 2528–2541. https://doi.org/10.1021/acs.est.3c07394.
5 changes: 4 additions & 1 deletion exposan/htl/_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,18 @@ def create_components(set_thermo=True):
H2O = Component('H2O', particle_size='Soluble',
degradability='Undegradable', organic=False)

# Intentionally using the molecular formula and MW of water for C/N/P
# intentionally using the molecular formula and MW of water for C/N/P
C = Component('C', search_ID='water', particle_size='Soluble',
degradability='Undegradable', organic=False)
C._CAS = 'C'

N = Component('N', search_ID='water', particle_size='Soluble',
degradability='Undegradable', organic=False)
N._CAS = 'N'

P = Component('P', search_ID='water', particle_size='Soluble',
degradability='Undegradable', organic=False)
P._CAS = 'P'

O2 = Component('O2', phase='g', particle_size='Dissolved gas',
degradability='Undegradable', organic=False)
Expand Down
12 changes: 6 additions & 6 deletions exposan/htl/analyses/geospatial_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2205,15 +2205,15 @@ def add_region(position, xlabel, color):

def add_rectangle(item, color, edgecolor):
rectangle_fill = Rectangle((SA_results[f'{item}_decarbonization'].quantile(0.05), SA_results[f'{item}_biocrude'].quantile(0.05)),
SA_results[f'{item}_decarbonization'].quantile(0.95) - SA_results[f'{item}_decarbonization'].quantile(0.05),
SA_results[f'{item}_biocrude'].quantile(0.95) - SA_results[f'{item}_biocrude'].quantile(0.05),
fc=color, alpha=0.8)
SA_results[f'{item}_decarbonization'].quantile(0.95) - SA_results[f'{item}_decarbonization'].quantile(0.05),
SA_results[f'{item}_biocrude'].quantile(0.95) - SA_results[f'{item}_biocrude'].quantile(0.05),
fc=color, alpha=0.8)
ax.add_patch(rectangle_fill)

rectangle_edge = Rectangle((SA_results[f'{item}_decarbonization'].quantile(0.05), SA_results[f'{item}_biocrude'].quantile(0.05)),
SA_results[f'{item}_decarbonization'].quantile(0.95) - SA_results[f'{item}_decarbonization'].quantile(0.05),
SA_results[f'{item}_biocrude'].quantile(0.95) - SA_results[f'{item}_biocrude'].quantile(0.05),
color=edgecolor, lw=3, fc='none', alpha=1)
SA_results[f'{item}_decarbonization'].quantile(0.95) - SA_results[f'{item}_decarbonization'].quantile(0.05),
SA_results[f'{item}_biocrude'].quantile(0.95) - SA_results[f'{item}_biocrude'].quantile(0.05),
color=edgecolor, lw=3, fc='none', alpha=1)
ax.add_patch(rectangle_edge)

def add_line(item, color):
Expand Down
5 changes: 5 additions & 0 deletions exposan/htl/geospatial_HTL_systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
from biosteam.units import IsenthalpicValve
from biosteam import settings

# TODO: change all TEA and LCA data to the U.S.-based values
# if impossible, especially for LCA: use US, then RER, then RoW, then GLO
# also, remember to use LCA data collected for the 'cutoff' model and 'IPCC' method
# TODO: confirm IPCC 2013 (no LT) is ok

__all__ = ('create_geospatial_system','biocrude_density')

biocrude_density = 980 # kg/m3, Snowden-Swan et al. 2022 SOT, PNNL
Expand Down
Loading

0 comments on commit b9cffb5

Please sign in to comment.