Skip to content

Commit afc85f3

Browse files
authored
Change XSGM interface stack position to just before before MC2 (#1288)
1 parent 36f7d0e commit afc85f3

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

armi/physics/fuelCycle/fuelHandlerInterface.py

+2
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ def interactBOC(self, cycle=None):
6565
# if lattice physics is requested, compute it here instead of after fuel management.
6666
# This enables XS to exist for branch searching, etc.
6767
mc2 = self.o.getInterface(function="latticePhysics")
68+
xsgm = self.o.getInterface("xsGroups")
6869
if mc2 and self.cs[CONF_RUN_LATTICE_BEFORE_SHUFFLING]:
6970
runLog.extra(
7071
'Running {0} lattice physics before fuel management due to the "{1}"'
7172
" setting being activated.".format(
7273
mc2, CONF_RUN_LATTICE_BEFORE_SHUFFLING
7374
)
7475
)
76+
xsgm.interactBOC(cycle=cycle)
7577
mc2.interactBOC(cycle=cycle)
7678

7779
if self.enabled() and (

armi/physics/neutronics/crossSectionGroupManager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
from armi.utils.units import TRACE_NUMBER_DENSITY
6969
from armi.physics.neutronics import LatticePhysicsFrequency
7070

71-
ORDER = interfaces.STACK_ORDER.BEFORE + interfaces.STACK_ORDER.FUEL_MANAGEMENT
71+
ORDER = interfaces.STACK_ORDER.BEFORE + interfaces.STACK_ORDER.CROSS_SECTIONS
7272

7373

7474
def describeInterfaces(cs):

armi/physics/neutronics/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def defineSettings():
302302
),
303303
setting.Setting(
304304
CONF_XS_BLOCK_REPRESENTATION,
305-
default="FluxWeightedAverage",
305+
default="Average",
306306
label="Cross Section Block Averaging Method",
307307
description="The type of averaging to perform when creating cross sections for a group of blocks",
308308
options=[

doc/release/0.2.rst

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ What's new in ARMI
1212
#. Added ``Composite.sort()`` to allow the user to recursively sort any piece of the ``Reactor``. (`PR#1280 <https://github.com/terrapower/armi/pull/1280>`_)
1313
# Revert "when using non-uniform mesh, detailed fission/activation products have cross sections generated to avoid blocks without xs data" and move capability to lattice physics (`PR#1280 <https://github.com/terrapower/armi/pull/1298>`_)
1414
#. Add interactCoupled method for snapshotInterface (`PR#1294 <https://github.com/terrapower/armi/pull/1294>`_)
15+
#. Move cross section group manager interface stack position to be just before lattice physics. (`PR#1288 <https://github.com/terrapower/armi/pull/1288>`_)
1516

1617
Bug fixes
1718
---------

0 commit comments

Comments
 (0)