Skip to content

Commit

Permalink
fix _getParamMax symmetry to account for assembly params
Browse files Browse the repository at this point in the history
  • Loading branch information
bsculac committed Dec 11, 2024
1 parent 9945e29 commit b80e9ac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions armi/physics/fuelCycle/fuelHandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,20 @@ def _getParamMax(a, paramName, blockLevelMax=True):
multiplier = a.getSymmetryFactor()
if multiplier != 1:
# handle special case: volume-integrated parameters where symmetry factor is not 1
if blockLevelMax:
paramCollection = a.getBlocks()[0].p
else:
paramCollection = a.p
isVolumeIntegrated = (
a.getBlocks()[0].p.paramDefs[paramName].location
paramCollection.paramDefs[paramName].location
== ParamLocation.VOLUME_INTEGRATED
)
multiplier = a.getSymmetryFactor() if isVolumeIntegrated else 1.0

if blockLevelMax:
return a.getChildParamValues(paramName).max() * multiplier

return a.p[paramName] * multiplier
else:
return a.p[paramName] * multiplier

def findAssembly(
self,
Expand Down

0 comments on commit b80e9ac

Please sign in to comment.