Skip to content

More flexible powerflows to match REopt output#609

Merged
brtietz merged 14 commits into
developfrom
more_flexible_powerflows
Sep 2, 2021
Merged

More flexible powerflows to match REopt output#609
brtietz merged 14 commits into
developfrom
more_flexible_powerflows

Conversation

@brtietz

@brtietz brtietz commented Aug 24, 2021

Copy link
Copy Markdown
Collaborator

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

@dguittet dguittet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread shared/lib_battery_powerflow.cpp Outdated
Comment thread ssc/cmod_battery.cpp
Comment thread ssc/cmod_battwatts.cpp Outdated
Comment thread test/shared_test/lib_battery_powerflow_test.cpp
Comment thread test/shared_test/lib_battery_powerflow_test.cpp
@brtietz

brtietz commented Aug 31, 2021

Copy link
Copy Markdown
Collaborator Author

chargeOnlySystemExceedLoad for DC batteries,

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.

Brian Mirletz added 3 commits September 1, 2021 09:06
…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
@brtietz brtietz merged commit 4ec8bfb into develop Sep 2, 2021
@brtietz brtietz deleted the more_flexible_powerflows branch February 9, 2022 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants