Skip to content

Commit 43ecf39

Browse files
authored
Merge pull request #43 from switchbox-data/update_docs
Update docs
2 parents 28b6674 + 46be173 commit 43ecf39

File tree

1 file changed

+168
-16
lines changed

1 file changed

+168
-16
lines changed

docs/formulas.md

Lines changed: 168 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,122 @@ title: Formulas - NPA How to Pay Model
3333
toc-title: Table of contents
3434
---
3535

36-
# Mathematical Formulas
37-
38-
This document contains the mathematical formulas implemented in the
36+
This document contains the formulas implemented in the
3937
`npa-howtopay` model, organized by functional area.
4038

39+
## Variable Definitions
40+
41+
### Customer and Conversion Variables
42+
| Variable | Description | Units |
43+
|----------|-------------|-------|
44+
| $N_{gas}(t)$ | Number of gas customers in year $t$ | customers |
45+
| $N_{gas,init}$ | Initial number of gas customers | customers |
46+
| $N_{electric}(t)$ | Number of electric customers in year $t$ | customers |
47+
| $N_{electric,init}$ | Initial number of electric customers | customers |
48+
| $N_{converts}(t)$ | Cumulative number of converted households including non-npa households through year $t$ | customers |
49+
| $N_{NPAconverts}(t)$ | Sum of NPA households converters in year $t$ (excludes scattershot electrification) | customers |
50+
| $N_{customers}(t)$ | Total number of customers in year $t$ | customers |
51+
52+
### Energy Usage and Efficiency Variables
53+
| Variable | Description | Units |
54+
|----------|-------------|-------|
55+
| $U_{gas}(t)$ | Total gas usage in therms in year $t$ | therms |
56+
| $U_{electric}(t)$ | Total electric usage in kWh in year $t$ | kWh |
57+
| $Q_{heating,therms}$ | Average per-customer heating need in therms | therms/customer |
58+
| $Q_{electric,kWh}$ | Average per-customer electric need in kWh | kWh/customer |
59+
| $K_{therm\to kWh}$ | Conversion factor from therms to kWh | kWh/therm |
60+
| $\eta_{HP}$ | Heat pump efficiency | dimensionless |
61+
62+
### Gas System Variables
63+
| Variable | Description | Units |
64+
|----------|-------------|-------|
65+
| $C_{gas,var}(t)$ | Gas variable costs in year $t$ | $ |
66+
| $C_{gas,fixed}(t)$ | Gas fixed costs in year $t$ | $ |
67+
| $C_{gas,overhead}(t)$ | Gas fixed overhead costs in year $t$ | $ |
68+
| $C_{gas,maintenance}(t)$ | Gas maintenance costs in year $t$ | $ |
69+
| $C_{gas,NPA,opex}(t)$ | Gas NPA OPEX in year $t$ | $ |
70+
| $C_{gas,opex}(t)$ | Gas OPEX costs in year $t$ | $ |
71+
| $R_{gas}(t)$ | Gas revenue requirement in year $t$ | $ |
72+
| $RB_{gas}(t)$ | Gas ratebase in year $t$ | $ |
73+
| $ror_{gas}$ | Gas rate of return | % |
74+
| $D_{gas}(t)$ | Gas depreciation expense in year $t$ | $ |
75+
| $P_{gas}(t)$ | Gas generation cost per therm in year $t$ | $/therm |
76+
77+
### Electric System Variables
78+
| Variable | Description | Units |
79+
|----------|-------------|-------|
80+
| $C_{electric,var}(t)$ | Electric variable costs in year $t$ | $ |
81+
| $C_{electric,fixed}(t)$ | Electric fixed costs in year $t$ | $ |
82+
| $C_{electric,overhead}(t)$ | Electric fixed overhead costs in year $t$ | $ |
83+
| $C_{electric,maintenance}(t)$ | Electric maintenance costs in year $t$ | $ |
84+
| $C_{electric,NPA,opex}(t)$ | Electric NPA OPEX in year $t$ | $ |
85+
| $C_{electric,opex}(t)$ | Electric OPEX costs in year $t$ | $ |
86+
| $R_{electric}(t)$ | Electric revenue requirement in year $t$ | $ |
87+
| $RB_{electric}(t)$ | Electric ratebase in year $t$ | $ |
88+
| $ror_{electric}$ | Electric rate of return | % |
89+
| $D_{electric}(t)$ | Electric depreciation expense in year $t$ | $ |
90+
| $P_{electric}(t)$ | Electricity generation cost per kWh in year $t$ | $/kWh |
91+
| $P_{peak,kw}$| Distribution cost per peak kW increase | $/kWh |
92+
93+
### Revenue and Inflation Variables
94+
| Variable | Description | Units |
95+
|----------|-------------|-------|
96+
| $R(t)$ | Revenue requirement in year $t$ | $ |
97+
| $R_{adj}(t)$ | Inflation-adjusted revenue requirement in year $t$ | $ |
98+
| $R_{electric,adj}(t)$ | Inflation-adjusted electric revenue requirement in year $t$ | $ |
99+
| $R_{gas,adj}(t)$ | Inflation-adjusted gas revenue requirement in year $t$ | $ |
100+
| $d$ | Discount rate | % |
101+
| $t_0$ | Start year | year |
102+
103+
### Tariff and Billing Variables
104+
| Variable | Description | Units |
105+
|----------|-------------|-------|
106+
| $C_{electric,fixed,per\_customer}$ | Electric fixed charge per customer (user input) | $/customer |
107+
| $C_{electric,var,kWh}(t)$ | Electric volumetric tariff per kWh in year $t$ | $/kWh |
108+
| $C_{gas,fixed,per\_customer}$ | Gas fixed charge per customer (user input) | $/customer |
109+
| $C_{gas,var,therm}(t)$ | Gas volumetric tariff per therm in year $t$ | $/therm |
110+
| $B_{per\_customer}(t)$ | Bill per customer in year $t$ | $/customer |
111+
| $B_{electric,converts}(t)$ | Electric bill per customer for converts in year $t$ | $/customer |
112+
| $B_{electric,nonconverts}(t)$ | Electric bill per customer for non-converts in year $t$ | $/customer |
113+
| $B_{total,converts}(t)$ | Total bill per customer for converts in year $t$ | $/customer |
114+
| $B_{total,nonconverts}(t)$ | Total bill per customer for non-converts in year $t$ | $/customer |
115+
| $B_{gas,nonconverts}(t)$ | Gas bill per customer for non-converts in year $t$ | $/customer |
116+
117+
### Depreciation and Project Variables
118+
| Variable | Description | Units |
119+
|----------|-------------|-------|
120+
| $f_{dep}(t, t_p, L)$ | Depreciation fraction for project $p$ in year $t$ | dimensionless |
121+
| $RB(t)$ | Total ratebase in year $t$ | $ |
122+
| $D(t)$ | Total depreciation expense in year $t$ | $ |
123+
| $C_{maintenance}(t)$ | Total maintenance costs in year $t$ | $ |
124+
| $t_p$ | Project year for project $p$ | year |
125+
| $L_p$ | Depreciation lifetime for project $p$ | years |
126+
| $C_p$ | Original cost of project $p$ | $ |
127+
| $C_{p_{non-NPA}}$ | Original cost of non-NPA project $p$ | $ |
128+
| $m_{pct}$ | Maintenance cost percentage | % |
129+
130+
### Synthetic Initial Project Variables
131+
| Variable | Description | Units |
132+
|----------|-------------|-------|
133+
| $W_{total}$ | Total weight for synthetic initial projects | dimensionless |
134+
| $L$ | Depreciation lifetime | years |
135+
| $RB_{init}$ | Initial ratebase | $ |
136+
| $C_{est}$ | Estimated original cost per year | $/year |
137+
41138
## Gas System Calculations
42139

43140
### Gas Number of customers
44141

45142
The number of gas customers decreases over time as customers convert to
46143
heat pumps. There is no growth in the number of gas customers:
47144

48-
$$N_{gas}(t) = N_{gas,init} - \sum_{i=1}^{t} HP_{converts}(i)$$
145+
$$N_{gas}(t) = N_{gas,init} - \sum_{i=1}^{t} N_{converts}(i)$$
49146

50147
**Variables:**
51148

52149
- $N_{gas}(t)$: Number of gas customers in year $t$
53150
- $N_{gas,init}$: Initial number of gas customers
54-
- $HP_{converts}(t)$: Sum of NPA households and scattershot converters
151+
- $N_{converts}(t)$: Sum of NPA households and scattershot converters
55152
in year $t$.
56153

57154
### Total Gas Usage
@@ -100,6 +197,22 @@ $$C_{gas,opex}(t) = C_{gas,fixed}(t) + C_{gas,var}(t)$$
100197
**Variables:**
101198

102199
- $C_{gas,opex}(t)$: Gas OPEX costs in year $t$
200+
- $C_{gas,fixed}(t)$: Gas fixed costs in year $t$
201+
- $C_{gas,var}(t)$: Gas variable costs in year $t$
202+
203+
### Gas Avoided LPP Spending
204+
205+
The avoided LPP spending in a given year is the sum of the pipe value per customer times the number of converts for each NPA project in that year:
206+
207+
$$C_{gas,LPP,avoided}(t) = \sum_{p \in P(t)} N_{converts}(p) \times V_{pipe,user}(p)$$
208+
209+
**Variables:**
210+
211+
- $C_{gas,LPP,avoided}(t)$: Gas LPP spending avoided in year $t$
212+
- $P(t)$: Set of NPA projects in year $t$
213+
- $N_{converts}(p)$: Number of converts in project $p$
214+
- $V_{pipe,user}(p)$: Pipe value per user for project $p$
215+
103216

104217
### Gas Revenue Requirement
105218

@@ -113,6 +226,7 @@ $$R_{gas}(t) = RB_{gas}(t) \times ror_{gas} + C_{gas,opex}(t) + D_{gas}(t)$$
113226
- $R_{gas}(t)$: Gas revenue requirement in year $t$
114227
- $RB_{gas}(t)$: Gas ratebase in year $t$
115228
- $ror_{gas}$: Gas rate of return
229+
- $C_{gas,opex}(t)$: Gas OPEX costs in year $t$
116230
- $D_{gas}(t)$: Gas depreciation expense in year $t$
117231

118232
## Electric System Calculations
@@ -128,17 +242,6 @@ $$N_{electric}(t) = N_{electric,init}$$
128242
- $N_{electric}(t)$: Number of electric customers in year $t$
129243
- $N_{electric,init}$: Initial number of electric customers
130244

131-
### Total Cumulative Converts
132-
133-
The cumulative number of heat pump converts through year $t$. This does
134-
not affect the number of electric customers:
135-
136-
$$N_{converts}(t) = \sum_{i=1}^{t} HP_{converts}(i)$$
137-
138-
**Variables:**
139-
140-
- $N_{converts}(t)$: Sum of NPA households and scattershot converters
141-
in year $t$.
142245

143246
### Total Electric Usage
144247

@@ -151,7 +254,9 @@ $$U_{electric}(t) = N_{electric,init} \times Q_{electric,kWh} + \frac{N_{convert
151254

152255
- $U_{electric}(t)$: Total electric usage in kWh in year $t$
153256
- $N_{electric,init}$: Initial number of electric customers
257+
- $N_{converts}(t)$: Cumulative electrification converts through year $t$
154258
- $Q_{electric,kWh}$: Average per-customer electric need in kWh
259+
- $Q_{heating,therms}$: Average per-customer heating need in therms
155260
- $K_{therm\to kWh}$: Conversion factor from therms to kWh
156261
- $\eta_{HP}$: Heat pump efficiency
157262

@@ -165,6 +270,7 @@ $$C_{electric,var}(t) = U_{electric}(t) \times P_{electric}(t)$$
165270
**Variables:**
166271

167272
- $C_{electric,var}(t)$: Electric variable costs in year $t$
273+
- $U_{electric}(t)$: Total electric usage in kWh in year $t$
168274
- $P_{electric}(t)$: Electricity generation cost per kWh in year $t$
169275

170276
### Electric Fixed Costs
@@ -191,6 +297,8 @@ $$C_{electric,opex}(t) = C_{electric,fixed}(t) + C_{electric,var}(t)$$
191297
**Variables:**
192298

193299
- $C_{electric,opex}(t)$: Electric OPEX costs in year $t$
300+
- $C_{electric,fixed}(t)$: Electric fixed costs in year $t$
301+
- $C_{electric,var}(t)$: Electric variable costs in year $t$
194302

195303
### Electric Revenue Requirement
196304

@@ -204,8 +312,31 @@ $$R_{electric}(t) = RB_{electric}(t) \times ror_{electric} + C_{electric,opex}(t
204312
- $R_{electric}(t)$: Electric revenue requirement in year $t$
205313
- $RB_{electric}(t)$: Electric ratebase in year $t$
206314
- $ror_{electric}$: Electric rate of return
315+
- $C_{electric,opex}(t)$: Electric OPEX costs in year $t$
207316
- $D_{electric}(t)$: Electric depreciation expense in year $t$
208317

318+
### Electric Grid Upgrades
319+
320+
The cost of electric grid upgrades is determined by the peak kW increase from heat pumps and air conditioning, multiplied by a per-peak kW distribution cost:
321+
322+
$$C_{grid,upgrade}(t) = \Delta kW_{peak}(t) \times P_{peak,kw}$$
323+
324+
where the peak kW increase is:
325+
326+
$$\Delta kW_{peak}(t) = \sum_{p \in P(t)} \left[ N_{NPAconverts}(p) \times \left( kW_{HP,peak} + (kW_{AC,peak} \times (1 - a_{pre})) \right) \right]$$
327+
328+
**Variables:**
329+
330+
- $C_{grid,upgrade}(t)$: Grid upgrade capital cost in year $t$
331+
- $\Delta kW_{peak}(t)$: Total peak kW increase in year $t$
332+
- $P_{peak,kw}$: Distribution cost per peak kW increase
333+
- $P(t)$: Set of NPA projects in year $t$
334+
- $N_{NPAconverts}(p)$: Number of converts in project $p$
335+
- $kW_{HP,peak}$: Peak kW per heat pump
336+
- $kW_{AC,peak}$: Peak kW per air conditioner
337+
- $a_{pre}$: Pre-NPA air conditioner adoption rate
338+
339+
209340
## Bill Cost Calculations
210341

211342
### Inflation-Adjusted Revenue Requirement
@@ -231,6 +362,7 @@ $$B_{per\_customer}(t) = \frac{R_{adj}(t)}{N_{customers}(t)}$$
231362
**Variables:**
232363

233364
- $B_{per\_customer}(t)$: Bill per customer in year $t$
365+
- $R_{adj}(t)$: Inflation-adjusted revenue requirement in year $t$
234366
- $N_{customers}(t)$: Number of customers in year $t$
235367

236368
### Electric Fixed Charge Per customer
@@ -295,6 +427,12 @@ $$B_{electric,converts}(t) = C_{electric,fixed,per\_customer} + C_{electric,var,
295427

296428
- $B_{electric,converts}(t)$: Electric bill per customer for converts
297429
in year $t$
430+
- $C_{electric,fixed,per\_customer}$: Electric fixed charge per customer (user input)
431+
- $C_{electric,var,kWh}(t)$: Electric volumetric tariff per kWh in year $t$
432+
- $Q_{electric,kWh}$: Average per-customer electric need in kWh
433+
- $Q_{heating,therms}$: Average per-customer heating need in therms
434+
- $K_{therm\to kWh}$: Conversion factor from therms to kWh
435+
- $\eta_{HP}$: Heat pump efficiency
298436

299437
### Non-Converts Electric Bill Per customer
300438

@@ -306,6 +444,9 @@ $$B_{electric,nonconverts}(t) = C_{electric,fixed,per\_customer} + C_{electric,v
306444

307445
- $B_{electric,nonconverts}(t)$: Electric bill per customer for
308446
non-converts in year $t$
447+
- $C_{electric,fixed,per\_customer}$: Electric fixed charge per customer (user input)
448+
- $C_{electric,var,kWh}(t)$: Electric volumetric tariff per kWh in year $t$
449+
- $Q_{electric,kWh}$: Average per-customer electric need in kWh
309450

310451
### Converts Total Bill Per customer
311452

@@ -317,6 +458,7 @@ $$B_{total,converts}(t) = B_{electric,converts}(t)$$
317458

318459
- $B_{total,converts}(t)$: Total bill per customer for converts in
319460
year $t$
461+
- $B_{electric,converts}(t)$: Electric bill per customer for converts in year $t$
320462

321463
### Non-Converts Total Bill Per customer
322464

@@ -330,6 +472,7 @@ $$B_{total,nonconverts}(t) = B_{gas,nonconverts}(t) + B_{electric,nonconverts}(t
330472
in year $t$
331473
- $B_{gas,nonconverts}(t)$: Gas bill per customer for non-converts in
332474
year $t$
475+
- $B_{electric,nonconverts}(t)$: Electric bill per customer for non-converts in year $t$
333476

334477
## Depreciation and Inflation Calculations
335478

@@ -348,7 +491,10 @@ $$RB(t) = \sum_{p} f_{dep}(t, t_p, L_p) \times C_p$$
348491

349492
- $f_{dep}(t, t_p, L)$: Depreciation fraction for project $p$ in year
350493
$t$
494+
- $RB(t)$: Total ratebase in year $t$
495+
- $t$: Current year
351496
- $t_p$: Project year for project $p$
497+
- $L$: Depreciation lifetime
352498
- $L_p$: Depreciation lifetime for project $p$
353499
- $C_p$: Original cost of project $p$
354500

@@ -364,6 +510,10 @@ $$D(t) = \sum_{p} \begin{cases}
364510
**Variables:**
365511

366512
- $D(t)$: Total depreciation expense in year $t$
513+
- $t$: Current year
514+
- $C_p$: Original cost of project $p$
515+
- $L_p$: Depreciation lifetime for project $p$
516+
- $t_p$: Project year for project $p$
367517

368518
### Maintenance Costs
369519

@@ -378,6 +528,7 @@ C_{p_{non-NPA}} & \text{if } t_p < t \leq t_p + L_p \\
378528
**Variables:**
379529

380530
- $C_{maintenance}(t)$: Total maintenance costs in year $t$
531+
- $t$: Current year
381532
- $m_{pct}$: Maintenance cost percentage
382533
- $C_{p_{non-NPA}}$: Original cost of non-NPA project $p$
383534
- $t_p$: Project year for project $p$
@@ -394,6 +545,7 @@ The estimated original cost per year is:
394545

395546
$$C_{est} = \frac{RB_{init}}{W_{total}}$$
396547

548+
This creates a table of synthetic project with uniform original costs of that would results in the inital ratebase value in year 0.
397549
**Variables:**
398550

399551
- $W_{total}$: Total weight for synthetic initial projects

0 commit comments

Comments
 (0)