armi.reactor.tests.test_grids module¶
Tests for grids
- class armi.reactor.tests.test_grids.MockLocator(i, j, k, grid)[source]¶
Bases:
armi.reactor.grids.IndexLocationLocator subclass that with direct location -> location paternity (to avoid needing blocks, assems).
- property parentLocation¶
- class armi.reactor.tests.test_grids.MockCoordLocator(i, j, k, grid)[source]¶
Bases:
armi.reactor.grids.CoordinateLocation- property parentLocation¶
- class armi.reactor.tests.test_grids.MockArmiObject(parent=None)[source]¶
Bases:
objectAny sort of object that can serve as a grid’s armiObject attribute.
- class armi.reactor.tests.test_grids.TestSpatialLocator(methodName='runTest')[source]¶
Bases:
unittest.case.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.tests.test_grids.TestGrid(methodName='runTest')[source]¶
Bases:
unittest.case.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_basicPosition()[source]¶
Ensure a basic Cartesian grid works as expected.
The default stepped grid defines zero at the center of the (0,0,0)th cell. Its centroid is 0., 0., 0). This convention is nicely compatible with 120-degree hex grid.
Full core Cartesian meshes will want to be shifted to bottom left of 0th cell.
- class armi.reactor.tests.test_grids.TestHexGrid(methodName='runTest')[source]¶
Bases:
unittest.case.TestCaseA set of tests for the Hexagonal Grid
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.tests.test_grids.TestBoundsDefinedGrid(methodName='runTest')[source]¶
Bases:
unittest.case.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.tests.test_grids.TestThetaRZGrid(methodName='runTest')[source]¶
Bases:
unittest.case.TestCaseA set of tests for the RZTheta Grid
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.tests.test_grids.TestCartesianGrid(methodName='runTest')[source]¶
Bases:
unittest.case.TestCaseA set of tests for the Cartesian Grid
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.