Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ssc 1058 ac loss accounting #1061

Merged
merged 4 commits into from
Oct 10, 2023
Merged

Ssc 1058 ac loss accounting #1061

merged 4 commits into from
Oct 10, 2023

Conversation

brtietz
Copy link
Collaborator

@brtietz brtietz commented Oct 2, 2023

Improve loss accounting for AC connected batteries. Powerflow code is now more aware of losses when calculating batt_to_load and can increase power to meet the load. Under the previous implementation x% of the power to each location was lost across the board, rather than accounting for the dynamics of whether the load or grid is served first.

Closes #1058. Test file and expected behavior is available in that issue. DC batteries were unaffected and pass the same new unit tests without changes.

This still treats the loss as a giant resistor in the AC system, which may not be what we want. Changing the definition of the battery availability losses will be handled in the future as a part of NREL/SAM#985

… unsatisfactory unmet critical load. Requires philosophical discussion before proceeding - might make sense to feed back to dispatch current instead.
@brtietz brtietz added this to the SAM Fall 2023 Release milestone Oct 2, 2023
@brtietz brtietz requested a review from dguittet October 2, 2023 21:25
@brtietz brtietz self-assigned this Oct 2, 2023
Copy link
Collaborator

@dguittet dguittet left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -483,11 +489,8 @@ void BatteryPowerFlow::calculateACConnected()
P_fuelcell_to_grid_ac = 0;
}

// Priliminary batt to grid for DC losses
Copy link
Collaborator

Choose a reason for hiding this comment

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

this looks like a conjunction of prilliman and preliminary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, fixed.

@brtietz brtietz merged commit 55840e7 into develop Oct 10, 2023
4 checks passed
@brtietz brtietz deleted the ssc_1058_ac_loss_accounting branch October 10, 2023 16:06
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 can discharge more than critical load during grid outage dispatch with AC losses
3 participants