Skip to content

Commit

Permalink
derUtilityCost: Added stacked plots of BESS compensation to consumers…
Browse files Browse the repository at this point in the history
… and ongoing and one-time operational costs to Cash Flow Projection plot
  • Loading branch information
astronobri committed Dec 9, 2024
1 parent 180d695 commit d4e8cc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions omf/models/derUtilityCost.html
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@
{"name":"Net Benefits", "data": allOutputData.netCashflow},
{"name":"Utility Savings", "data": allOutputData.savingsAllYears},
{"name":"Subsidies", "data": allOutputData.subsidies},
//{"name":"BESS Compensation to Member-consumers", "data": allOutputData.BESS_compensation_to_consumer_allyears},
//{"name":"Ongoing Operational Costs", "data": allOutputData.operationalCosts_ongoing_allyears_total},
//{"name":"One-time Operational Costs", "data": allOutputData.operationalCosts_onetime_allyears_total},
{"name":"BESS Compensation to Member-consumers", "data": allOutputData.BESS_compensation_to_consumer_allyears},
{"name":"Ongoing Operational Costs", "data": allOutputData.operationalCosts_ongoing_allyears_total},
{"name":"One-time Operational Costs", "data": allOutputData.operationalCosts_onetime_allyears_total},
{"name":"Cumulative Return", "type":"spline", "data": allOutputData.cumulativeCashflow}
],
"yAxis":{"title":{"text":"Income ($)","style":{"color":"gray"}}},
Expand Down
12 changes: 6 additions & 6 deletions omf/models/derUtilityCost.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ def work(modelDir, inputDict):
operationalCosts_1year_total = operationalCosts_onetime + operationalCosts_ongoing*12
operationalCosts_1year_array = np.full(12, operationalCosts_ongoing)
operationalCosts_1year_array[0] += operationalCosts_onetime
operationalCosts_ongoing_allyears_array = np.full(projectionLength, operationalCosts_ongoing*12)
operationalCosts_onetime_allyears_array = np.full(projectionLength, 0)
operationalCosts_onetime_allyears_array[0] = operationalCosts_1year_total
operationalCosts_ongoing_allyears_array = np.full(projectionLength, operationalCosts_ongoing*12.0)
operationalCosts_onetime_allyears_array = np.full(projectionLength, 0.0)
operationalCosts_onetime_allyears_array[0] = operationalCosts_onetime

## Calculating total utility costs
utilityCosts_1year_total = operationalCosts_1year_total + operationalCosts_ongoing + total_subsidy_1year + total_residential_BESS_compensation
Expand Down Expand Up @@ -638,7 +638,7 @@ def work(modelDir, inputDict):

#outData['savings'] = utilityNetSavings_1year_list

# Update financial parameters
## Update financial parameters
outData['savings'] = utilityNetSavings_1year_array
outData['totalCost'] = list(np.array(outData['totalCost']) + np.array(utilityCosts_1year_array))
outData['NPV'] = utilityNetSavings_allyears_total
Expand All @@ -648,8 +648,8 @@ def work(modelDir, inputDict):
outData['savingsAllYears'] = list(utilitySavings_allyears_array)
outData['subsidies'] = list(total_subsidy_allyears_array)
outData['BESS_compensation_to_consumer_allyears'] = list(BESS_allyears_compensation_to_consumer_array)
#outData['operationalCosts_ongoing_allyears_total'] = list(operationalCosts_ongoing_allyears_array)
#outData['operationalCosts_onetime_allyears_total'] = list(operationalCosts_onetime_allyears_array)
outData['operationalCosts_ongoing_allyears_total'] = list(operationalCosts_ongoing_allyears_array)
outData['operationalCosts_onetime_allyears_total'] = list(operationalCosts_onetime_allyears_array)


# Model operations typically ends here.
Expand Down

0 comments on commit d4e8cc9

Please sign in to comment.