armi.nuclearDataIO.labels module

LABELS contains the region and composition label data produced by DIF3D/VARIANT.

The file structure is listed here:

       RECORD TYPE                        PRESENT IF
       ===============================    ================
       FILE IDENTIFICATION                ALWAYS
       SPECIFICATIONS                     ALWAYS
       LABEL AND AREA DATA                ALWAYS
       FINITE-GEOMETRY TRANSVERSE         NHTS1.GT.0 OR
         DISTANCES                         NGTS2.GT.0
       NUCLIDE SET LABELS                 NSETS.GT.1
       ALIAS ZONE LABELS                  NALIAS.GT.0
       GENERAL CONTROL-ROD MODEL DATA     NBANKS.GT.0

***********(REPEAT FOR ALL BANKS)
*      CONTROL-ROD BANK DATA              NBANKS.GT.0
*
*  *******(REPEAT FOR ALL RODS IN BANK)
*  *   CONTROL-ROD CHANNEL DATA           (LLCHN+LLROD+MMESH).GT.0
**********
       BURNUP DEPENDENT CROSS SECTION     NVARY.GT.0
         SPECIFICATIONS
       BURNUP DEPENDENT GROUPS            MAXBRN.GT.0
       BURNUP DEPENDENT FITTING           MAXORD.GT.0
         COEFFICIENTS

Reference: [DIF3D].

class armi.nuclearDataIO.labels.LabelsIO(fileName, fileMode)[source]

Bases: armi.nuclearDataIO.cccc.Stream

Class for reading and writing the LABELS interface file produced by DIF3D/VARIANT.

Notes

Contains region and composition labels, area data, half heights, nuclide set labels, alias zone labels, control-rod model data, and burnup dependent cross section data.

Create an instance of a Stream.

Parameters
  • fileName (str) – name of the file to be read

  • fileMode (str) – the file mode, i.e. ‘w’ for writing ASCII, ‘r’ for reading ASCII, ‘wb’ for writing binary, and ‘rb’ for reading binary.

readWrite()[source]

This method should be implemented on any sub-classes to specify the order of records.