Skip to content

Commit 20c5607

Browse files
Don't subtract ITC from capex for SAM Economic Models (as opposed to previous behavior which subtracted and then re-added later)
1 parent 72474b1 commit 20c5607

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/geophires_x/Economics.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3081,8 +3081,9 @@ def calculate_total_capital_costs(self, model):
30813081
else:
30823082
self.CCap.value = self.totalcapcost.value
30833083

3084-
# update the capital costs, assuming the entire ITC is used to reduce the capital costs
3085-
if self.RITC.Provided:
3084+
if self.RITC.Provided and self.econmodel.value != EconomicModel.SAM_SINGLE_OWNER_PPA:
3085+
# update the capital costs, assuming the entire ITC is used to reduce the capital costs
3086+
# (not applied for SAM Economic Models since they handle ITC in cash flow, not capex)
30863087
self.RITCValue.value = self.RITC.value * self.CCap.value
30873088
self.CCap.value = self.CCap.value - self.RITCValue.value
30883089

src/geophires_x/EconomicsSam.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ def _get_single_owner_parameters(model: Model) -> dict[str, Any]:
346346
# calling with PySAM. But, we set it here anyway for the sake of technical compliance.
347347
ret['flip_target_year'] = model.surfaceplant.plant_lifetime.value
348348

349-
itc = econ.RITCValue.quantity()
350-
total_capex = econ.CCap.quantity() + itc
349+
total_capex = econ.CCap.quantity()
351350

352351
if econ.inflrateconstruction.Provided:
353352
inflation_during_construction_factor = 1.0 + econ.inflrateconstruction.quantity().to('dimensionless').magnitude

0 commit comments

Comments
 (0)