armi.reactor.tests.test_components module
Tests functionalities of components within ARMI.
- class armi.reactor.tests.test_components.TestComponentFactory(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.
- class armi.reactor.tests.test_components.TestGeneralComponents(methodName='runTest')[source]
Bases:
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.
- componentMaterial = 'HT9'
- componentDims = {'Thot': 25.0, 'Tinput': 25.0}
- class armi.reactor.tests.test_components.TestComponent(methodName='runTest')[source]
Bases:
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.
- class armi.reactor.tests.test_components.TestNullComponent(methodName='runTest')[source]
Bases:
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
alias of
NullComponent
- class armi.reactor.tests.test_components.TestUnshapedComponent(methodName='runTest')[source]
Bases:
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
alias of
UnshapedComponent
- componentMaterial = 'HT9'
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'area': 3.141592653589793}
- class armi.reactor.tests.test_components.TestShapedComponent(methodName='runTest')[source]
Bases:
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.
- class armi.reactor.tests.test_components.TestDerivedShape(methodName='runTest')[source]
Bases:
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
DerivedShape
- componentMaterial = 'Sodium'
- componentDims = {'Thot': 400.0, 'Tinput': 25.0, 'area': 1.0}
- class armi.reactor.tests.test_components.TestCircle(methodName='runTest')[source]
Bases:
TestShapedComponent
Test circle shaped 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.
- 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_componentInteractionsLinkingByDimensions()[source]
Tests linking of Components by dimensions.
The component
gap
, representing the fuel-clad gap filled with Void, is defined with dimensions that depend on the fuel outer diameter and clad inner diameter. TheresolveLinkedDims()
method links the gap dimensions appropriately when the Component is constructed, and the test shows the area of the gap is calculated correctly based on the thermally-expanded dimensions of the fuel and clad Components.
- test_badComponentName()[source]
This shows that resolveLinkedDims cannot support names with periods in them.
- test_componentInteractionsLinkingBySubtraction()[source]
Tests linking of components by subtraction.
- test_getNumberDensities()[source]
Test that demonstrates that number densities can be retrieved on from component.
- class armi.reactor.tests.test_components.TestComponentExpansion(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.
- tCold = 20
- tWarm = 50
- tHot = 500
- coldOuterDiameter = 1.0
- class armi.reactor.tests.test_components.TestTriangle(methodName='runTest')[source]
Bases:
TestShapedComponent
Test triangle shaped 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.
- 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:
TestShapedComponent
Test rectangle shaped 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.
- 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:
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
SolidRectangle
- 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:
TestShapedComponent
Test square shaped 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.
- 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:
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.
- 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:
TestShapedComponent
Test hexagon shaped 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.
- 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:
TestShapedComponent
Test holed hexagon shaped 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
alias of
HoledHexagon
- 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:
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
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:
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
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:
TestHoledRectangle
Test holed square shaped 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
alias of
HoledSquare
- 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:
TestShapedComponent
Test helix shaped 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.
- 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:
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.
- componentDims = {'Thot': 430.0, 'Tinput': 25.0, 'id': 0.0, 'mult': 3, 'od': 1.0}
- class armi.reactor.tests.test_components.TestRadialSegment(methodName='runTest')[source]
Bases:
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
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:
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
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:
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.