armi.testing.singleBlocks module
Importable testing utilities for block-related machinery.
This is a very limited set of ARMI block testing tools, meant to be importable as part of the ARMI API. The goal is to provide a small set of high quality block-related tools to help downstream ARMI developers write tests.
Notes
This will not be a catch-all for random unit test functions. Be very sparing here.
- armi.testing.singleBlocks.buildSimpleFuelHexBlockNegativeArea()[source]
Return a simple block containing fuel, clad, duct, and coolant.
The block has a negative-area gap between fuel and cladding for testing.
- armi.testing.singleBlocks.buildLinkedFuelHexBlockNegativeArea()[source]
Return a simple block containing fuel, clad, duct, and coolant.
The block has a negative-area bond between fuel and cladding for testing.
- armi.testing.singleBlocks.buildSimpleFuelHexBlock()[source]
Return a simple hex block containing fuel, clad, duct, and coolant.
- armi.testing.singleBlocks.buildLinkedFuelHexBlock()[source]
Return a simple hex block containing containing fuel, clad, duct, linked bond, and coolant.
- armi.testing.singleBlocks.buildComplexHexBlock(cold=True, depletable=False) HexBlock[source]
Build an annular hex block representing a more realistic SFR fuel pin structure, including an anulus and voids/gaps between fuel, liner, and cladding. Use for evaluating unit tests.
- Parameters:
cold (bool) – Whether or not the block is cold.
depeletable (bool) – Whether or not the block is depletable.
- Returns:
block – Annular hex block.
- Return type:
armi.reactor.blocks.HexBlock