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

Check the averageByComponent attribute.

test_checkBlockSimilarity()[source]

Check the block similarity test.

test_createRepresentativeBlock()[source]

Test creation of a representative block.

test_createRepresentativeBlockDissimilar()[source]

Test creation of a representative block from a collection with dissimilar blocks.

class armi.physics.neutronics.tests.test_crossSectionManager.TestComponentAveraging(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_getAverageComponentNumberDensities()[source]

Test component number density averaging.

test_getAverageComponentTemperature()[source]

Test mass-weighted component temperature averaging.

test_getAverageComponentTemperatureVariedWeights()[source]

Test mass-weighted component temperature averaging with variable weights.

test_getAverageComponentTemperatureNoMass()[source]

Test component temperature averaging when the components have no mass.

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 cross-section 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.TestCrossSectionGroupManager(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 that we can create the representative blocks for a reactor.

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

Test that the XSGM is run before the cross sections are calculated.

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]