diff --git a/qsdsan/__init__.py b/qsdsan/__init__.py index 276f3f79..c667a18c 100644 --- a/qsdsan/__init__.py +++ b/qsdsan/__init__.py @@ -45,7 +45,6 @@ Flowsheet = _bst.Flowsheet main_flowsheet = _bst.main_flowsheet default_utilities = _bst.default_utilities -CEPCI_by_year = _bst.units.design_tools.CEPCI_by_year # Global variables currency = 'USD' @@ -54,6 +53,7 @@ from . import utils +CEPCI_by_year = utils.indices.tea_indices['CEPCI'] from ._component import * from ._components import * from ._sanstream import * diff --git a/qsdsan/utils/__init__.py b/qsdsan/utils/__init__.py index 5f5317b3..af8be569 100644 --- a/qsdsan/utils/__init__.py +++ b/qsdsan/utils/__init__.py @@ -47,6 +47,7 @@ formatting, loading, dynamics, + indices, misc, model_eval, parsing, @@ -62,6 +63,7 @@ from .formatting import * from .loading import * from .dynamics import * +from .indices import * from .misc import * from .model_eval import * from .parsing import * @@ -79,6 +81,7 @@ *formatting.__all__, *loading.__all__, *dynamics.__all__, + *indices.__all__, *model_eval.__all__, *misc.__all__, *parsing.__all__, diff --git a/qsdsan/utils/indices.py b/qsdsan/utils/indices.py new file mode 100644 index 00000000..f5b7afad --- /dev/null +++ b/qsdsan/utils/indices.py @@ -0,0 +1,198 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +''' +QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems + +This module is developed by: + + Yalin Li + +This module is under the University of Illinois/NCSA Open Source License. +Please refer to https://github.com/QSD-Group/QSDsan/blob/main/LICENSE.txt +for license details. +''' + +__all__ = ( + 'tea_indices', + ) + + +# %% + +CEPCI = { + 1990: 357.6, + 1991: 361.3, + 1992: 358.2, + 1993: 359.2, + 1994: 368.1, + 1995: 381.1, + 1996: 381.7, + 1997: 386.5, + 1998: 389.5, + 1999: 390.6, + 2000: 394.1, + 2001: 394.3, + 2002: 395.6, + 2003: 402.0, + 2004: 444.2, + 2005: 468.2, + 2006: 499.6, + 2007: 525.4, + 2008: 575.4, + 2009: 521.9, + 2010: 550.8, + 2011: 585.7, + 2012: 584.6, + 2013: 567.3, + 2014: 576.1, + 2015: 556.8, + 2016: 541.7, + 2017: 567.5, + 2018: 603.1, + 2019: 607.5, + 2020: 596.2, + 2021: 708.8, + 2022: 816.0, + 2023: 798.0, + } + +ChemPPI = { + 1984: 100.0, + 1985: 100.8, + 1986: 100.6, + 1987: 103.6, + 1988: 113.0, + 1989: 119.6, + 1990: 121.0, + 1991: 124.4, + 1992: 125.8, + 1993: 127.2, + 1994: 130.0, + 1995: 143.4, + 1996: 145.8, + 1997: 147.1, + 1998: 148.7, + 1999: 149.7, + 2000: 156.7, + 2001: 158.4, + 2002: 157.3, + 2003: 164.6, + 2004: 172.8, + 2005: 187.2, + 2006: 196.8, + 2007: 203.3, + 2008: 228.2, + 2009: 224.7, + 2010: 233.7, + 2011: 252.1, + 2012: 260.3, + 2013: 263.9, + 2014: 269.2, + 2015: 264.8, + 2016: 267.1, + 2017: 277.6, + 2018: 290.2, + 2019: 292.1, + 2020: 289.0, + 2021: 708.8, + 2022: 816.0, + 'Seider': 567.0, + } + +# U.S. Energy Information Administration (EIA) Annual Energy Outlook (AEO) +GDP = { + 2003: 0.808, + 2005: 0.867, + 2007: 0.913, + 2008: 0.941, + 2009: 0.951, + 2010: 0.962, + 2011: 0.983, + 2012: 1.000, + 2013: 1.014, + 2014: 1.033, + 2015: 1.046, + 2016: 1.059, + 2017: 1.078, + 2018: 1.100, + 2019: 1.123, + 2020: 1.133, + 2021: 1.181, + 2022: 1.269, + 2023: 1.322, + 2024: 1.354, + } + +# https://data.bls.gov/cgi-bin/srgate; CEU3232500008; Chemicals +labor = { + 1990: 12.85, + 1991: 13.30, + 1992: 13.70, + 1993: 13.97, + 1994: 14.33, + 1995: 14.86, + 1996: 15.37, + 1997: 15.78, + 1998: 16.23, + 1999: 16.40, + 2000: 17.09, + 2001: 17.57, + 2002: 17.97, + 2003: 18.50, + 2004: 19.17, + 2005: 19.67, + 2006: 19.60, + 2007: 19.55, + 2008: 19.50, + 2009: 20.30, + 2010: 21.07, + 2011: 21.45, + 2012: 21.45, + 2013: 21.40, + 2014: 21.49, + 2015: 21.76, + 2016: 22.72, + 2017: 24.28, + 2018: 25.46, + 2019: 25.46, + 2020: 26.04, + 2021: 26.69, + 2022: 27.35, + 2023: 29.77, + } + +# Federal Reserve Economic Data, Personal Consumption Expenditures: Chain-type Price Index, Index 2017=1.00, Annual, Seasonally Adjusted +PCEPI = { + 2000: 73.822, + 2001: 75.302, + 2002: 76.291, + 2003: 77.894 , + 2004: 79.827, + 2005: 82.127, + 2006: 84.440, + 2007: 86.607, + 2008: 89.170, + 2009: 88.921, + 2010: 90.514, + 2011: 92.804, + 2012: 94.534, + 2013: 95.781, + 2014: 97.121, + 2015: 97.299, + 2016: 98.284, + 2017: 100.000, + 2018: 102.047, + 2019: 103.513, + 2020: 104.635, + 2021: 109.001, + 2022: 116.043, + 2023: 120.380, + 2024: 121.966, + } + +tea_indices = { + 'CEPCI': CEPCI, + 'ChemPPI': ChemPPI, + 'labor': labor, + 'PCEPI': PCEPI, + } \ No newline at end of file