Hello,
The battery model we have assumes a Residential or Commercial case where there is some electric load to meet with PV+Battery. SAM can sell excess PV to the grid in these scenarios, but the current dispatch controller for the battery does not support selling battery power to the grid.
I could see where you would want to sell every bit of power from PV and batteries during a peak period, and then charge the batteries in off-peak periods from PV. It is possible we will add the option to dispatch battery to the grid later on. Right now however, the battery will not discharge beyond the amount required to serve the load. There is no mechanism to sell battery power exclusively to the grid. If there was, I would recommend zeroing out the load such that any PV or battery power export would go to the grid.
You can disable charging of batteries from the grid in the dispatch controller by unchecking any boxes under the column "Charge from grid".
Thank you for describing your use case, we will be continuing to add features to improve the flexibility of the model.
Regards,
Nick DiOrio