Skip to content

Ssc 1256 better hybrid batteries#1258

Merged
brtietz merged 7 commits into
developfrom
ssc_1256_better_hybrid_batteries
Dec 9, 2024
Merged

Ssc 1256 better hybrid batteries#1258
brtietz merged 7 commits into
developfrom
ssc_1256_better_hybrid_batteries

Conversation

@brtietz

@brtietz brtietz commented Dec 6, 2024

Copy link
Copy Markdown
Collaborator

Fixes #1256

Pairs with NatLabRockies/SAM#1958

Overwrites "gen" in the hybrids compute module with the battery's gen, since the battery gen is an inout and include the total powerflow from all components.

Calculates annual and monthly energy values after the battery runs to capture them in the values.

Updates the test to compare these energy metrics and make sure everything is included in the annual outputs.

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

'Electricity net generation' now does not equal the generator annual energy values, due to efficiency losses of energy flowing through the battery. That's fine I think, then O&M production-based expense scales with net generation. Is that right?

image

gen matches what is coming out of battery compute module now.

image

@brtietz

brtietz commented Dec 6, 2024

Copy link
Copy Markdown
Collaborator Author

That's fine I think, then O&M production-based expense scales with net generation. Is that right?

Hybrid VOM is based on energy to grid, not net generation. I've set up a few test cases where the net generation is negative, do these make sense to you?
hybrid_vom_tests.zip

@mjprilliman

Copy link
Copy Markdown
Collaborator

That's fine I think, then O&M production-based expense scales with net generation. Is that right?

Hybrid VOM is based on energy to grid, not net generation. I've set up a few test cases where the net generation is negative, do these make sense to you? hybrid_vom_tests.zip

Yes that looks right.

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

Approving, but would prefer if @sjanzou can take a look as well before merging.

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

Looks good and the results make more sense not - we may have to revisit the variable o and m value for the system in the future along with subcomponent incentives.

EXPECT_NEAR(windannualenergy, 366975552., 1e6);
EXPECT_NEAR(fuelcellannualenergy, 1561993, 1e6);
EXPECT_NEAR(battannualenergy, 1331720000., 1e6);
EXPECT_NEAR(battchargeenergy[1], 55372248, 55372248 * 0.001);

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.

Looks good and thanks for adding the additional outputs in the test!

@sjanzou sjanzou mentioned this pull request Dec 8, 2024
@brtietz brtietz merged commit bfca1ea into develop Dec 9, 2024
@brtietz brtietz deleted the ssc_1256_better_hybrid_batteries branch December 13, 2024 19:20
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.

Battery charge and discharge doesn't get added to gen in hybrids compute modules

4 participants