Describe the bug
Battery losses are not applied to the calculations of "hours of autonomy during outage" in the resiliency runner. The losses are applied to a source (PV, grid, battery) in the powerflow code, and the resiliency runner does not interface with this code. This generates behavior such as:
(a) The no-loss case and the loss case having the same hours of autonomy (given the same SOC at that step).
(b) Overestimating the survival hours. For example, a battery with 3.5 kWh of charge and a 1 kW discharging loss reports 5 hours of survival.
To Reproduce
Steps to reproduce the behavior:
- Load the attached SAM file:
losses_bug.zip
- Run both cases
- Observe the hours of survival issues stated above.
Expected behavior
The resiliency code should account for battery losses.
Exists in 2020.11.29, and also in develop. The approach we took in solving #379 did not touch the code for the resiliency runner.
Describe the bug
Battery losses are not applied to the calculations of "hours of autonomy during outage" in the resiliency runner. The losses are applied to a source (PV, grid, battery) in the powerflow code, and the resiliency runner does not interface with this code. This generates behavior such as:
(a) The no-loss case and the loss case having the same hours of autonomy (given the same SOC at that step).
(b) Overestimating the survival hours. For example, a battery with 3.5 kWh of charge and a 1 kW discharging loss reports 5 hours of survival.
To Reproduce
Steps to reproduce the behavior:
losses_bug.zip
Expected behavior
The resiliency code should account for battery losses.
Exists in 2020.11.29, and also in develop. The approach we took in solving #379 did not touch the code for the resiliency runner.