Skip to content

Commit

Permalink
Parametertize jobs created per MW per feedback https://github.com/NRE…
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareengineerprogrammer committed Jun 19, 2024
1 parent cb09226 commit 9f8cca0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/geophires_x/Economics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,15 @@ def __init__(self, model: Model):
ToolTipText="Production tax credit inflation adjusted"
)

self.jobs_created_per_MW_electricity = self.ParameterDict[
self.jobs_created_per_MW_electricity.Name] = floatParameter(
"Estimated Jobs Created per MW of Electricity Produced",
DefaultValue=2.13,
UnitType=Units.NONE,
Required=False,
ToolTipText="Estimated jobs created per MW of electricity produced, per https://geothermal.org/resources/geothermal-basics"
)

# local variable initialization
self.CAPEX_cost_electricity_plant = 0.0
self.CAPEX_cost_heat_plant = 0.0
Expand Down Expand Up @@ -2896,7 +2905,8 @@ def Calculate(self, model: Model) -> None:

# https://github.com/NREL/GEOPHIRES-X/issues/232
self.jobs_created.value = round(
np.average(model.surfaceplant.ElectricityProduced.quantity().to('MW').magnitude * 2.13))
np.average(model.surfaceplant.ElectricityProduced.quantity().to(
'MW').magnitude * self.jobs_created_per_MW_electricity.value))

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

Expand Down

0 comments on commit 9f8cca0

Please sign in to comment.