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

chore: make sure that pressure calculation tolerances are the same at… #532

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

olelod
Copy link
Contributor

@olelod olelod commented Jun 18, 2024

… different places in the code

Have you remembered and considered?

  • I have remembered to update documentation
  • I have remembered to update manual changelog (docs/docs/changelog/next.md)
  • I have remembered to update migration guide (docs/docs/migration_guides/)
  • I have committed with BREAKING: in footer or ! in header, if breaking
  • I have added tests (if not, comment why)
  • I have used conventional commits syntax (if you squash, make sure that conventional commit is used)
  • I have included the Jira issue ID somewhere in the commit body (ECALC-XXXX)

Why is this pull request needed?

Pressure calculation tolerance in the iteration to find the outlet pressure of a compressor stage had a tolerance of 0.01, while other tolerances inside the code were set to 0.001. This led to edge cases where there should be a solution but seemingly the target pressure of a compressor stage was not met (calculated pressure with too large relative difference from the target pressure).

What does this pull request change?

Removing the constant OUTLET_PRESSURE_CONVERGENCE_TOLERANCE and using the constant PRESSURE_CALCULATION_TOLERANCE everywhere.

Results have changed in tests because the calculation is more accurate (adding iterations in the calculation of the outlet pressure of a compressor stage).

Refs.
ECALC-1533

@olelod olelod force-pushed the use-same-pressure-calculation-tolerance-everywhere branch from 91371e6 to 6eb9645 Compare August 22, 2024 10:33
@olelod olelod marked this pull request as ready for review August 22, 2024 10:36
@olelod olelod requested a review from a team as a code owner August 22, 2024 10:36
@TeeeJay
Copy link
Collaborator

TeeeJay commented Aug 26, 2024

@olelod ok to merge - and also to create a patch for 8.20 release as well - to be patched this week

… different places in the code

chore: update snapshots

ECALC-1533
@olelod olelod force-pushed the use-same-pressure-calculation-tolerance-everywhere branch from 6eb9645 to 92b2379 Compare August 26, 2024 10:16
@olelod olelod merged commit 736984d into main Aug 26, 2024
9 checks passed
@olelod olelod deleted the use-same-pressure-calculation-tolerance-everywhere branch August 26, 2024 10:22
frodehk pushed a commit that referenced this pull request Sep 16, 2024
… different places in the code (#532)

chore: update snapshots

ECALC-1533
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants