armi.physics.neutronics.tests.test_crossSectionManager module

Test the cross section manager.

armi.physics.neutronics.crossSectionGroupManager

class armi.physics.neutronics.tests.test_crossSectionManager.TestBlockCollection(methodName='runTest')[source]

Bases: TestCase

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_add()[source]
test_getBlocksInGroup()[source]
test_is_pickleable()[source]
class armi.physics.neutronics.tests.test_crossSectionManager.TestBlockCollectionMedian(methodName='runTest')[source]

Bases: TestCase

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_createRepresentativeBlock()[source]
class armi.physics.neutronics.tests.test_crossSectionManager.TestBlockCollectionAverage(methodName='runTest')[source]

Bases: TestCase

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_createRepresentativeBlock()[source]
class armi.physics.neutronics.tests.test_crossSectionManager.TestBlockCollectionComponentAverage(methodName='runTest')[source]

Bases: TestCase

tests for ZPPR 1D XS gen cases.

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_ComponentAverageRepBlock()[source]

tests that the XS group manager calculates the expected component atom density and component area correctly. Order of components is also checked since in 1D cases the order of the components matters.

class armi.physics.neutronics.tests.test_crossSectionManager.TestBlockCollectionComponentAverage1DCylinder(methodName='runTest')[source]

Bases: TestCase

tests for 1D cylinder XS gen cases.

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_ComponentAverage1DCylinder()[source]

tests that the XS group manager calculates the expected component atom density and component area correctly. Order of components is also checked since in 1D cases the order of the components matters.

test_checkComponentConsistency()[source]
class armi.physics.neutronics.tests.test_crossSectionManager.TestBlockCollectionFluxWeightedAverage(methodName='runTest')[source]

Bases: TestCase

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_createRepresentativeBlock()[source]
test_invalidWeights()[source]
class armi.physics.neutronics.tests.test_crossSectionManager.Test_CrossSectionGroupManager(methodName='runTest')[source]

Bases: TestCase

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_updateBurnupGroups()[source]
test_setBuGroupBounds()[source]
test_addXsGroupsFromBlocks()[source]
test_calcWeightedBurnup()[source]
test_getNextAvailableXsType()[source]
test_getRepresentativeBlocks()[source]
test_createRepresentativeBlocksUsingExistingBlocks()[source]

Demonstrates that a new representative block can be generated from an existing representative block.

Notes

This tests that the XS ID of the new representative block is correct and that the compositions are identical between the original and the new representative blocks.

test_interactBOL()[source]

Test BOL lattice physics update frequency.

test_interactBOC()[source]

Test BOC lattice physics update frequency.

test_interactEveryNode()[source]

Test everyNode lattice physics update frequency.

test_interactFirstCoupledIteration()[source]

Test firstCoupledIteration lattice physics update frequency.

test_interactAllCoupled()[source]

Test all lattice physics update frequency.

test_copyPregeneratedFiles()[source]

Tests copying pre-generated cross section and flux files using reactor that is built from a case settings file.

class armi.physics.neutronics.tests.test_crossSectionManager.TestXSNumberConverters(methodName='runTest')[source]

Bases: TestCase

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_conversion()[source]
test_conversion_2digit()[source]
armi.physics.neutronics.tests.test_crossSectionManager.makeBlocks(howMany=20)[source]