armi.reactor.converters.tests.test_uniformMesh module
Tests for the uniform mesh geometry converter.
- class armi.reactor.converters.tests.test_uniformMesh.TestConverterFactory(methodName='runTest')[source]
Bases:
TestCaseCreate 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.
- class armi.reactor.converters.tests.test_uniformMesh.TestAssemblyUniformMesh(methodName='runTest')[source]
Bases:
TestCaseTests 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_makeAssemWithUniformMeshSubmesh()[source]
If sourceAssem has submesh, check that newAssem splits into separate blocks.
- class armi.reactor.converters.tests.test_uniformMesh.TestUniformMeshGenerator(methodName='runTest')[source]
Bases:
TestCaseCreate 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_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
- 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
- class armi.reactor.converters.tests.test_uniformMesh.TestUniformMeshComponents(methodName='runTest')[source]
Bases:
TestCaseTests 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.
- 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:
TestCaseTests 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
- 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
- class armi.reactor.converters.tests.test_uniformMesh.TestCalcReationRates(methodName='runTest')[source]
Bases:
TestCaseCreate 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.
- class armi.reactor.converters.tests.test_uniformMesh.TestGammaUniformMesh(methodName='runTest')[source]
Bases:
TestCaseTests 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_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
- class armi.reactor.converters.tests.test_uniformMesh.TestParamConversion(methodName='runTest')[source]
Bases:
TestCaseCreate 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
- class armi.reactor.converters.tests.test_uniformMesh.TestUniformMeshNonUniformAssemFlags(methodName='runTest')[source]
Bases:
TestCaseTests 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.
- class armi.reactor.converters.tests.test_uniformMesh.TestParamMapper(methodName='runTest')[source]
Bases:
TestCaseTest how the ParamMapper maps params.
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.
- mappingTestHelper(expectedRatioVolumeIntegrated)[source]
Test helper to run block comparison when mapping parameters.