armi.reactor.converters.tests.test_assemblyAxialLinkage module

armi.reactor.converters.tests.test_assemblyAxialLinkage.createMultipinBlueprints(blockDef: list[str], assemDef: list[str], gridDef: list[str]) str[source]
class armi.reactor.converters.tests.test_assemblyAxialLinkage.TestAxialLinkHelper(methodName='runTest')[source]

Bases: TestCase

Tests for the AxialLink dataclass / namedtuple like class.

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

Test lower attribute can be set after construction.

test_construct()[source]

Test lower attributes can be set at construction.

class armi.reactor.converters.tests.test_assemblyAxialLinkage.TestAreAxiallyLinked(methodName='runTest')[source]

Bases: AxialExpansionTestBase

Provide test coverage for the different cases in assemblyAxialLinkage.areAxiallyLinked.

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

Case 4; component type mismatch.

test_unshapedComponents()[source]

Case 1; unshaped components.

test_componentMult()[source]

Case 3; multiplicity based linking.

test_multiIndexLocation()[source]

Case 2; block-grid based linking.

test_multiIndexLocation_Fail()[source]

Case 2; block-grid based linking.

class armi.reactor.converters.tests.test_assemblyAxialLinkage.TestCheckOverlap(methodName='runTest')[source]

Bases: AxialExpansionTestBase

Test axial linkage between components via the AssemblyAxialLinkage._checkOverlap.

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.

runTest(componentsToTest: dict[Type[Component], dict[str, float]], assertion: Callable)[source]

Runs various linkage tests.

Parameters:
  • componentsToTest – dictionary keys indicate the component type for typeA and typeB checks. the values indicate the neccessary geometry specifications of the typeA and typeB components.

  • assertion – unittest.TestCase assertion

Notes

  • components “typeA” and “typeB” are assumed to be candidates for axial linking

  • two assertions: 1) comparing “typeB” component to “typeA”; 2) comparing “typeA” component to “typeB”

  • the different assertions are particularly useful for comparing two annuli

test_overlappingSolidPins()[source]
test_solidPinNotOverlappingAnnulus()[source]
test_solidPinOverlappingWithAnnulus()[source]
test_annularPinNotOverlappingWithAnnulus()[source]
test_annularPinOverlappingWithAnnuls()[source]
test_thinAnnularPinOverlappingWithThickAnnulus()[source]
test_AnnularHexOverlappingThickAnnularHex()[source]
class armi.reactor.converters.tests.test_assemblyAxialLinkage.TestMultipleComponentLinkage(methodName='runTest')[source]

Bases: AxialExpansionTestBase

Ensure that multiple component axial linkage can be caught.

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

Test for multiple component axial linkage.

Bases: TestCase

Test the ability to link blocks in an assembly.

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

Test an edge case where a single block exists.

test_multiBlock()[source]

Test links with multiple blocks.

test_emptyBlocks()[source]

Test even smaller edge case when no blocks are passed.

test_onAssembly()[source]

Test assembly behavior is the same as sequence of blocks.