Skip to content

Commit 8144d51

Browse files
Economic model name: 'SAM Single Owner PPA'
1 parent 5047369 commit 8144d51

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

src/geophires_x/Economics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def CalculateLCOELCOHLCOC(econ, model: Model) -> tuple:
470470
econ.annualngcost.value) * discount_vector)) / np.sum(
471471
model.surfaceplant.annual_heating_demand.value * discount_vector) * 1E2 # cents/kWh
472472
LCOH = LCOH * 2.931 # $/Million Btu
473-
elif econ.econmodel.value == EconomicModel.SINGLE_OWNER_PPA:
473+
elif econ.econmodel.value == EconomicModel.SAM_SINGLE_OWNER_PPA:
474474
LCOE = compute_sam_financials(model)['LCOE']['value']
475475
else:
476476
# must be BICYCLE
@@ -2962,7 +2962,7 @@ def Calculate(self, model: Model) -> None:
29622962
self.discount_initial_year_cashflow.value
29632963
)
29642964

2965-
if self.econmodel.value == EconomicModel.SINGLE_OWNER_PPA:
2965+
if self.econmodel.value == EconomicModel.SAM_SINGLE_OWNER_PPA:
29662966
sam_economics = compute_sam_financials(model)
29672967
self.ProjectNPV.value = sam_economics['NPV']['value']
29682968
self.ProjectIRR.value = sam_economics['IRR']['value']

src/geophires_x/OptionList.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class EconomicModel(GeophiresInputEnum):
8989
STANDARDIZED_LEVELIZED_COST = 2, "Standard Levelized Cost"
9090
BICYCLE = 3, "BICYCLE"
9191
CLGS = 4, "Simple (CLGS)"
92-
SINGLE_OWNER_PPA = 5, "Single Owner PPA (SAM)"
92+
SAM_SINGLE_OWNER_PPA = 5, "SAM Single Owner PPA"
9393

9494
@staticmethod
9595
def from_int(int_val):

src/geophires_x/Outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def PrintOutputs(self, model: Model):
246246
f.write(f' Economic Model = {model.economics.econmodel.value.value}\n')
247247
f.write(f' {model.economics.interest_rate.Name}: {model.economics.interest_rate.value:10.2f} {model.economics.interest_rate.CurrentUnits.value}\n')
248248

249-
elif model.economics.econmodel.value in (EconomicModel.BICYCLE, EconomicModel.SINGLE_OWNER_PPA):
249+
elif model.economics.econmodel.value in (EconomicModel.BICYCLE, EconomicModel.SAM_SINGLE_OWNER_PPA):
250250
f.write(f' Economic Model = {model.economics.econmodel.value.value}\n')
251251
f.write(f' Accrued financing during construction: {model.economics.inflrateconstruction.value*100:10.2f} {model.economics.inflrateconstruction.CurrentUnits.value}\n')
252252
f.write(f' Project lifetime: {model.surfaceplant.plant_lifetime.value:10.0f} {model.surfaceplant.plant_lifetime.CurrentUnits.value}\n')

src/geophires_x_schema_generator/geophires-request.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,13 +1343,13 @@
13431343
"maximum": 200.0
13441344
},
13451345
"Economic Model": {
1346-
"description": "Specify the economic model to calculate the levelized cost of energy. 1: Fixed Charge Rate (FCR); 2: Standard Levelized Cost; 3: BICYCLE; 4: Simple (CLGS)",
1346+
"description": "Specify the economic model to calculate the levelized cost of energy. 1: Fixed Charge Rate (FCR); 2: Standard Levelized Cost; 3: BICYCLE; 4: Simple (CLGS); 5: SAM Single Owner PPA",
13471347
"type": "integer",
13481348
"units": null,
13491349
"category": "Economics",
13501350
"default": 2,
13511351
"minimum": 1,
1352-
"maximum": 4,
1352+
"maximum": 5,
13531353
"enum_values": [
13541354
{
13551355
"name": "FCR",
@@ -1370,6 +1370,11 @@
13701370
"name": "CLGS",
13711371
"value": "Simple (CLGS)",
13721372
"int_value": 4
1373+
},
1374+
{
1375+
"name": "SAM_SINGLE_OWNER_PPA",
1376+
"value": "SAM Single Owner PPA",
1377+
"int_value": 5
13731378
}
13741379
]
13751380
},

0 commit comments

Comments
 (0)