Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
b.p.heightBOL
in Core::processLoading
for thermal expansio…
…n at BOL (#823) * add update BOL heights when therm exp to Thot * add test (WIP) - needs assertion(s) and completion... * expand blueprints assems at BOL - needs testing + code cleanup/optimization * correcting block BOL height update - was incorrect before to use `self.getAssemblies()`. To support both dbload: True/False, should pass in the specific list of assemblies that were expanded. - also making it a protected method. * reorg axialExpChngr for dbload Summary: 1. updateBlockBOLHeights doesn't need core mesh params updated on dbload 2. manageCoreMesh should not be called for dbload. - setBlockMesh for assems will get set when assemblies are created from the blueprints in Core::createAsssemblyOfType * code clean up/reorg, fix dbLoad case - manageCoreMesh should not be called during a dbLoad. rather, the blueprints assems are expanded, block BOL heights updated, and then have their block mesh set to the refAssem.getAxialMesh() on the existing r.core. - The last part may not be needed, as setBlockMesh is called with createAssemblyOfType, but it's cheap to add and won't hurt anything. * code cleanup + address comments Comments addressed: - https://github.com/terrapower/armi/pull/823/files#r939442958 - https://github.com/terrapower/armi/pull/823/files#r941630224 - https://github.com/terrapower/armi/pull/823/files#r939445205 - https://github.com/terrapower/armi/pull/823/files#r939443611 * fix order for updateBlocKBOLHeights with dbload - if doing a dbLoad and detailedAxialExpansion: False, then setBlockMesh needs to be called after the BOL block heights are updated - addresses comment #823 (comment) * creating test for Core::_updateBlockBOLHeights * Update release notes. * remove detAxExp from arg list, simplify logic Addresses the following comments from review: - https://github.com/terrapower/armi/pull/823/files#r942921304 - https://github.com/terrapower/armi/pull/823/files#r942926277 * initially set blueprints assems to hot height Addresses comment here - #823 (comment) - Blueprints assems should be at hot height only. When created and placed into the core then they'll be set to the current core height (possibly thermal + irradiation expansion). * simplify setting core axial mesh params - Instead of doing twice (once at the onset and another if the block heights are updated), just do once at the end. This is simpler, cleaner, and easier to maintain. - a ramification is that the runLog.extra statement in manageCoreMesh will not be printed during Core construction - Addresses this comment #823 (comment) * code cleanup and method rename for processLoading - Also updating test_updateBlockBOLHeights to improve code coverage - Fixing Tinput for fuel component in block_fuel3 in armi/tests test reactor. * bug fix in _applyThermalExpansion for dbLoad and reformat unit test to catch bug. And is simpler than before. - The bug: by passing in the finestAssemblyMesh.getAxialMesh() before the expansion happened, we were snapping the expanded meshes back to the non-expanded mesh and in turn, undoing the expansion... This isn't what we want. So this commit fixes that. * revert blueprints back to original state
- Loading branch information