armi.reactor.converters.tests.test_uniformMesh module

Tests for the uniform mesh geometry converter.

class armi.reactor.converters.tests.test_uniformMesh.DummyFluxOptions(cs)[source]

Bases: object

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

Bases: 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_makeAssemWithUniformMeshSubmesh()[source]

If sourceAssem has submesh, check that newAssem splits into separate blocks.

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.TestUniformMeshGenerator(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_computeAverageAxialMesh()[source]
test_filterMesh()[source]

Test that the mesh can be correctly filtered.

Test Case: Produce a uniform mesh with a size no smaller than a user-specified value. T_ARMI_UMC_MIN_MESH1
signature: test_filterMesh
requirements: R_ARMI_UMC_MIN_MESH
test_filteredTopAndBottom()[source]
test_generateCommonMesh()[source]

Covers generateCommonmesh() and _decuspAxialMesh().

Test Case: Produce a uniform mesh with a size no smaller than a user-specified value. T_ARMI_UMC_MIN_MESH0
signature: test_generateCommonMesh
requirements: R_ARMI_UMC_MIN_MESH
Test Case: Preserve the boundaries of fuel and control material. T_ARMI_UMC_NON_UNIFORM0
signature: test_generateCommonMesh
class armi.reactor.converters.tests.test_uniformMesh.TestUniformMeshComponents(methodName='runTest')[source]

Bases: 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_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: 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 the reactor mass before and after conversion.

Test Case: Make a copy of the reactor where the new reactor core has a uniform axial mesh. T_ARMI_UMC
signature: test_convertNumberDensities
requirements: R_ARMI_UMC
test_applyStateToOriginal()[source]

Test applyStateToOriginal() to revert mesh conversion.

Test Case: Map select parameters from composites on the new mesh to the original mesh. T_ARMI_UMC_PARAM_BACKWARD0
signature: test_applyStateToOriginal
class armi.reactor.converters.tests.test_uniformMesh.TestCalcReationRates(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_calcReactionRatesBlockList()[source]

Test that the efficient reaction rate code executes and sets a param > 0.0.

Test Case: Return the reaction rates for a given list of ArmiObjects. T_ARMI_FLUX_RX_RATES_BY_XS_ID
signature: test_calcReactionRatesBlockList
requirements: R_ARMI_FLUX_RX_RATES
class armi.reactor.converters.tests.test_uniformMesh.TestGammaUniformMesh(methodName='runTest')[source]

Bases: TestCase

Tests gamma 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]

Test applyStateToOriginal() to revert mesh conversion.

Test Case: Map select parameters from composites on the new mesh to the original mesh. T_ARMI_UMC_PARAM_BACKWARD1
signature: test_applyStateToOriginal
class armi.reactor.converters.tests.test_uniformMesh.TestParamConversion(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_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.

Test Case: Map select parameters from composites on the original mesh to the new mesh. T_ARMI_UMC_PARAM_FORWARD
signature: test_setStateFromOverlaps
class armi.reactor.converters.tests.test_uniformMesh.TestUniformMeshNonUniformAssemFlags(methodName='runTest')[source]

Bases: 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.