Skip to content

Commit 6183e71

Browse files
Calculate estimated jobs created for electricity end-use (2.13/MW)
1 parent 40d84d5 commit 6183e71

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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)

0 commit comments

Comments
 (0)