armi.reactor.converters.tests.test_uniformMesh module

Tests for the uniform mesh geometry converter

class armi.reactor.converters.tests.test_uniformMesh.TestAssemblyUniformMesh(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests individual operations of the uniform mesh converter

Uses the test reactor for detailedAxialExpansion

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

Tests creating a uniform mesh assembly while mapping both number densities and specified parameters.

test_clearAssemblyState()[source]

Tests clearing the parameter state of an assembly and returning the cached parameters.

class armi.reactor.converters.tests.test_uniformMesh.TestUniformMeshComponents(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests individual operations of the uniform mesh converter

Only loads reactor once per suite.

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

Ensure that necessary blueprint attributes are set

armi.reactor.converters.tests.test_uniformMesh.applyNonUniformHeightDistribution(reactor)[source]

Modifies some assemblies to have non-uniform axial meshes

class armi.reactor.converters.tests.test_uniformMesh.TestUniformMesh(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests full uniform mesh converter

Loads reactor once per test

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_convertNumberDensities()[source]
test_applyStateToOriginal()[source]
class armi.reactor.converters.tests.test_uniformMesh.TestParamConversion(methodName='runTest')[source]

Bases: unittest.case.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_setStateFromOverlaps()[source]

Test that state is translated correctly from source to dest assems.

Here we set flux and pdens to 3 on the source blocks.

class armi.reactor.converters.tests.test_uniformMesh.TestUniformMeshNonUniformAssemFlags(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests a reactor conversion with only a subset of assemblies being defined as having a non-uniform mesh.

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

Tests the reactor conversion to and from the original reactor.