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

Slight cleanup on axial expansion changer #1032

Merged
merged 4 commits into from
Dec 29, 2022

Conversation

albeanth
Copy link
Member

@albeanth albeanth commented Dec 16, 2022

Description

Cleaning out unnecessary and confusing functionality.

  • Removing the optional parameter thermal: bool = False from axiallyExpandAssembly. It is no longer needed and is not used in thermal expansion applications. To avoid confusion on its use, it is removed here.
  • With this change, axial expansion is always done relative to the current block height. This will improve consistency and should improve clarity and use.

Also resolving several pylint messages.

Existing unit tests did not need updating to reflect this change/cleanup.

Still working out downstream effects and affected projects.


Checklist

  • This PR has only one purpose or idea.
  • Tests have been added/updated to verify that the new/changed code works.
  • The release notes (location doc/release/0.X.rst) are up-to-date with any bug fixes or new features.
  • The documentation is still up-to-date in the doc folder.
  • The dependencies are still up-to-date in setup.py.

- still working out downstream effects
@albeanth
Copy link
Member Author

albeanth commented Dec 19, 2022

Coverage drop seems to be coverage spray. Both files changed in this PR did not have any change in coverage.

@john-science

@albeanth albeanth marked this pull request as ready for review December 19, 2022 17:49
@jakehader
Copy link
Member

@albeanth, let's chat offline but id like to know the enabler for being able to get rid of needing to reference the BOL height for thermal expansion. It makes sense to me, but maybe it's not super clear in the description of the PR why this is

Copy link
Contributor

@mgjarrett mgjarrett left a comment

Choose a reason for hiding this comment

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

Looks great, I love getting rid of expansionData.componentReferenceHeight

Copy link
Member

@john-science john-science left a comment

Choose a reason for hiding this comment

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

AH a cleanup PR.

I'd love to see more short, sweet, cleanup PRs like this, with only one goal.

@john-science john-science merged commit e6402ce into terrapower:main Dec 29, 2022
The "thermal" parameter plays a role as thermal expansion is relative to the
BOL heights where non-thermal is relative to the most recent height.
"""
def axiallyExpandAssembly(self):
Copy link
Member

Choose a reason for hiding this comment

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

this could use a more detailed doc string... its rather sparse now. How would i get it to do cold height -> hot height expansion vs a simple updated temperature? Referencing methods to be called before it would help @albeanth

Copy link
Member

Choose a reason for hiding this comment

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

reading the commit message, perhaps it should be renamed to

axiallyExpandAssemblyHotDims or something like that if thats more of what it does now.

Copy link
Member

Choose a reason for hiding this comment

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

@albeanth Whoops, perhaps I merged too soon.

@albeanth albeanth deleted the axialExpCleanup branch July 31, 2023 14:28
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.

5 participants