Describe the bug
The code for charging a DC connected battery will back off of charging the battery during a grid outage if the PV array is not meeting the critical load. However, if the inverter is oversized, then this can result in extra power being pushed through the inverter and curtailed, rather than charging the battery. Find a way to change the iteration behavior for DC-connected batteries to provide more power to the battery instead of curtailing it.
To Reproduce
Steps to reproduce the behavior:
-
Run the attached SAM file
DC connected bug demonstration.zip
-
View "critical load in this timestep", "electricity to battery" and "electricity loss due to curtailment" in steps 34-41
Expected behavior
Charging steps should always behave more like steps 12-14, where the battery charges at full power.
Screenshots

Desktop (please complete the following information):
Describe the bug
The code for charging a DC connected battery will back off of charging the battery during a grid outage if the PV array is not meeting the critical load. However, if the inverter is oversized, then this can result in extra power being pushed through the inverter and curtailed, rather than charging the battery. Find a way to change the iteration behavior for DC-connected batteries to provide more power to the battery instead of curtailing it.
To Reproduce
Steps to reproduce the behavior:
Run the attached SAM file
DC connected bug demonstration.zip
View "critical load in this timestep", "electricity to battery" and "electricity loss due to curtailment" in steps 34-41
Expected behavior
Charging steps should always behave more like steps 12-14, where the battery charges at full power.
Screenshots

Desktop (please complete the following information):