Skip to content

Sam 1806 make tolerances more consistent#1182

Merged
brtietz merged 3 commits into
patchfrom
sam_1806_make_tolerances_more_consistent
Jul 18, 2024
Merged

Sam 1806 make tolerances more consistent#1182
brtietz merged 3 commits into
patchfrom
sam_1806_make_tolerances_more_consistent

Conversation

@brtietz

@brtietz brtietz commented Jul 16, 2024

Copy link
Copy Markdown
Collaborator

Consistently use the powerflow tolerance throughout the battery issue to mitigate issues caused by inconsistent tolerances. Results of the parametric run after changes:

image

See NatLabRockies/SAM#1806 for test file. See #1132 for history on powerflow tolerance.

Test changes for grid outage and resilience code were required to accommodate tighter tolerances. Reported resilience metrics have decreased due to changing tolerance from 2 W to 0.005 W.

Brian Mirletz added 3 commits July 12, 2024 12:54
@brtietz brtietz added this to the 2023 Release Patch 2 milestone Jul 16, 2024
@brtietz brtietz requested review from dguittet and sjanzou July 16, 2024 17:42
@brtietz brtietz self-assigned this Jul 16, 2024

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

Wow! That is a huge difference from the current release (patch 1) on the right.
image

Just double checking that the annual AC energy is unchanged
image

double low_tolerance = 0.01;
double tolerance = 0.002;
double tolerance = 0.002; // Used for capacity calcs. Please use powerflow_tolerance for units of kW

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, very helpful!

@brtietz brtietz merged commit 2a5f9ed into patch Jul 18, 2024
@cpaulgilman

Copy link
Copy Markdown
Collaborator

@brtietz Does this fix NatLabRockies/SAM#1806?

@brtietz

brtietz commented Jul 24, 2024 via email

Copy link
Copy Markdown
Collaborator Author

@brtietz brtietz deleted the sam_1806_make_tolerances_more_consistent branch December 13, 2024 19:21
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