armi.reactor.tests.test_components module¶
Tests functionalities of components within ARMI
- class armi.reactor.tests.test_components.TestComponentFactory(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.
- class armi.reactor.tests.test_components.TestGeneralComponents(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Base test for all individual component tests.
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.
- componentCls¶
- componentMaterial = 'HT9'¶
- componentDims = {'Thot': 25.0, 'Tinput': 25.0}¶
- class armi.reactor.tests.test_components.TestComponent(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestGeneralComponents
Test the base component.
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.
- componentCls¶
- class armi.reactor.tests.test_components.TestNullComponent(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestGeneralComponents
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.
- componentCls¶
- class armi.reactor.tests.test_components.TestUnshapedComponent(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestGeneralComponents
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.
- componentCls¶
- componentMaterial = 'HT9'¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'area': 3.141592653589793}¶
- class armi.reactor.tests.test_components.TestShapedComponent(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestGeneralComponents
Abstract class for all shaped components
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_preserveMassDuringThermalExpansion()[source]¶
Test that when we thermally expand any arbirtray shape, mass is conserved
Test Case: Test that ARMI can thermally expand any arbitrary shape. TEST_REACTOR_THERMAL_EXPANSION_0
- class armi.reactor.tests.test_components.TestDerivedShape(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
alias of
armi.reactor.components.DerivedShape
- componentMaterial = 'Sodium'¶
- componentDims = {'Thot': 400.0, 'Tinput': 25.0, 'area': 1.0}¶
- class armi.reactor.tests.test_components.TestCircle(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 25.0, 'Tinput': 25.0, 'id': 5.0, 'mult': 1.5, 'od': 10}¶
- test_getThermalExpansionFactorConservedMassByLinearExpansionPercent()[source]¶
Test that when ARMI thermally expands a circle, mass is conserved.
Test Case: Test that ARMI correctly thermally expands objects with circular shape. TEST_REACTOR_THERMAL_EXPANSION_1
- test_badComponentName()[source]¶
This shows that resolveLinkedDims cannot support names with periods in them
- test_componentInteractionsLinkingBySubtraction()[source]¶
Tests linking of components by subtraction.
- class armi.reactor.tests.test_components.TestComponentExpansion(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.
- tCold = 20¶
- tWarm = 50¶
- tHot = 500¶
- coldOuterDiameter = 1.0¶
- class armi.reactor.tests.test_components.TestTriangle(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'base': 3.0, 'height': 2.0, 'mult': 30}¶
- class armi.reactor.tests.test_components.TestRectangle(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'lengthInner': 4.0, 'lengthOuter': 6.0, 'mult': 2, 'widthInner': 3.0, 'widthOuter': 5.0}¶
- class armi.reactor.tests.test_components.TestSolidRectangle(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'lengthOuter': 5.0, 'mult': 1, 'widthOuter': 5.0}¶
- class armi.reactor.tests.test_components.TestSquare(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'mult': 1, 'widthInner': 2.0, 'widthOuter': 3.0}¶
- class armi.reactor.tests.test_components.TestCube(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'heightInner': 10.0, 'heightOuter': 20.0, 'lengthInner': 4.0, 'lengthOuter': 5.0, 'mult': 2, 'widthInner': 3.0, 'widthOuter': 5.0}¶
- class armi.reactor.tests.test_components.TestHexagon(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'ip': 5.0, 'mult': 1, 'op': 10.0}¶
- class armi.reactor.tests.test_components.TestHoledHexagon(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'holeOD': 3.6, 'mult': 1.0, 'nHoles': 7, 'op': 16.5}¶
- class armi.reactor.tests.test_components.TestHexHoledCircle(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
alias of
armi.reactor.components.complexShapes.HexHoledCircle
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'holeOP': 3.6, 'mult': 1.0, 'od': 16.5}¶
- class armi.reactor.tests.test_components.TestHoledRectangle(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
Tests HoledRectangle, and provides much support for HoledSquare test.
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.
- componentCls¶
alias of
armi.reactor.components.complexShapes.HoledRectangle
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'holeOD': 3.6, 'lengthOuter': 16.0, 'mult': 1.0, 'widthOuter': 10.0}¶
- dimsToTestExpansion = ['lengthOuter', 'widthOuter', 'holeOD', 'mult']¶
- class armi.reactor.tests.test_components.TestHoledSquare(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestHoledRectangle
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'holeOD': 3.6, 'mult': 1.0, 'widthOuter': 16.0}¶
- dimsToTestExpansion = ['widthOuter', 'holeOD', 'mult']¶
- class armi.reactor.tests.test_components.TestHelix(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'axialPitch': 1.0, 'helixDiameter': 2.0, 'id': 0.1, 'mult': 1.5, 'od': 0.25}¶
- class armi.reactor.tests.test_components.TestSphere(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'id': 0.0, 'mult': 3, 'od': 1.0}¶
- class armi.reactor.tests.test_components.TestTorus(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'inner_minor_radius': 28.73, 'major_radius': 140, 'outer_minor_radius': 30}¶
- class armi.reactor.tests.test_components.TestRadialSegment(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
alias of
armi.reactor.components.volumetricShapes.RadialSegment
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'height': 160, 'inner_radius': 110, 'mult': 1, 'outer_radius': 170}¶
- class armi.reactor.tests.test_components.TestDifferentialRadialSegment(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_components.TestShapedComponent
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.
- componentCls¶
alias of
armi.reactor.components.volumetricShapes.DifferentialRadialSegment
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'height': 160, 'inner_axial': 60, 'inner_radius': 110, 'radius_differential': 60}¶
- class armi.reactor.tests.test_components.TestMaterialAdjustments(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Tests to make sure enrichment and mass fractions can be adjusted properly.
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.