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

Change XSGM interface stack position to just before before MC2 #1288

Merged
merged 10 commits into from
Jun 14, 2023
2 changes: 2 additions & 0 deletions armi/physics/fuelCycle/fuelHandlerInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ def interactBOC(self, cycle=None):
# if lattice physics is requested, compute it here instead of after fuel management.
# This enables XS to exist for branch searching, etc.
mc2 = self.o.getInterface(function="latticePhysics")
xsgm = self.o.getInterface("xsGroups")
john-science marked this conversation as resolved.
Show resolved Hide resolved
if mc2 and self.cs[CONF_RUN_LATTICE_BEFORE_SHUFFLING]:
runLog.extra(
'Running {0} lattice physics before fuel management due to the "{1}"'
" setting being activated.".format(
mc2, CONF_RUN_LATTICE_BEFORE_SHUFFLING
)
)
xsgm.interactBOC(cycle=cycle)
mc2.interactBOC(cycle=cycle)

if self.enabled() and (
Expand Down
2 changes: 1 addition & 1 deletion armi/physics/neutronics/crossSectionGroupManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
from armi.utils.units import TRACE_NUMBER_DENSITY
from armi.physics.neutronics import LatticePhysicsFrequency

ORDER = interfaces.STACK_ORDER.BEFORE + interfaces.STACK_ORDER.FUEL_MANAGEMENT
ORDER = interfaces.STACK_ORDER.BEFORE + interfaces.STACK_ORDER.CROSS_SECTIONS


def describeInterfaces(cs):
Expand Down
2 changes: 1 addition & 1 deletion armi/physics/neutronics/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def defineSettings():
),
setting.Setting(
CONF_XS_BLOCK_REPRESENTATION,
default="FluxWeightedAverage",
default="Average",
label="Cross Section Block Averaging Method",
description="The type of averaging to perform when creating cross sections for a group of blocks",
options=[
Expand Down