armi.reactor.tests.test_assemblies module

Tests assemblies.py.

armi.reactor.tests.test_assemblies.buildTestAssemblies()[source]

Build some assembly objects that will be used in testing.

This builds 2 HexBlocks:
  • One with half UZr pins and half UTh pins

  • One with all UThZr pins

class armi.reactor.tests.test_assemblies.MaterialInAssembly_TestCase(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_sortNoLocator()[source]
test_UThZrMaterial()[source]

Test the ternary UThZr material.

armi.reactor.tests.test_assemblies.makeTestAssembly(numBlocks, assemNum, spatialGrid=<HexGrid -- 140149537153328 Bounds:   None   None   None Steps:   [0.8660254 0.        0.       ]   [0.5 1.  0. ]   [0. 0. 0.] Anchor: None Offset: [0. 0. 0.] Num Locations: 2500>, r=None)[source]
class armi.reactor.tests.test_assemblies.Assembly_TestCase(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_isOnWhichSymmetryLine()[source]
test_notesParameter()[source]
test_iter()[source]
test_len()[source]
test_append()[source]
test_extend()[source]
test_add()[source]
test_moveTo()[source]
test_getName()[source]
test_getNum()[source]
test_getLocation()[source]

Test for getting string location of assembly.

test_getArea()[source]

Tests area calculation for hex assembly.

test_getVolume()[source]

Tests volume calculation for hex assembly.

test_adjustResolution()[source]
test_getAxialMesh()[source]
test_calculateZCoords()[source]
test_getTotalHeight()[source]
test_getHeight()[source]

Test height of assembly calculation.

test_getReactiveHeight()[source]
test_getFissileMass()[source]
test_getMass()[source]
test_getAge()[source]
test_makeAxialSnapList()[source]
test_snapAxialMeshToReference()[source]
test_updateFromAssembly()[source]
test_duplicate()[source]
test_hasFlags()[source]
test_renameBlocksAccordingToAssemblyNum()[source]
test_getBlocks()[source]
test_getFirstBlock()[source]
test_getFirstBlockByType()[source]
test_getBlockData()[source]
test_getMaxParam()[source]
test_getElevationsMatchingParamValue()[source]
test_calcAvgParam()[source]
test_calcTotalParam()[source]
test_reattach()[source]
test_reestablishBlockOrder()[source]
test_countBlocksOfType()[source]
test_getDim()[source]

Tests dimensions are retrievable.

test_getDominantMaterial()[source]
test_iteration()[source]

Tests the ability to doubly-loop over assemblies (under development).

test_getBlocksAndZ()[source]
test_getBlocksBetweenElevations()[source]
test_getParamValuesAtZ()[source]
test_hasContinuousCoolantChannel()[source]
test_carestianCoordinates()[source]

Check the coordinates of the assembly within the core with a CarestianGrid.

test_pinPlenumVolume()[source]

Test the volume of a pin in the assembly’s plenum.

test_averagePlenumTemperature()[source]

Test an assembly’s average plenum temperature with a single block outlet.

test_rotate()[source]

Test rotation of an assembly spatial objects.

test_assem_block_types()[source]

Test that all children of an assembly are blocks, ordered from top to bottom.

test_assem_hex_type()[source]

Test that all children of a hex assembly are hexagons.

test_getBIndexFromZIndex()[source]
test_getElevationBoundariesByBlockType()[source]
class armi.reactor.tests.test_assemblies.AssemblyInReactor_TestCase(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_snapAxialMeshToReferenceConservingMassBasedOnBlockIgniter()[source]
test_snapAxialMeshToReferenceConservingMassBasedOnBlockShield()[source]
class armi.reactor.tests.test_assemblies.AnnularFuelTestCase(methodName='runTest')[source]

Bases: TestCase

Test fuel with a whole in the center.

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