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: unittest.case.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: unittest.case.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: unittest.case.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: unittest.case.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.TestBlockCollectionFluxWeightedAverage(methodName='runTest')[source]

Bases: unittest.case.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: unittest.case.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_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_interactCoupled()[source]
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: unittest.case.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]
class armi.physics.neutronics.tests.test_crossSectionManager.MockReactor[source]

Bases: object

class armi.physics.neutronics.tests.test_crossSectionManager.MockBlueprints[source]

Bases: object

class armi.physics.neutronics.tests.test_crossSectionManager.MockBlock(name=None, cs=None)[source]

Bases: armi.reactor.blocks.HexBlock

property r
getVolume(*args, **kwargs)[source]
getNuclideNumberDensities(nucNames)[source]
setNumberDensity(key, val, *args, **kwargs)[source]
getNuclides()[source]
paramCollectionType

alias of armi.reactor.parameters.parameterCollections.BlockParameterCollection

armi.physics.neutronics.tests.test_crossSectionManager.makeBlocks(howMany=20)[source]