Skip to content

Commit 00e1b5e

Browse files
Add Interest During Construction (IDC) capital cost output
1 parent 12b172d commit 00e1b5e

File tree

11 files changed

+55
-51
lines changed

11 files changed

+55
-51
lines changed

src/geophires_x/Economics.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,10 +2223,7 @@ def __init__(self, model: Model):
22232223
PreferredUnits=PercentUnit.PERCENT,
22242224
CurrentUnits=PercentUnit.PERCENT,
22252225
ToolTipText='The accrued inflation on total capital costs over the construction period, '
2226-
f'as defined by {self.inflrateconstruction.Name}. '
2227-
'For SAM Economic Models, this is calculated automatically by compounding '
2228-
f'{self.RINFL.Name} over Construction Years '
2229-
f'if {self.inflrateconstruction.Name} is not provided.'
2226+
f'as defined by {self.inflrateconstruction.Name}.'
22302227
)
22312228

22322229
self.inflation_cost_during_construction = self.OutputParameterDict[

src/geophires_x/EconomicsUtils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ def interest_during_construction_output_parameter() -> OutputParameter:
153153
UnitType=Units.CURRENCY,
154154
PreferredUnits=CurrencyUnit.MDOLLARS,
155155
CurrentUnits=CurrencyUnit.MDOLLARS,
156-
ToolTipText='The sum of interest paid during construction.', # WIP/TODO
156+
ToolTipText='The total accumulated interest incurred on debt during the construction phase. '
157+
'This cost is capitalized (added to the loan principal and total installed cost) '
158+
'rather than paid in cash.',
157159
)
158160

159161

@@ -193,8 +195,6 @@ class PreRevenueCostsAndCashflow:
193195
inflation_cost_usd: float = 0.0
194196

195197
pre_revenue_cash_flow_profile: list[list[float | str]] = field(default_factory=list)
196-
# pre_revenue_cash_flow_profile_dict: dict[str, list[float]] = field(default_factory=dict)
197-
# """Maps SAM's row names (str) to a list of pre-revenue values"""
198198

199199
@property
200200
def effective_debt_percent(self) -> float:

src/geophires_x/Outputs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,10 @@ def PrintOutputs(self, model: Model):
274274
label = Outputs._field_label(field.Name, 49)
275275
f.write(f' {label}{field.value:10.2f} {field.CurrentUnits.value}\n')
276276

277-
acf: OutputParameter = econ.accrued_financing_during_construction_percentage
278-
acf_label = Outputs._field_label(acf.display_name, 49)
279-
f.write(f' {acf_label}{acf.value:10.2f} {acf.CurrentUnits.value}\n')
277+
if not is_sam_econ_model: # (parameter is ambiguous to the point of meaninglessness for SAM-EM)
278+
acf: OutputParameter = econ.accrued_financing_during_construction_percentage
279+
acf_label = Outputs._field_label(acf.display_name, 49)
280+
f.write(f' {acf_label}{acf.value:10.2f} {acf.CurrentUnits.value}\n')
280281

281282
display_inflation_costs_in_economic_parameters: bool = (
282283
econ.econmodel.value in [EconomicModel.BICYCLE,

src/geophires_x_schema_generator/geophires-result.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
},
102102
"Accrued financing during construction": {
103103
"type": "number",
104-
"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.",
104+
"description": "The accrued inflation on total capital costs over the construction period, as defined by Inflation Rate During Construction.",
105105
"units": "%"
106106
},
107107
"Inflation costs during construction": {
@@ -447,6 +447,11 @@
447447
"description": "The calculated amount of cost escalation due to inflation over the construction period.",
448448
"units": "MUSD"
449449
},
450+
"Interest during construction (IDC)": {
451+
"type": "number",
452+
"description": "The total accumulated interest incurred on debt during the construction phase. This cost is capitalized (added to the loan principal and total installed cost) rather than paid in cash.",
453+
"units": "MUSD"
454+
},
450455
"Total Add-on CAPEX": {
451456
"type": "number",
452457
"description": "AddOn CAPEX Total",

tests/examples/Fervo_Project_Cape-4.out

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.10.10
88
Simulation Date: 2025-11-24
9-
Simulation Time: 09:38
10-
Calculation Time: 1.727 sec
9+
Simulation Time: 09:47
10+
Calculation Time: 1.731 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -28,7 +28,6 @@ Simulation Metadata
2828
Real Discount Rate: 12.00 %
2929
Nominal Discount Rate: 14.58 %
3030
WACC: 8.30 %
31-
Accrued financing during construction: 0.00 %
3231
Project lifetime: 30 yr
3332
Capacity factor: 90.0 %
3433
Project NPV: 483.35 MUSD

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.10.10
88
Simulation Date: 2025-11-24
9-
Simulation Time: 09:38
10-
Calculation Time: 0.983 sec
9+
Simulation Time: 09:47
10+
Calculation Time: 0.970 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -28,7 +28,6 @@ Simulation Metadata
2828
Real Discount Rate: 7.00 %
2929
Nominal Discount Rate: 9.14 %
3030
WACC: 6.41 %
31-
Accrued financing during construction: 0.00 %
3231
Project lifetime: 20 yr
3332
Capacity factor: 90.0 %
3433
Project NPV: 2877.00 MUSD

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.10.10
88
Simulation Date: 2025-11-24
9-
Simulation Time: 09:38
10-
Calculation Time: 1.156 sec
9+
Simulation Time: 09:47
10+
Calculation Time: 1.172 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -28,7 +28,6 @@ Simulation Metadata
2828
Real Discount Rate: 8.00 %
2929
Nominal Discount Rate: 10.16 %
3030
WACC: 7.57 %
31-
Accrued financing during construction: 0.00 %
3231
Project lifetime: 20 yr
3332
Capacity factor: 90.0 %
3433
Project NPV: 210.63 MUSD

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.10.10
88
Simulation Date: 2025-11-24
9-
Simulation Time: 09:38
10-
Calculation Time: 1.161 sec
9+
Simulation Time: 09:47
10+
Calculation Time: 1.162 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -28,7 +28,6 @@ Simulation Metadata
2828
Real Discount Rate: 8.00 %
2929
Nominal Discount Rate: 10.16 %
3030
WACC: 7.57 %
31-
Accrued financing during construction: 0.00 %
3231
Project lifetime: 20 yr
3332
Capacity factor: 90.0 %
3433
Project NPV: 103.00 MUSD

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.10.10
88
Simulation Date: 2025-11-24
9-
Simulation Time: 09:38
10-
Calculation Time: 1.754 sec
9+
Simulation Time: 09:47
10+
Calculation Time: 1.722 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -28,7 +28,6 @@ Simulation Metadata
2828
Real Discount Rate: 8.00 %
2929
Nominal Discount Rate: 10.48 %
3030
WACC: 7.60 %
31-
Accrued financing during construction: 3.15 %
3231
Project lifetime: 30 yr
3332
Capacity factor: 90.0 %
3433
Project NPV: 91.53 MUSD

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Simulation Metadata
66
----------------------
77
GEOPHIRES Version: 3.10.10
88
Simulation Date: 2025-11-24
9-
Simulation Time: 09:38
10-
Calculation Time: 1.164 sec
9+
Simulation Time: 09:47
10+
Calculation Time: 1.165 sec
1111

1212
***SUMMARY OF RESULTS***
1313

@@ -28,7 +28,6 @@ Simulation Metadata
2828
Real Discount Rate: 8.00 %
2929
Nominal Discount Rate: 10.16 %
3030
WACC: 7.57 %
31-
Accrued financing during construction: 0.00 %
3231
Project lifetime: 20 yr
3332
Capacity factor: 90.0 %
3433
Project NPV: 126.12 MUSD

0 commit comments

Comments
 (0)