Skip to content

Commit 61455f3

Browse files
Print Total Add-On CAPEX in Capital Costs for SAM-EM
1 parent faeae03 commit 61455f3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/geophires_x/Outputs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,11 @@ def PrintOutputs(self, model: Model):
502502
icc_label = Outputs._field_label(econ.inflation_cost_during_construction.display_name, 47)
503503
f.write(f' {icc_label}{econ.inflation_cost_during_construction.value:10.2f} {econ.inflation_cost_during_construction.CurrentUnits.value}\n')
504504

505+
if econ.DoAddOnCalculations.value:
506+
aoc_label = Outputs._field_label('Total Add-on CAPEX', 47) # TODO define dedicated OutputParameter
507+
f.write(
508+
f' {aoc_label}{model.addeconomics.AddOnCAPEXTotal.value:10.2f} {model.addeconomics.AddOnCAPEXTotal.CurrentUnits.value}\n')
509+
505510
capex_param = econ.CCap if not is_sam_econ_model else econ.capex_total
506511
capex_label = Outputs._field_label(capex_param.display_name, 50)
507512
f.write(f' {capex_label}{capex_param.value:10.2f} {capex_param.CurrentUnits.value}\n')

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.9.43
88
Simulation Date: 2025-07-28
9-
Simulation Time: 13:24
9+
Simulation Time: 13:37
1010
Calculation Time: 1.159 sec
1111

1212
***SUMMARY OF RESULTS***
@@ -107,6 +107,7 @@ Simulation Metadata
107107
Total surface equipment costs: 150.23 MUSD
108108
Exploration costs: 3.89 MUSD
109109
Inflation costs during construction: 13.12 MUSD
110+
Total Add-on CAPEX: 50.00 MUSD
110111
Total CAPEX: 275.47 MUSD
111112

112113

0 commit comments

Comments
 (0)