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]
test_getBlockNuclideTemperature()[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 Case: Create representative blocks using a volume-weighted averaging. T_ARMI_XSGM_CREATE_REPR_BLOCKS0
signature: test_createRepresentativeBlock
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 Case: Create representative blocks using custom cylindrical averaging. T_ARMI_XSGM_CREATE_REPR_BLOCKS1
signature: test_ComponentAverage1DCylinder
test_ComponentAverageDuctHet1DCylinder()[source]

Tests that the cross-section group manager calculates the expected component atom density, component area, and average nuclide temperature correctly for a duct heterogeneous cylindrical block collection.

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_enableEnvGroupUpdates()[source]
test_disableEnvGroupUpdates()[source]
test_updateBurnupGroups()[source]
test_setBuGroupBounds()[source]
test_setTempGroupBounds()[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 Case: Build representative blocks for a reactor. T_ARMI_XSGM_CREATE_XS_GROUPS
signature: test_getRepresentativeBlocks
test_createRepBlocksUsingExistingBlocks()[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_createRepBlocksFromDisableValidBlockTypes()[source]

Demonstrates that a new representative block can be generated from an existing representative block with the setting disableBlockTypeExclusionInXsGeneration: true.

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 Case: The cross-section group manager frequency depends on the LPI frequency at BOL. T_ARMI_XSGM_FREQ0
signature: test_interactBOL
requirements: R_ARMI_XSGM_FREQ
test_interactBOC()[source]

Test BOC lattice physics update frequency.

Test Case: The cross-section group manager frequency depends on the LPI frequency at BOC. T_ARMI_XSGM_FREQ1
signature: test_interactBOC
requirements: R_ARMI_XSGM_FREQ
test_interactEveryNode()[source]

Test everyNode lattice physics update frequency.

Test Case: The cross-section group manager frequency depends on the LPI frequency at every time node. T_ARMI_XSGM_FREQ2
signature: test_interactEveryNode
requirements: R_ARMI_XSGM_FREQ
test_interactFirstCoupledIteration()[source]

Test firstCoupledIteration lattice physics update frequency.

Test Case: The cross-section group manager frequency depends on the LPI frequency during first coupled iteration. T_ARMI_XSGM_FREQ3
signature: test_interactFirstCoupledIteration
requirements: R_ARMI_XSGM_FREQ
test_interactAllCoupled()[source]

Test all lattice physics update frequency.

Test Case: The cross-section group manager frequency depends on the LPI frequency during coupling. T_ARMI_XSGM_FREQ4
signature: test_interactAllCoupled
requirements: R_ARMI_XSGM_FREQ
test_xsgmIsRunBeforeXS()[source]

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

Test Case: Test that the cross-section group manager is run before the cross sections are calculated. T_ARMI_XSGM_FREQ5
signature: test_xsgmIsRunBeforeXS
requirements: R_ARMI_XSGM_FREQ
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.TestCrossSectionGroupManagerWithTempGrouping(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_updateEnvironmentGroups()[source]
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]