armi.utils.tests.test_densityTools module

Test densityTools.

class armi.utils.tests.test_densityTools.UraniumOxide[source]

Bases: Material

A test material that needs to be stored in a different namespace.

This is a duplicate (by name only) of armi.materials.uraniumOxide.UraniumOxide and is used for testing in armi.materials.tests.test_materials.MaterialFindingTests.test_namespacing()

pseudoDensity(Tk=None, Tc=None)[source]
density(Tk=None, Tc=None)[source]
class armi.utils.tests.test_densityTools.TestDensityTools(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_expandElementalMassFracsToNuclides()[source]

Expand mass fraction to nuclides.

test_expandElementalZeroMassFrac()[source]

As above, but try with a zero mass frac elemental.

test_getChemicals()[source]
test_expandElement()[source]

Ensure isotopic subset feature works in expansion.

test_applyIsotopicsMix()[source]

Ensure isotopc classes get mixed properly.

test_getNDensFromMasses()[source]

Number densities from masses.

test_getMassFractions()[source]

Number densities to mass fraction.

test_calculateNumberDensity()[source]

Mass fraction to number density.

test_getMassInGrams()[source]
test_normalizeNuclideList()[source]

Normalize a nuclide list.

test_formatMaterialCard()[source]

Formatting material information into an MCNP input card.