armi.reactor.components.basicShapes module
Components represented by basic shapes.
Many reactor components can be described in 2D by circles, hexagons, rectangles, etc. These are defined in this subpackage.
- class armi.reactor.components.basicShapes.Circle(name, material, Tinput, Thot, od, id=0.0, mult=1.0, modArea=None, isotopics=None, mergeWith=None, components=None)[source]
Bases:
ShapedComponentA Circle.
This class provides the implementation of a Circle Component. This includes setting key parameters such as its material, temperature, and dimensions. It also includes a method to retrieve the area of a Circle Component via the
getComponentAreamethod.- is3D = False
- THERMAL_EXPANSION_DIMS = {'id', 'od'}
- pDefs = <armi.reactor.parameters.parameterDefinitions.ParameterDefinitionCollection object>
- isEncapsulatedBy(other)[source]
Return True if this ring lies completely inside the argument component.
- DIMENSION_NAMES = ('od', 'id', 'mult', 'modArea')
- INIT_SIGNATURE = ('name', 'material', 'Tinput', 'Thot', 'od', 'id', 'mult', 'modArea', 'isotopics', 'mergeWith', 'components')
- paramCollectionType
alias of
CircleParameterCollection
- class armi.reactor.components.basicShapes.Hexagon(name, material, Tinput, Thot, op, ip=0.0, mult=1.0, modArea=None, isotopics=None, mergeWith=None, components=None)[source]
Bases:
ShapedComponentA Hexagon.
This hexagonal shape has a hexagonal hole cut out of the center of it. By default, that inner hole has a diameter of zero, making this a solid object with no hole.
This class provides the implementation of a hexagonal Component. This includes setting key parameters such as its material, temperature, and dimensions. It also includes methods for retrieving geometric dimension information unique to hexagons such as the
getPitchDatamethod.- is3D = False
- pDefs = <armi.reactor.parameters.parameterDefinitions.ParameterDefinitionCollection object>
- THERMAL_EXPANSION_DIMS = {'ip', 'op'}
- getPitchData()[source]
Return the pitch data that should be used to determine block pitch.
Notes
This pitch data should only be used if this is the pitch defining component in a block. The block is responsible for determining which component in it is the pitch defining component.
- DIMENSION_NAMES = ('op', 'ip', 'mult', 'modArea')
- INIT_SIGNATURE = ('name', 'material', 'Tinput', 'Thot', 'op', 'ip', 'mult', 'modArea', 'isotopics', 'mergeWith', 'components')
- paramCollectionType
alias of
HexagonParameterCollection
- class armi.reactor.components.basicShapes.Rectangle(name, material, Tinput, Thot, lengthOuter=None, lengthInner=0.0, widthOuter=None, widthInner=0.0, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None)[source]
Bases:
ShapedComponentA Rectangle.
This class provides the implementation for a rectangular Component. This includes setting key parameters such as its material, temperature, and dimensions. It also includes methods for computing geometric information related to rectangles, such as the
getBoundingCircleOuterDiameterandgetPitchDatamethods.- is3D = False
- THERMAL_EXPANSION_DIMS = {'lengthInner', 'lengthOuter', 'widthInner', 'widthOuter'}
- pDefs = <armi.reactor.parameters.parameterDefinitions.ParameterDefinitionCollection object>
- isLatticeComponent()[source]
Return true if the component is a lattice component containing void material and zero area.
- getPitchData()[source]
Return the pitch data that should be used to determine block pitch.
Notes
For rectangular components there are two pitches, one for each dimension. This pitch data should only be used if this is the pitch defining component in a block. The block is responsible for determining which component in it is the pitch defining component.
- DIMENSION_NAMES = ('lengthOuter', 'lengthInner', 'widthOuter', 'widthInner', 'mult', 'modArea')
- INIT_SIGNATURE = ('name', 'material', 'Tinput', 'Thot', 'lengthOuter', 'lengthInner', 'widthOuter', 'widthInner', 'mult', 'modArea', 'isotopics', 'mergeWith', 'components')
- paramCollectionType
alias of
RectangleParameterCollection
- class armi.reactor.components.basicShapes.SolidRectangle(name, material, Tinput, Thot, lengthOuter=None, widthOuter=None, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None)[source]
Bases:
RectangleSolid rectangle component.
- is3D = False
- THERMAL_EXPANSION_DIMS = {'lengthOuter', 'widthOuter'}
- DIMENSION_NAMES = ('lengthOuter', 'widthOuter', 'mult', 'modArea')
- INIT_SIGNATURE = ('name', 'material', 'Tinput', 'Thot', 'lengthOuter', 'widthOuter', 'mult', 'modArea', 'isotopics', 'mergeWith', 'components')
- paramCollectionType
alias of
RectangleParameterCollection
- class armi.reactor.components.basicShapes.Square(name, material, Tinput, Thot, widthOuter=None, widthInner=0.0, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None)[source]
Bases:
RectangleSquare component that can be solid or hollow.
This class provides the implementation for a square Component. This class subclasses the
Rectangleclass because a square is a type of rectangle. This includes setting key parameters such as its material, temperature, and dimensions.- is3D = False
- getPitchData()[source]
Return the pitch data that should be used to determine block pitch.
Notes
For rectangular components there are two pitches, one for each dimension. This pitch data should only be used if this is the pitch defining component in a block. The block is responsible for determining which component in it is the pitch defining component.
- DIMENSION_NAMES = ('widthOuter', 'widthInner', 'mult', 'modArea')
- INIT_SIGNATURE = ('name', 'material', 'Tinput', 'Thot', 'widthOuter', 'widthInner', 'mult', 'modArea', 'isotopics', 'mergeWith', 'components')
- paramCollectionType
alias of
RectangleParameterCollection
- class armi.reactor.components.basicShapes.Triangle(name, material, Tinput, Thot, base=None, height=None, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None)[source]
Bases:
ShapedComponentTriangle with defined base and height.
This class provides the implementation for defining a triangular Component. This includes setting key parameters such as its material, temperature, and dimensions. It also includes providing a method for retrieving the area of a Triangle Component via the
getComponentAreamethod.Notes
The exact angles of the triangle are undefined. The exact side lengths and angles are not critical to calculation of component area, so area can still be calculated.
- is3D = False
- THERMAL_EXPANSION_DIMS = {'base', 'height'}
- pDefs = <armi.reactor.parameters.parameterDefinitions.ParameterDefinitionCollection object>
- DIMENSION_NAMES = ('base', 'height', 'mult', 'modArea')
- INIT_SIGNATURE = ('name', 'material', 'Tinput', 'Thot', 'base', 'height', 'mult', 'modArea', 'isotopics', 'mergeWith', 'components')
- paramCollectionType
alias of
TriangleParameterCollection