Skip to content

Commit 4f9c500

Browse files
Workaround NREL#404 - don't display incorrect SAM-EM ITCs for now (TODO to extract from cash flow profile)
1 parent 856ade4 commit 4f9c500

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

src/geophires_x/Outputs.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,16 @@ def PrintOutputs(self, model: Model):
482482
f.write(f' Stimulation costs (for redrilling): {econ.Cstim.value:10.2f} {econ.Cstim.CurrentUnits.value}\n')
483483

484484
if model.economics.RITCValue.value:
485-
f.write(f' {model.economics.RITCValue.display_name}: {-1*model.economics.RITCValue.value:10.2f} {model.economics.RITCValue.CurrentUnits.value}\n')
485+
if model.economics.econmodel.value != EconomicModel.SAM_SINGLE_OWNER_PPA:
486+
f.write(f' {model.economics.RITCValue.display_name}: {-1*model.economics.RITCValue.value:10.2f} {model.economics.RITCValue.CurrentUnits.value}\n')
487+
else:
488+
# TODO Extract value from SAM Cash Flow Profile per
489+
# https://github.com/NREL/GEOPHIRES-X/issues/404.
490+
# For now we skip displaying the value because it can be/probably is usually mathematically
491+
# inaccurate, and even if it's not, it's redundant with the cash flow profile and also
492+
# misleading/confusing/wrong to display it as a capital cost since it is not a capital
493+
# expenditure.
494+
pass
486495

487496
capex_label = Outputs._field_label(econ.CCap.display_name, 50)
488497
f.write(f' {capex_label}{econ.CCap.value:10.2f} {econ.CCap.CurrentUnits.value}\n')

tests/examples/Fervo_Project_Cape-4.out

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.9.36
7+
GEOPHIRES Version: 3.9.39
88
Simulation Date: 2025-07-25
9-
Simulation Time: 10:59
10-
Calculation Time: 1.734 sec
9+
Simulation Time: 14:32
10+
Calculation Time: 1.794 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -104,7 +104,6 @@ Simulation Metadata
104104
Field gathering system costs: 56.44 MUSD
105105
Total surface equipment costs: 1560.49 MUSD
106106
Exploration costs: 30.00 MUSD
107-
Investment Tax Credit: -688.54 MUSD
108107
Total CAPEX: 2639.39 MUSD
109108

110109

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.9.28
8-
Simulation Date: 2025-07-02
9-
Simulation Time: 12:19
10-
Calculation Time: 0.975 sec
7+
GEOPHIRES Version: 3.9.39
8+
Simulation Date: 2025-07-25
9+
Simulation Time: 14:32
10+
Calculation Time: 0.983 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -105,7 +105,6 @@ Simulation Metadata
105105
Field gathering system costs: 70.43 MUSD
106106
Total surface equipment costs: 969.26 MUSD
107107
Exploration costs: 30.00 MUSD
108-
Investment Tax Credit: -459.83 MUSD
109108
Total CAPEX: 1609.42 MUSD
110109

111110

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.9.28
8-
Simulation Date: 2025-07-02
9-
Simulation Time: 12:19
10-
Calculation Time: 1.163 sec
7+
GEOPHIRES Version: 3.9.39
8+
Simulation Date: 2025-07-25
9+
Simulation Time: 14:32
10+
Calculation Time: 1.177 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -106,7 +106,6 @@ Simulation Metadata
106106
Field gathering system costs: 5.80 MUSD
107107
Total surface equipment costs: 150.23 MUSD
108108
Exploration costs: 3.89 MUSD
109-
Investment Tax Credit: -63.71 MUSD
110109
Total CAPEX: 222.97 MUSD
111110

112111

0 commit comments

Comments
 (0)