Skip to content

Commit 19ec4bb

Browse files
Print Add-on OPEX in opex category for SAM-EM
1 parent 61455f3 commit 19ec4bb

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/geophires_x/Outputs.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ def PrintOutputs(self, model: Model):
503503
f.write(f' {icc_label}{econ.inflation_cost_during_construction.value:10.2f} {econ.inflation_cost_during_construction.CurrentUnits.value}\n')
504504

505505
if econ.DoAddOnCalculations.value:
506-
aoc_label = Outputs._field_label('Total Add-on CAPEX', 47) # TODO define dedicated OutputParameter
506+
# 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)
507509
f.write(
508510
f' {aoc_label}{model.addeconomics.AddOnCAPEXTotal.value:10.2f} {model.addeconomics.AddOnCAPEXTotal.CurrentUnits.value}\n')
509511

@@ -536,6 +538,13 @@ def PrintOutputs(self, model: Model):
536538
redrill_label = Outputs._field_label(econ.redrilling_annual_cost.display_name, 47)
537539
f.write(f' {redrill_label}{econ.redrilling_annual_cost.value:10.2f} {econ.redrilling_annual_cost.CurrentUnits.value}\n')
538540

541+
if econ.DoAddOnCalculations.value and is_sam_econ_model:
542+
# 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')
547+
539548
f.write(f' {econ.Coam.display_name}: {(econ.Coam.value + econ.averageannualpumpingcosts.value + econ.averageannualheatpumpelectricitycost.value):10.2f} {econ.Coam.CurrentUnits.value}\n')
540549
else:
541550
f.write(f' {econ.Coam.display_name}: {econ.Coam.value:10.2f} {econ.Coam.CurrentUnits.value}\n')

tests/examples/example_SAM-single-owner-PPA-3.out

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.9.43
88
Simulation Date: 2025-07-28
9-
Simulation Time: 13:37
10-
Calculation Time: 1.159 sec
9+
Simulation Time: 13:40
10+
Calculation Time: 1.157 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -116,6 +116,7 @@ Simulation Metadata
116116
Wellfield maintenance costs: 1.13 MUSD/yr
117117
Power plant maintenance costs: 3.90 MUSD/yr
118118
Water costs: 1.58 MUSD/yr
119+
Total Add-on OPEX: 1.00 MUSD/yr
119120
Total operating and maintenance costs: 7.60 MUSD/yr
120121

121122

0 commit comments

Comments
 (0)