armi.nuclearDataIO.cccc.gamiso module

Module for reading GAMISO files which contains gamma cross section data

GAMISO is a binary file created by MC**2-v3 that contains multigroup microscopic gamma cross sections. GAMISO data is contained within a XSLibrary.

See [GAMSOR].

GAMSOR

Smith, M. A., Lee, C. H., and Hill, R. N. GAMSOR: Gamma Source Preparation and DIF3D Flux Solution. United States: N. p., 2016. Web. doi:10.2172/1343095. On OSTI

armi.nuclearDataIO.cccc.gamiso.compare(lib1, lib2)[source]

Compare two XSLibraries, and return True if equal, or False if not.

armi.nuclearDataIO.cccc.gamiso.compareNuclideXS(nuc1, nuc2)[source]
armi.nuclearDataIO.cccc.gamiso.addDummyNuclidesToLibrary(lib, dummyNuclides)[source]

This method adds DUMMY nuclides to the current GAMISO library.

Parameters
  • lib (obj) – GAMISO library object

  • dummyNuclides (list) – List of DUMMY nuclide objects that will be copied and added to the GAMISO file

Notes

Since MC2-3 does not write DUMMY nuclide information for GAMISO files, this is necessary to provide a consistent set of nuclide-level data across all the nuclides in a XSLibrary.

class armi.nuclearDataIO.cccc.gamiso._GamisoIO(fileName, lib, fileMode, getNuclideFunc)[source]

Bases: armi.nuclearDataIO.cccc.isotxs._IsotxsIO

A reader/writer for GAMISO data files.

Notes

The GAMISO file format is identical to ISOTXS.

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.

_getFileMetadata()[source]
_getNuclideIO()[source]
_rwMessage()[source]
_rwLibraryEnergies(record)[source]
class armi.nuclearDataIO.cccc.gamiso._GamisoNuclideIO(nuclide, isotxsIO, lib)[source]

Bases: armi.nuclearDataIO.cccc.isotxs._IsotxsNuclideIO

A reader/writer for GAMISO nuclides.

Notes

The GAMISO file format is identical to ISOTXS.

_FILE_LABEL = 'GAMISO'
_getFileMetadata()[source]
_getNuclideMetadata()[source]
_getMicros()[source]