armi.reactor.converters.meshConverters module

Mesh specifiers update the mesh structure of a reactor by increasing or decreasing the number of mesh coordinates.

class armi.reactor.converters.meshConverters.MeshConverter(converterSettings: dict)[source]

Bases: object

Base class for the reactor mesh conversions.

Parameters:

converterSettings (dict) – A set of str, value settings used in mesh conversion. Required settings are implementation specific.

generateMesh(r=None)[source]
writeMeshData()[source]
class armi.reactor.converters.meshConverters.RZThetaReactorMeshConverter(converterSettings)[source]

Bases: MeshConverter

Handles mesh conversions for r-z-theta reactor geometries.

Variables:

converterSettings (dict) – This is a dictionary of settings that are used for the RZThetaReactorMeshConverter. Required converter settings: uniformThetaMesh,``thetaBins``

generateMesh(r=None)[source]
writeMeshData()[source]

Write a summary table of the radial, axial, and theta bins that will be used for geometry conversion.

Notes

This should be on the ThetaRZGrid object.

setRingsToConvert(core)[source]
setAxialMesh(core)[source]
setThetaMesh()[source]

Generate a uniform theta mesh in radians.

class armi.reactor.converters.meshConverters.RZThetaReactorMeshConverterByRingCompositionAxialBins(cs)[source]

Bases: _RZThetaReactorMeshConverterByRingComposition, _RZThetaReactorMeshConverterByAxialBins

Generate a new mesh based on the radial compositions and axial bins in the core.

See also

_RZThetaReactorMeshConverterByRingComposition, _RZThetaReactorMeshConverterByAxialBins

class armi.reactor.converters.meshConverters.RZThetaReactorMeshConverterByRingCompositionAxialCoordinates(cs)[source]

Bases: _RZThetaReactorMeshConverterByRingComposition, _RZThetaReactorMeshConverterByAxialCoordinates

Generate a new mesh based on the radial compositions and axial coordinates in the core.

See also

_RZThetaReactorMeshConverterByRingComposition, _RZThetaReactorMeshConverterByAxialCoordinates

class armi.reactor.converters.meshConverters.RZThetaReactorMeshConverterByRingCompositionAxialFlags(cs)[source]

Bases: _RZThetaReactorMeshConverterByRingComposition, _RZThetaReactorMeshConverterByAxialFlags

Generate a new mesh based on the radial compositions and axial material (based on block flags) regions in the core.

See also

_RZThetaReactorMeshConverterByRingComposition, _RZThetaReactorMeshConverterByAxialFlags

armi.reactor.converters.meshConverters.checkLastValueInList(inputList, listName, expectedValue, eps=0.001, adjustLastValue=False)[source]

Check that the last value in the list is equal to the expected value within +/- eps.

armi.reactor.converters.meshConverters.checkListBounds(inputList, listName, minVal, maxVal, eps=0.001)[source]

Ensure that each value in a list does not exceed the allowable bounds.

armi.reactor.converters.meshConverters.generateBins(totalNumDataPoints, numPerBin, minNum)[source]

Fill in a list based on the total number of data points and the number of data points per bin.