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 calculating macroscopic cross sections from microscopic cross sections.

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]

Return the volume of a block.

getNuclideNumberDensities(nucNames)[source]

Return a list of number densities in atoms/barn-cm for the nuc names requested.

paramCollectionType

alias of BlockParameterCollection

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

Set the number density of this nuclide to this value.

getNuclides()[source]

Determine which nuclides are present in this armi block.