Skip to content

Add new BTM battery dispatch method for self-consumption#1049

Merged
brtietz merged 9 commits into
developfrom
carbonFreeDispatch
Sep 18, 2023
Merged

Add new BTM battery dispatch method for self-consumption#1049
brtietz merged 9 commits into
developfrom
carbonFreeDispatch

Conversation

@janinefreeman

@janinefreeman janinefreeman commented Sep 13, 2023

Copy link
Copy Markdown
Collaborator

This pull request and the complementary one in SAM add a new battery dispatch methodology for behind-the-meter PV+Battery and BTM battery hybrid systems that allow the battery to be dispatched to maximize self-consumption, which can also be termed "24/7 carbon-free energy" for larger industrial loads. Behind the scenes, this new dispatch option uses the grid power target option with the entire timeseries set to 0, but it is a new dispatch option to enable this functionality for PySAM users as well. Added a few new tests to go along with the new dispatch method.

Remaining to be done: adding outputs to help users understand how well this dispatch method is achieving its target (zero grid power at each timestep)

@brtietz

brtietz commented Sep 14, 2023

Copy link
Copy Markdown
Collaborator

Test failure here likely due to #1026. I propose updating the tolerance for the test for now and then lowering it again once we get to that issue.

@brtietz brtietz 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.

I think naming consistency is worth the time here.

Line 426 is where the tolerance needs to be updated, maybe go with 1 for now?

Comment thread shared/lib_battery_dispatch.h Outdated
Comment thread test/ssc_test/cmod_battery_pvsamv1_test.cpp Outdated
@brtietz brtietz self-requested a review September 15, 2023 22:43
…ce test failure is suspected to be related to issue #1026
@brtietz brtietz changed the base branch from hybrids to develop September 18, 2023 15:47

@brtietz brtietz 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.

Thanks for the code cleanup!

@brtietz brtietz merged commit 3124e74 into develop Sep 18, 2023
@janinefreeman janinefreeman deleted the carbonFreeDispatch branch September 18, 2023 19:39
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.

3 participants