Skip to content

Commit

Permalink
derUtilityCost: Adjusted consumer compensation and financial paramete…
Browse files Browse the repository at this point in the history
…rs; Added startup cost input; Cleaned up financial section of code.
  • Loading branch information
astronobri committed Jan 31, 2025
1 parent c009bc9 commit 03ec3f4
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 86 deletions.
27 changes: 18 additions & 9 deletions omf/models/derUtilityCost.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@
<label class="tooltip">Energy Compensation Rate ($/kWh)<span class="classic">The dollar amount per kWh compensated to the member-consumer.</span></label>
<input type="text" id="rateCompensation" name="rateCompensation" value="{{allInputDataDict.rateCompensation}}" pattern="^\d+\.?\d*?$" min="0" required="required"/>
</div>
<div class="shortInput">
<label class="tooltip">Discount Rate (%)<span class="classic">Discount rate used in financial analysis.</span></label>
<input type="text" id="discountRate" name="discountRate" value="{{allInputDataDict.discountRate}}" pattern="[1-9][0-9]{0,2}" required="required">
</div>
<div class="shortInput">
<label class="tooltip">Program Startup Costs ($)<span class="classic">The total startup costs of the utility program ($).</span></label>
<input type="text" id="startupCosts" name="startupCosts" value="{{allInputDataDict.startupCosts}}" pattern="^\d+\.?\d*?$" required="required"/>
</div>
<div class="shortInput">
<label class="tooltip">Home Heat Pumps - Ongoing Operational Costs ($/month)<span class="classic">Specify the monthly ongoing operational costs of controlling all home heat pumps (e.g. the API usage cost per month).</span></label>
<input type="text" id="TESS_operationalCosts_ongoing_hp" name="TESS_operationalCosts_ongoing_hp" value="{{allInputDataDict.TESS_operationalCosts_ongoing_hp}}" pattern="^\d+\.?\d*?$" required="required"/>
Expand Down Expand Up @@ -152,6 +160,14 @@
<label class="tooltip">Home Water Heaters - Monthly Recurring Subsidy Amount ($)<span class="classic">The total monthly recurring subsidy amount ($) paid to all member-consumers for home water heaters (not including any upfront subsidies).</span></label>
<input type="text" id="TESS_subsidy_ongoing_wh" name="TESS_subsidy_ongoing_wh" value="{{allInputDataDict.TESS_subsidy_ongoing_wh}}" pattern="^\d+\.?\d*?$" required="required"/>
</div>
<div class="shortInput">
<label class="tooltip">Home BESS - Ongoing Operational Costs ($/month)<span class="classic">Specify the monthly ongoing operational costs of controlling all home chemical batteries (e.g. the API usage cost per month).</span></label>
<input type="text" id="BESS_operationalCosts_ongoing" name="BESS_operationalCosts_ongoing" value="{{allInputDataDict.BESS_operationalCosts_ongoing}}" pattern="^\d+\.?\d*?$" required="required"/>
</div>
<div class="shortInput">
<label class="tooltip">Home BESS - One-time Operational Costs ($)<span class="classic">Specify the total one-time operational costs of controlling all home chemical batteries (e.g. the contracting agreement with the device manufacturer).</span></label>
<input type="text" id="BESS_operationalCosts_onetime" name="BESS_operationalCosts_onetime" value="{{allInputDataDict.BESS_operationalCosts_onetime}}" pattern="^\d+\.?\d*?$" required="required"/>
</div>
<div class="shortInput">
<label class="tooltip">Home BESS - Upfront Subsidy Amount ($)<span class="classic">The total upfront subsidy amount ($) paid to all member-consumers for home battery energy storage systems (not including any recurring subsidies).</span></label>
<input type="text" id="BESS_subsidy_onetime" name="BESS_subsidy_onetime" value="{{allInputDataDict.BESS_subsidy_onetime}}" pattern="^\d+\.?\d*?$" required="required"/>
Expand Down Expand Up @@ -179,14 +195,6 @@
<label class="tooltip">Number of Home Chemical Batteries<span class="classic">Total number of home chemical batteries to model.</span></label>
<input type="text" id="numberBESS" name="numberBESS" value="{{allInputDataDict.numberBESS}}" required="required">
</div>
<div class="shortInput">
<label class="tooltip">Ongoing Operational Costs ($/month)<span class="classic">Specify the monthly ongoing operational costs of controlling all member-consumer home chemical batteries (e.g. the API usage cost per month).</span></label>
<input type="text" id="BESS_operationalCosts_ongoing" name="BESS_operationalCosts_ongoing" value="{{allInputDataDict.BESS_operationalCosts_ongoing}}" pattern="^\d+\.?\d*?$" required="required"/>
</div>
<div class="shortInput">
<label class="tooltip">One-time Operational Costs ($)<span class="classic">Specify the total one-time operational costs of controlling all member-consumer home chemical batteries (e.g. the contracting agreement with the device manufacturer).</span></label>
<input type="text" id="BESS_operationalCosts_onetime" name="BESS_operationalCosts_onetime" value="{{allInputDataDict.BESS_operationalCosts_onetime}}" pattern="^\d+\.?\d*?$" required="required"/>
</div>
<div class="shortInput">
<label class="tooltip">Home Battery Power Capacity (kW)<span class="classic">Specify the home chemical battery power capacity in kW for each individual battery enrolled by a member-consumer.</span></label>
<input type="text" id="BESS_kw" name="BESS_kw" value="{{allInputDataDict.BESS_kw}}" required="required"/>
Expand Down Expand Up @@ -417,7 +425,7 @@
insertMetric("monthlySummaryTable","Total Cost of Service ($)", allOutputData.totalCost_service)
insertMetric("monthlySummaryTable","Adjusted Total Cost of Service ($)", allOutputData.totalCostAdjusted_service)
insertMetric("monthlySummaryTable","Total Consumer Compensation ($)", allOutputData.totalCost_paidToConsumer)
insertMetric("monthlySummaryTable","Net Utility Savings ($)", allOutputData.savings_total)
insertMetric("monthlySummaryTable","Net Utility Savings ($)", allOutputData.netSavings_year1)
//insertMetric("monthlySummaryTable","1 kW Consumer Savings ($)", allOutputData.totalSavingsSmallConsumer)
//insertMetric("monthlySummaryTable","10 kW Consumer Savings ($)", allOutputData.totalSavingsLargeConsumer)
</script>
Expand All @@ -442,6 +450,7 @@
{"name":"Subsidies", "data": allOutputData.subsidies, "color": "black"},
{"name":"Consumer BESS Compensation", "data": allOutputData.BESS_compensation_to_consumer_allyears, "color": "rgb(255,102,102)"},
{"name":"Grid Costs", "data": allOutputData.energyCostAdjusted_gridCharging_annual, "color": "rgb(169,169,169)"},
{"name":"Startup Costs", "data": allOutputData.startupCosts, "color": "rgb(0,30,179)"},
{"name":"BESS Operational Costs", "data": allOutputData.operationalCosts_BESS_allyears, "color": "orange"},
{"name":"TESS Operational Costs", "data": allOutputData.operationalCosts_TESS_allyears, "color": "red"},
{"name":"Cumulative Return", "type":"spline", "data": allOutputData.cumulativeCashflow_total, "color": "brown"}
Expand Down
Loading

0 comments on commit 03ec3f4

Please sign in to comment.