More flexible powerflows to match REopt output#609
Merged
Conversation
added 9 commits
August 18, 2021 14:19
…o add to vartable and propigate to batt_vars. Next step is to do DC side
…p_pv_ac wasn't included in calculations
… for BTM automated dispatch, defaults provided for manual and fom. part way through updating test variables
…ble_powerflows
…into more_flexible_powerflows
…ble_powerflows
added 2 commits
August 25, 2021 10:33
dguittet
requested changes
Aug 31, 2021
dguittet
left a comment
Collaborator
There was a problem hiding this comment.
Curious why isn't chargeOnlySystemExceedLoad for DC batteries, but then in the tests both chargeOnlySystemExceedLoad and dischargeOnlyLoadExceedSystem can be false? In both the cmod_battery var_table where meter_position is fixed and in the powerflow calculations where I didn't see changes to the charging part of the code.
Collaborator
Author
I'll remove this variable from the DC tests. The DC code is structured in a way such that this variable is effectively always false. I worry the efficiency calculations required to enforce this on the DC side would be extremely difficult, but happy to discuss if it's important. |
added 3 commits
September 1, 2021 09:06
…ble_powerflows
…ad can't be greater than load, add test case where AC connected battery requests more than PV when grid charging is off, remove irrelevant false variables from DC setup
…team trying to use reopt outputs. update tests with increased charging charactaristics
dguittet
approved these changes
Sep 2, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restrictions in SAM's powerflow code required that AC connected, behind the meter batteries only charge when the renewable system's power exceeded load, and only discharge when the load exceeded the renewable system's power. DC connected batteries were subject to the latter restriction as well.
In order to accurately process optimal dispatch from REopt, these powerflow constraints need to be lifted, as some timesteps will violate these constraints. This increases the power that SAM deliveres from the battery to the load while running a REopt dispatch case from 93% of REopt's prediction to 99.94% - and should help with other custom dispatch cases as well.
Pairs with SAM PR: NatLabRockies/SAM#692