Skip to content

Commit 8b3d888

Browse files
Merge pull request #96 from softwareengineerprogrammer/inflation-costs-during-construction-all-econ-models
Inflation costs during construction for all econ models
2 parents 2a9af95 + 023a7f0 commit 8b3d888

14 files changed

+160
-92
lines changed

src/geophires_x/Economics.py

Lines changed: 70 additions & 32 deletions
Large diffs are not rendered by default.

src/geophires_x/EconomicsUtils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ def total_capex_parameter_output_parameter() -> OutputParameter:
139139
UnitType=Units.CURRENCY,
140140
CurrentUnits=CurrencyUnit.MDOLLARS,
141141
PreferredUnits=CurrencyUnit.MDOLLARS,
142-
ToolTipText="The total capital expenditure (CAPEX) required to construct the plant. "
143-
"This value includes all direct and indirect costs, contingency, and any cost escalation from "
144-
"inflation during construction. It is used as the total installed cost input for "
145-
"SAM Economic Models."
142+
ToolTipText='The total capital expenditure (CAPEX) required to construct the plant. '
143+
'This value includes all direct and indirect costs, and contingency. '
144+
'For SAM Economic models, it also includes any cost escalation from inflation during construction. '
145+
'It is used as the total installed cost input for SAM Economic Models.'
146146
)

src/geophires_x/Outputs.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,20 @@ def PrintOutputs(self, model: Model):
274274
acf_label = Outputs._field_label(acf.display_name, 49)
275275
f.write(f' {acf_label}{acf.value:10.2f} {acf.CurrentUnits.value}\n')
276276

277+
display_inflation_costs_in_economic_parameters: bool = (
278+
econ.econmodel.value in [EconomicModel.BICYCLE,
279+
EconomicModel.FCR,
280+
EconomicModel.STANDARDIZED_LEVELIZED_COST]
281+
and
282+
econ.inflation_cost_during_construction.value != 0.
283+
)
284+
if display_inflation_costs_in_economic_parameters:
285+
# Inflation cost is displayed here for economic models that don't treat inflation cost as a
286+
# capital cost
287+
icc: OutputParameter = econ.inflation_cost_during_construction
288+
icc_label = Outputs._field_label(icc.display_name, 49)
289+
f.write(f' {icc_label}{icc.value:10.2f} {icc.CurrentUnits.value}\n')
290+
277291
f.write(f' Project lifetime: {model.surfaceplant.plant_lifetime.value:10.0f} {model.surfaceplant.plant_lifetime.CurrentUnits.value}\n')
278292
f.write(f' Capacity factor: {model.surfaceplant.utilization_factor.value * 100:10.1f} %\n')
279293

@@ -497,8 +511,8 @@ def PrintOutputs(self, model: Model):
497511
# expenditure.
498512
pass
499513

500-
if is_sam_econ_model:
501-
# TODO calculate & display for other economic models
514+
display_inflation_during_construction_in_capital_costs = is_sam_econ_model
515+
if display_inflation_during_construction_in_capital_costs:
502516
icc_label = Outputs._field_label(econ.inflation_cost_during_construction.display_name, 47)
503517
f.write(f' {icc_label}{econ.inflation_cost_during_construction.value:10.2f} {econ.inflation_cost_during_construction.CurrentUnits.value}\n')
504518

src/geophires_x_client/geophires_x_result.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class GeophiresXResult:
7979
'Nominal Discount Rate',
8080
'WACC',
8181
'Accrued financing during construction',
82+
# Displayed for economic models that don't treat inflation costs as capital costs (non-SAM-EM)
83+
'Inflation costs during construction',
8284
'Project lifetime',
8385
'Capacity factor',
8486
'Project NPV',
@@ -261,6 +263,7 @@ class GeophiresXResult:
261263
'Total surface equipment costs',
262264
'Exploration costs',
263265
'Investment Tax Credit',
266+
# Displayed for economic models that treat inflation costs as capital costs (SAM-EM)
264267
'Inflation costs during construction',
265268
'Total Add-on CAPEX',
266269
'Total capital costs',

src/geophires_x_schema_generator/geophires-result.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"Total CAPEX": {
2222
"type": "number",
23-
"description": "The total capital expenditure (CAPEX) required to construct the plant. This value includes all direct and indirect costs, contingency, and any cost escalation from inflation during construction. It is used as the total installed cost input for SAM Economic Models.",
23+
"description": "The total capital expenditure (CAPEX) required to construct the plant. This value includes all direct and indirect costs, and contingency. For SAM Economic models, it also includes any cost escalation from inflation during construction. It is used as the total installed cost input for SAM Economic Models.",
2424
"units": "MUSD"
2525
},
2626
"Average Direct-Use Heat Production": {},
@@ -100,6 +100,11 @@
100100
"description": "The accrued inflation on total capital costs over the construction period, as defined by Inflation Rate During Construction. For SAM Economic Models, this is calculated automatically by compounding Inflation Rate over Construction Years if Inflation Rate During Construction is not provided.",
101101
"units": "%"
102102
},
103+
"Inflation costs during construction": {
104+
"type": "number",
105+
"description": "The calculated amount of cost escalation due to inflation over the construction period.",
106+
"units": "MUSD"
107+
},
103108
"Project lifetime": {},
104109
"Capacity factor": {},
105110
"Project NPV": {
@@ -432,7 +437,7 @@
432437
"Annualized capital costs": {},
433438
"Total CAPEX": {
434439
"type": "number",
435-
"description": "The total capital expenditure (CAPEX) required to construct the plant. This value includes all direct and indirect costs, contingency, and any cost escalation from inflation during construction. It is used as the total installed cost input for SAM Economic Models.",
440+
"description": "The total capital expenditure (CAPEX) required to construct the plant. This value includes all direct and indirect costs, and contingency. For SAM Economic models, it also includes any cost escalation from inflation during construction. It is used as the total installed cost input for SAM Economic Models.",
436441
"units": "MUSD"
437442
},
438443
"Drilling Cost": {},

tests/examples/Fervo_Norbeck_Latimer_2023.out

Lines changed: 6 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.481 sec
7+
GEOPHIRES Version: 3.9.47
8+
Simulation Date: 2025-07-31
9+
Simulation Time: 08:57
10+
Calculation Time: 0.475 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -24,7 +24,8 @@ Simulation Metadata
2424
***ECONOMIC PARAMETERS***
2525

2626
Economic Model = BICYCLE
27-
Accrued financing during construction: 5.00 %
27+
Accrued financing during construction: 5.00 %
28+
Inflation costs during construction: 1.41 MUSD
2829
Project lifetime: 10 yr
2930
Capacity factor: 90.0 %
3031
Project NPV: -13.03 MUSD

tests/examples/Fervo_Project_Cape-2.out

Lines changed: 6 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.722 sec
7+
GEOPHIRES Version: 3.9.47
8+
Simulation Date: 2025-07-31
9+
Simulation Time: 08:57
10+
Calculation Time: 0.709 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -24,7 +24,8 @@ Simulation Metadata
2424
***ECONOMIC PARAMETERS***
2525

2626
Economic Model = BICYCLE
27-
Accrued financing during construction: 5.00 %
27+
Accrued financing during construction: 5.00 %
28+
Inflation costs during construction: 2.54 MUSD
2829
Project lifetime: 15 yr
2930
Capacity factor: 90.0 %
3031
Project NPV: 42.34 MUSD

tests/examples/Fervo_Project_Cape-3.out

Lines changed: 6 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.956 sec
7+
GEOPHIRES Version: 3.9.47
8+
Simulation Date: 2025-07-31
9+
Simulation Time: 08:57
10+
Calculation Time: 0.951 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -24,7 +24,8 @@ Simulation Metadata
2424
***ECONOMIC PARAMETERS***
2525

2626
Economic Model = BICYCLE
27-
Accrued financing during construction: 5.00 %
27+
Accrued financing during construction: 5.00 %
28+
Inflation costs during construction: 53.65 MUSD
2829
Project lifetime: 20 yr
2930
Capacity factor: 90.0 %
3031
Project NPV: 4580.36 MUSD

tests/examples/Fervo_Project_Cape.out

Lines changed: 6 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.720 sec
7+
GEOPHIRES Version: 3.9.47
8+
Simulation Date: 2025-07-31
9+
Simulation Time: 08:57
10+
Calculation Time: 0.712 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -24,7 +24,8 @@ Simulation Metadata
2424
***ECONOMIC PARAMETERS***
2525

2626
Economic Model = BICYCLE
27-
Accrued financing during construction: 5.00 %
27+
Accrued financing during construction: 5.00 %
28+
Inflation costs during construction: 24.14 MUSD
2829
Project lifetime: 15 yr
2930
Capacity factor: 90.0 %
3031
Project NPV: 520.01 MUSD

tests/examples/example10_HP.out

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

55
Simulation Metadata
66
----------------------
7-
GEOPHIRES Version: 3.9.7
8-
Simulation Date: 2025-05-15
9-
Simulation Time: 10:13
10-
Calculation Time: 0.096 sec
7+
GEOPHIRES Version: 3.9.47
8+
Simulation Date: 2025-07-31
9+
Simulation Time: 08:57
10+
Calculation Time: 0.105 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -26,7 +26,8 @@ Simulation Metadata
2626

2727
Economic Model = Standard Levelized Cost
2828
Interest Rate: 5.00 %
29-
Accrued financing during construction: 5.00 %
29+
Accrued financing during construction: 5.00 %
30+
Inflation costs during construction: 1.39 MUSD
3031
Project lifetime: 30 yr
3132
Capacity factor: 90.0 %
3233
Project NPV: 15.18 MUSD
@@ -64,7 +65,7 @@ Simulation Metadata
6465
m/A Drawdown Parameter: 0.00002 1/year
6566
Bottom-hole temperature: 109.50 degC
6667
Reservoir volume calculated with fracture separation and number of fractures as input
67-
Number of fractures: 12.00
68+
Number of fractures: 12
6869
Fracture separation: 80.00 meter
6970
Reservoir volume: 176000000 m**3
7071
Reservoir hydrostatic pressure: 20488.96 kPa

0 commit comments

Comments
 (0)