Skip to content

Commit cb09226

Browse files
Merge branch 'grc-basic-economic-correlations'
NREL#232
2 parents 40d84d5 + c6fcd1b commit cb09226

24 files changed

+92
-66
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.4.34
2+
current_version = 3.4.35
33
commit = True
44
tag = True
55

.cookiecutterrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ default_context:
5454
sphinx_doctest: "no"
5555
sphinx_theme: "sphinx-py3doc-enhanced-theme"
5656
test_matrix_separate_coverage: "no"
57-
version: 3.4.34
57+
version: 3.4.35
5858
version_manager: "bump2version"
5959
website: "https://github.com/NREL"
6060
year_from: "2023"

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Free software: `MIT license <LICENSE>`__
4747
:alt: Supported implementations
4848
:target: https://pypi.org/project/geophires-x
4949

50-
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.4.34.svg
50+
.. |commits-since| image:: https://img.shields.io/github/commits-since/softwareengineerprogrammer/GEOPHIRES-X/v3.4.35.svg
5151
:alt: Commits since latest release
52-
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.34...main
52+
:target: https://github.com/softwareengineerprogrammer/GEOPHIRES-X/compare/v3.4.35...main
5353

5454
.. |docs| image:: https://readthedocs.org/projects/GEOPHIRES-X/badge/?style=flat
5555
:target: https://nrel.github.io/GEOPHIRES-X

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
year = '2023'
1919
author = 'NREL'
2020
copyright = f'{year}, {author}'
21-
version = release = '3.4.34'
21+
version = release = '3.4.35'
2222

2323
pygments_style = 'trac'
2424
templates_path = ['./templates']

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read(*names, **kwargs):
1313

1414
setup(
1515
name='geophires-x',
16-
version='3.4.34',
16+
version='3.4.35',
1717
license='MIT',
1818
description='GEOPHIRES is a free and open-source geothermal techno-economic simulator.',
1919
long_description='{}\n{}'.format(

src/geophires_x/Economics.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,10 @@ def __init__(self, model: Model):
18181818
PreferredUnits=CurrencyUnit.MDOLLARS,
18191819
CurrentUnits=CurrencyUnit.MDOLLARS
18201820
)
1821+
self.jobs_created = self.OutputParameterDict[self.jobs_created.Name] = OutputParameter(
1822+
Name="Estimated Jobs Created",
1823+
UnitType=Units.NONE,
1824+
)
18211825

18221826
model.logger.info(f'Complete {__class__!s}: {sys._getframe().f_code.co_name}')
18231827

@@ -2890,6 +2894,10 @@ def Calculate(self, model: Model) -> None:
28902894
# Calculate LCOE/LCOH
28912895
self.LCOE.value, self.LCOH.value, self.LCOC.value = CalculateLCOELCOHLCOC(self, model)
28922896

2897+
# https://github.com/NREL/GEOPHIRES-X/issues/232
2898+
self.jobs_created.value = round(
2899+
np.average(model.surfaceplant.ElectricityProduced.quantity().to('MW').magnitude * 2.13))
2900+
28932901
model.logger.info(f'complete {__class__!s}: {sys._getframe().f_code.co_name}')
28942902

28952903
def __str__(self):

src/geophires_x/Outputs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,10 @@ def PrintOutputs(self, model: Model):
16381638
EndUseOptions.COGENERATION_PARALLEL_EXTRA_ELECTRICITY]:
16391639
f.write(f' CHP: Percent cost allocation for electrical plant: {model.economics.CAPEX_heat_electricity_plant_ratio.value*100.0:10.2f}%' + NL)
16401640

1641+
if model.surfaceplant.enduse_option.value in [EndUseOptions.ELECTRICITY]:
1642+
f.write(f' Estimated Jobs Created: {model.economics.jobs_created.value}\n')
1643+
1644+
16411645
f.write(NL)
16421646
f.write(' ***ENGINEERING PARAMETERS***\n')
16431647
f.write(NL)

src/geophires_x/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.4.34'
1+
__version__ = '3.4.35'

src/geophires_x_client/geophires_x_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class GeophiresXResult:
7171
'Fixed Charge Rate (FCR)', # SUTRA
7272
'Project Payback Period',
7373
'CHP: Percent cost allocation for electrical plant',
74+
'Estimated Jobs Created',
7475
],
7576
'EXTENDED ECONOMICS': [
7677
'Adjusted Project LCOE (after incentives, grants, AddOns,etc)',

tests/example1_addons.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ECONOMIC PARAMETERS,Project VIR=PI=PIR,,3.42,
1818
ECONOMIC PARAMETERS,Project MOIC,,36.27,
1919
ECONOMIC PARAMETERS,Fixed Charge Rate (FCR),,5.0,
2020
ECONOMIC PARAMETERS,Project Payback Period,,7.05,yr
21+
ECONOMIC PARAMETERS,Estimated Jobs Created,,12,
2122
EXTENDED ECONOMICS,"Adjusted Project LCOE (after incentives\, grants\, AddOns\,etc)",,1.74,cents/kWh
2223
EXTENDED ECONOMICS,"Adjusted Project LCOH (after incentives\, grants\, AddOns\,etc)",,0.0,USD/MMBTU
2324
EXTENDED ECONOMICS,"Adjusted Project CAPEX (after incentives\, grants\, AddOns\, etc)",,101.07,MUSD
@@ -96,7 +97,7 @@ SURFACE EQUIPMENT SIMULATION RESULTS,Average Annual Total Electricity Generation
9697
SURFACE EQUIPMENT SIMULATION RESULTS,Average Annual Net Electricity Generation,,42.3,GWh
9798
SURFACE EQUIPMENT SIMULATION RESULTS,Average Pumping Power,,0.2,MW
9899
SURFACE EQUIPMENT SIMULATION RESULTS,Initial pumping power/net installed power,,3.82,%
99-
Simulation Metadata,GEOPHIRES Version,,3.4.31,
100+
Simulation Metadata,GEOPHIRES Version,,3.4.34,
100101
POWER GENERATION PROFILE,THERMAL DRAWDOWN,1,1.0,
101102
POWER GENERATION PROFILE,THERMAL DRAWDOWN,2,1.0056,
102103
POWER GENERATION PROFILE,THERMAL DRAWDOWN,3,1.0073,

0 commit comments

Comments
 (0)