armi.physics.fuelCycle.tests.test_fuelHandlers module

Tests some capabilities of the fuel handling machine.

This test is high enough level that it requires input files to be present. The ones to use are called armiRun.yaml which is located in armi.tests

class armi.physics.fuelCycle.tests.test_fuelHandlers.FuelHandlerTestHelper(methodName='runTest')[source]

Bases: ArmiTestHelper

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class armi.physics.fuelCycle.tests.test_fuelHandlers.MockLatticePhysicsInterface(r, cs)[source]

Bases: LatticePhysicsInterface

A mock lattice physics interface that does nothing for interactBOC.

name: Optional[str] = 'MockLatticePhysicsInterface'

The name of the interface. This is undefined for the base class, and must be overridden by any concrete class that extends this one.

interactBOC(cycle=None)[source]
class armi.physics.fuelCycle.tests.test_fuelHandlers.MockXSGM(r, cs)[source]

Bases: CrossSectionGroupManager

A mock cross section group manager that does nothing for interactBOC.

interactBOC(cycle=None)[source]
class armi.physics.fuelCycle.tests.test_fuelHandlers.TestFuelHandler(methodName='runTest')[source]

Bases: FuelHandlerTestHelper

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_interactBOC()[source]
test_findHighBu()[source]
test_outage(mockChooseSwaps)[source]
test_isAssemblyInAZone()[source]
test_width()[source]

Tests the width capability of findAssembly.

test_findMany()[source]

Tests the findMany and type aspects of the fuel handler.

test_findInSFP()[source]

Tests ability to pull from the spent fuel pool.

test_findByCoords()[source]
test_findWithMinMax()[source]

Test the complex min/max comparators.

runShuffling(fh)[source]

Shuffle fuel and write out a SHUFFLES.txt file.

test_repeatShuffles()[source]

Loads the ARMI test reactor with a custom shuffle logic file and shuffles assemblies twice.

Notes

The custom shuffle logic is executed by armi.physics.fuelCycle.fuelHandlerInterface.FuelHandlerInterface.manageFuel() in armi.physics.fuelCycle.tests.test_fuelHandlers.TestFuelHandler.runShuffling(). There are two primary assertions: spent fuel pool assemblies are in the correct location and the assemblies were shuffled into their correct locations. This process is repeated twice to ensure repeatability.

test_readMoves()[source]

Depends on the shuffleLogic created by repeatShuffles.

See also

runShuffling

creates the shuffling file to be read in.

test_processMoveList()[source]
test_getFactorList()[source]
test_linPowByPin()[source]
test_linPowByPinNeutron()[source]
test_linPowByPinGamma()[source]
test_transferStationaryBlocks()[source]

Test the _transferStationaryBlocks method.

test_transferDifferentNumberStationaryBlocks()[source]

Test the _transferStationaryBlocks method for the case where the input assemblies have different numbers of stationary blocks.

test_transferUnalignedLocationStationaryBlocks()[source]

Test the _transferStationaryBlocks method for the case where the input assemblies have unaligned locations of stationary blocks.

test_transferIncompatibleHeightStationaryBlocks()[source]

Test the _transferStationaryBlocks method for the case where the total height of the stationary blocks is unequal between input assemblies.

test_dischargeSwap()[source]

Remove an assembly from the core and replace it with one from the SFP.

test_dischargeSwapIncompatibleStationaryBlocks()[source]

Test the _transferStationaryBlocks method for the case where the input assemblies have different numbers as well as unaligned locations of stationary blocks.

test_getAssembliesInRings()[source]
class armi.physics.fuelCycle.tests.test_fuelHandlers.TestFuelPlugin(methodName='runTest')[source]

Bases: TestCase

Tests that make sure the plugin is being discovered well.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_settingsAreDiscovered()[source]
armi.physics.fuelCycle.tests.test_fuelHandlers.addSomeDetailAssemblies(hist, assems)[source]