Skip to content

Ssc 1058 ac loss accounting#1061

Merged
brtietz merged 4 commits into
developfrom
ssc_1058_ac_loss_accounting
Oct 10, 2023
Merged

Ssc 1058 ac loss accounting#1061
brtietz merged 4 commits into
developfrom
ssc_1058_ac_loss_accounting

Conversation

@brtietz

@brtietz brtietz commented Oct 2, 2023

Copy link
Copy Markdown
Collaborator

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 NatLabRockies/SAM#985

Brian Mirletz added 3 commits September 28, 2023 17:14
… 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

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

LGTM

Comment thread shared/lib_battery_powerflow.cpp Outdated
P_fuelcell_to_grid_ac = 0;
}

// Priliminary batt to grid for DC losses

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.

this looks like a conjunction of prilliman and preliminary

Copy link
Copy Markdown
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
@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