|
9 | 9 | from geophires_x.EconomicsSam import calculate_sam_economics, SamEconomicsCalculations
|
10 | 10 | from geophires_x.EconomicsUtils import BuildPricingModel, wacc_output_parameter, nominal_discount_rate_parameter, \
|
11 | 11 | real_discount_rate_parameter, after_tax_irr_parameter, moic_parameter, project_vir_parameter, \
|
12 |
| - project_payback_period_parameter, inflation_cost_during_construction_output_parameter |
| 12 | + project_payback_period_parameter, inflation_cost_during_construction_output_parameter, \ |
| 13 | + total_capex_parameter_output_parameter |
13 | 14 | from geophires_x.GeoPHIRESUtils import quantity
|
14 | 15 | from geophires_x.OptionList import Configuration, WellDrillingCostCorrelation, EconomicModel, EndUseOptions, PlantType, \
|
15 | 16 | _WellDrillingCostCorrelationCitation
|
@@ -1831,8 +1832,10 @@ def __init__(self, model: Model):
|
1831 | 1832 | display_name='Total capital costs',
|
1832 | 1833 | UnitType=Units.CURRENCY,
|
1833 | 1834 | PreferredUnits=CurrencyUnit.MDOLLARS,
|
1834 |
| - CurrentUnits=CurrencyUnit.MDOLLARS |
| 1835 | + CurrentUnits=CurrencyUnit.MDOLLARS, |
1835 | 1836 | )
|
| 1837 | + self.capex_total = self.OutputParameterDict[self.capex_total.Name] = total_capex_parameter_output_parameter() |
| 1838 | + |
1836 | 1839 | # noinspection SpellCheckingInspection
|
1837 | 1840 | self.Coam = self.OutputParameterDict[self.Coam.Name] = OutputParameter(
|
1838 | 1841 | Name="Total O&M Cost",
|
@@ -2583,10 +2586,12 @@ def Calculate(self, model: Model) -> None:
|
2583 | 2586 | if self.econmodel.value == EconomicModel.SAM_SINGLE_OWNER_PPA:
|
2584 | 2587 | self.sam_economics_calculations = calculate_sam_economics(model)
|
2585 | 2588 |
|
2586 |
| - # Distinguish capex from default display name of 'Total capital costs' since SAM Economic Model doesn't |
2587 |
| - # subtract ITC from this value. |
2588 |
| - self.CCap.display_name = 'Total CAPEX' |
2589 |
| - self.CCap.value = self.sam_economics_calculations.capex.quantity().to(self.CCap.CurrentUnits.value).magnitude |
| 2589 | + # Setting capex_total distinguishes capex from CCap's display name of 'Total capital costs', |
| 2590 | + # since SAM Economic Model doesn't subtract ITC from this value. |
| 2591 | + self.capex_total.value = (self.sam_economics_calculations.capex.quantity() |
| 2592 | + .to(self.capex_total.CurrentUnits.value).magnitude) |
| 2593 | + self.CCap.value = (self.sam_economics_calculations.capex.quantity() |
| 2594 | + .to(self.CCap.CurrentUnits.value).magnitude) |
2590 | 2595 |
|
2591 | 2596 | self.wacc.value = self.sam_economics_calculations.wacc.value
|
2592 | 2597 | self.nominal_discount_rate.value = self.sam_economics_calculations.nominal_discount_rate.value
|
|
0 commit comments