Skip to content

Fix ssc 856 xfmr losses#728

Merged
brtietz merged 1 commit into
patchfrom
fix_ssc_856_xfmr_losses
Jan 24, 2022
Merged

Fix ssc 856 xfmr losses#728
brtietz merged 1 commit into
patchfrom
fix_ssc_856_xfmr_losses

Conversation

@brtietz

@brtietz brtietz commented Jan 20, 2022

Copy link
Copy Markdown
Collaborator

Fixes NatLabRockies/SAM#856

The DC connected batteries need an estimate of loss percent for grid outages, but since some of the transformer load losses use *= the calculation was being applied twice. Reset the variables after the DC loss estimation to fix the issue.

Test by specifying a transformer load loss in a default case. An AC connected battery and DC connected battery should have similar transformer loss %s after running.

@brtietz brtietz added the bug label Jan 20, 2022
@brtietz brtietz added this to the 2021.12.02 Patch 1 milestone Jan 20, 2022
@brtietz brtietz changed the base branch from develop to patch January 20, 2022 23:32

@cpaulgilman cpaulgilman 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. Thanks!

@brtietz brtietz merged commit 0c09399 into patch Jan 24, 2022
@brtietz brtietz mentioned this pull request Jan 24, 2022
@brtietz brtietz deleted the fix_ssc_856_xfmr_losses branch February 9, 2022 18:12
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.

Transformer loss incorrectly calculated for DC-connected battery

2 participants