Possible inconsistency in test_applyThermalExpansion_CoreConstruct #1154
Replies: 3 comments 8 replies
-
Okay this might be related to a misunderstanding in the Lines 803 to 805 in 3b199b6 So these thermal expansion routines conserve density when thermally expanded? That at least is my takeaway looking at this test armi/armi/reactor/tests/test_reactors.py Lines 886 to 925 in 3b199b6 |
Beta Was this translation helpful? Give feedback.
-
@jakehader @onufer @john-science could you provide some helpful context and history on these changes? Axial expansion under |
Beta Was this translation helpful? Give feedback.
-
I'm a bit less familiar with radial expansion as it predates me joining TerraPower, but will comment on it (@onufer / @jakehader feel free to correct me if I'm wrong). Radial expansion doesn't actually do physical expansion/modification to the ARMI model (unlike axial expansion). The radial "expansion" occurs whenever you query the dimensions of the component. armi/armi/reactor/components/component.py Lines 813 to 834 in d53c17d The delta between the temperature, Tc (which is typically c.temperatureInC ), then generates a thermal expansion factor that modifies the returned dimension - which in turn affects the value that gets returned if you query quantities that depend on dimension.
This unit test was added semi-recently to serve as a bit of a walkthrough for how mass and density are related during expansion. I would consider walking through that test to get a feel for how things are handled. armi/armi/reactor/tests/test_components.py Line 553 in 49f357b But yes, you're right in that during radial expansion mass is conserved, but density is not. When considering axial expansion conservation, it is definitely a bit confusing. Maybe/hopefully we can clean it up in the future. |
Beta Was this translation helpful? Give feedback.
-
While working on updating our internal ARMI fork, I stumbled on this test. In particular these confusing lines
armi/armi/reactor/tests/test_reactors.py
Lines 898 to 899 in 3b199b6
The test is ensuring that some parameters, like height, are changed when thermal expansion is applied. Understandably, enrichment and number of heavy metal atoms at BOL shouldn't change just because height or other dimensions change. But how then can moles and mass of heavy metal be allowed to change if the number of atoms does not change?
Beta Was this translation helpful? Give feedback.
All reactions