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: 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_sortNoLocator()[source]
test_UThZrMaterial()[source]

Test the ternary UThZr material.

armi.reactor.tests.test_assemblies.makeTestAssembly(numBlocks, assemNum, spatialGrid=<HexGrid -- 140715812931904 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: 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_notesParameter()[source]
test_resetAssemNumCounter()[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_getArea()[source]
test_getVolume()[source]
test_doubleResolution()[source]
test_adjustResolution()[source]
test_getAxialMesh()[source]
test_calculateZCoords()[source]
test_getTotalHeight()[source]
test_getHeight()[source]
test_getReactiveHeight()[source]
test_getFissileMass()[source]
test_getPuFrac()[source]
test_getMass()[source]
test_getZrFrac()[source]
test_getMaxUraniumMassEnrich()[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]
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.

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

Bases: unittest.case.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]