armi.nuclearDataIO.tests.test_xsCollections module

Module that tests methods within xsCollections.

class armi.nuclearDataIO.tests.test_xsCollections.TestXsCollections(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_generateTotalScatteringMatrix()[source]

Generates the total scattering matrix by summing elastic, inelastic, and n2n scattering matrices.

test_generateTotalScatteringMatrixWithMissingData()[source]

Generates the total scattering matrix by summing elastic and n2n scattering matrices.

Notes

This tests that the total scattering matrix can be produced when the inelastic scattering matrix is not defined.

test_plotNucXs()[source]

Testing this plotting method here because we need a XS library to run the test.

test_createMacrosFromMicros()[source]
test_collapseCrossSection()[source]

Tests cross section collapsing.

Notes

The expected 1 group cross section was generated by running the collapse cross section method. This tests that this method has not been modified to produce a different result.

class armi.nuclearDataIO.tests.test_xsCollections.MockReactor[source]

Bases: object

class armi.nuclearDataIO.tests.test_xsCollections.MockBlueprints[source]

Bases: object

class armi.nuclearDataIO.tests.test_xsCollections.MockBlock(name=None, cs=None)[source]

Bases: HexBlock

property r
getVolume(*args, **kwargs)[source]
getNuclideNumberDensities(nucNames)[source]
paramCollectionType

alias of BlockParameterCollection

setNumberDensity(key, val, *args, **kwargs)[source]
getNuclides()[source]