Skip to content

Commit 1e6f1b4

Browse files
AddOn CAPEX/OPEX total OutputParameters
1 parent da41556 commit 1e6f1b4

File tree

3 files changed

+26
-12
lines changed

3 files changed

+26
-12
lines changed

src/geophires_x/EconomicsAddOns.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ def multi_addon_tooltip_text(param_name: str) -> str:
108108
# results
109109
self.AddOnCAPEXTotal = self.OutputParameterDict[self.AddOnCAPEXTotal.Name] = OutputParameter(
110110
"AddOn CAPEX Total",
111+
display_name='Total Add-on CAPEX',
111112
UnitType=Units.CURRENCY,
112113
PreferredUnits=CurrencyUnit.MDOLLARS,
113114
CurrentUnits=CurrencyUnit.MDOLLARS,
114115
)
115116
self.AddOnOPEXTotalPerYear = self.OutputParameterDict[self.AddOnOPEXTotalPerYear.Name] = OutputParameter(
116117
"AddOn OPEX Total Per Year",
118+
display_name='Total Add-on OPEX',
117119
UnitType=Units.CURRENCYFREQUENCY,
118120
PreferredUnits=CurrencyFrequencyUnit.MDOLLARSPERYEAR,
119121
CurrentUnits=CurrencyFrequencyUnit.MDOLLARSPERYEAR

src/geophires_x/Outputs.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,8 @@ def PrintOutputs(self, model: Model):
504504

505505
if econ.DoAddOnCalculations.value:
506506
# Non-SAM econ models print this in Extended Economics profile
507-
# TODO define dedicated OutputParameter
508-
aoc_label = Outputs._field_label('Total Add-on CAPEX', 47)
509-
f.write(
510-
f' {aoc_label}{model.addeconomics.AddOnCAPEXTotal.value:10.2f} {model.addeconomics.AddOnCAPEXTotal.CurrentUnits.value}\n')
507+
aoc_label = Outputs._field_label(model.addeconomics.AddOnCAPEXTotal.display_name, 47)
508+
f.write(f' {aoc_label}{model.addeconomics.AddOnCAPEXTotal.value:10.2f} {model.addeconomics.AddOnCAPEXTotal.CurrentUnits.value}\n')
511509

512510
capex_param = econ.CCap if not is_sam_econ_model else econ.capex_total
513511
capex_label = Outputs._field_label(capex_param.display_name, 50)
@@ -540,10 +538,8 @@ def PrintOutputs(self, model: Model):
540538

541539
if econ.DoAddOnCalculations.value and is_sam_econ_model:
542540
# Non-SAM econ models print this in Extended Economics profile
543-
# TODO define dedicated OutputParameter
544-
aoc_label = Outputs._field_label('Total Add-on OPEX', 47)
545-
f.write(
546-
f' {aoc_label}{model.addeconomics.AddOnOPEXTotalPerYear.value:10.2f} {model.addeconomics.AddOnOPEXTotalPerYear.CurrentUnits.value}\n')
541+
aoc_label = Outputs._field_label(model.addeconomics.AddOnOPEXTotalPerYear.display_name, 47)
542+
f.write(f' {aoc_label}{model.addeconomics.AddOnOPEXTotalPerYear.value:10.2f} {model.addeconomics.AddOnOPEXTotalPerYear.CurrentUnits.value}\n')
547543

548544
f.write(f' {econ.Coam.display_name}: {(econ.Coam.value + econ.averageannualpumpingcosts.value + econ.averageannualheatpumpelectricitycost.value):10.2f} {econ.Coam.CurrentUnits.value}\n')
549545
else:

src/geophires_x_schema_generator/geophires-result.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,16 @@
152152
"Project VIR=PI=PIR (including AddOns)": {},
153153
"Project MOIC (including AddOns)": {},
154154
"Project Payback Period (including AddOns)": {},
155-
"Total Add-on CAPEX": {},
156-
"Total Add-on OPEX": {},
155+
"Total Add-on CAPEX": {
156+
"type": "number",
157+
"description": "AddOn CAPEX Total",
158+
"units": "MUSD"
159+
},
160+
"Total Add-on OPEX": {
161+
"type": "number",
162+
"description": "AddOn OPEX Total Per Year",
163+
"units": "MUSD/yr"
164+
},
157165
"Total Add-on Net Elec": {},
158166
"Total Add-on Net Heat": {},
159167
"Total Add-on Profit": {},
@@ -402,7 +410,11 @@
402410
"description": "The calculated amount of cost escalation due to inflation over the construction period.",
403411
"units": "MUSD"
404412
},
405-
"Total Add-on CAPEX": {},
413+
"Total Add-on CAPEX": {
414+
"type": "number",
415+
"description": "AddOn CAPEX Total",
416+
"units": "MUSD"
417+
},
406418
"Total capital costs": {
407419
"type": "number",
408420
"description": "Total Capital Cost",
@@ -461,7 +473,11 @@
461473
"description": "Total redrilling costs over the Plant Lifetime are calculated as (Drilling and completion costs + Stimulation costs) \u00d7 Number of times redrilling. The total is then divided over Plant Lifetime years to calculate Redrilling costs per year.",
462474
"units": "MUSD/yr"
463475
},
464-
"Total Add-on OPEX": {},
476+
"Total Add-on OPEX": {
477+
"type": "number",
478+
"description": "AddOn OPEX Total Per Year",
479+
"units": "MUSD/yr"
480+
},
465481
"Total average annual O&M costs": {},
466482
"Total operating and maintenance costs": {
467483
"type": "number",

0 commit comments

Comments
 (0)