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_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]

Builds a dummy core. Does some shuffles. Repeats the shuffles. Checks that it was a perfect repeat.

Checks some other things in the meantime

See also

runShuffling

creates the shuffling file to be read in.

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]

Test the dischargeSwap method.

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.

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]