armi.nuclearDataIO.cccc.pmatrx module

Module for reading PMATRX files which contain gamma productions from fission reactions.

See [GAMSOR] and [MC23].

MC23

Lee, Changho, Jung, Yeon Sang, and Yang, Won Sik. MC2-3: Multigroup Cross Section Generation Code for Fast Reactor Analysis Nuclear. United States: N. p., 2018. Web. doi:10.2172/1483949. (OSTI)

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

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

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

This method adds DUMMY nuclides to the current PMATRX library.

Parameters
  • lib (obj) – PMATRX library object

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

Notes

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

armi.nuclearDataIO.cccc.pmatrx.readBinary(fileName)[source]

Read a binary PMATRX file into an IsotxsLibrary object.

armi.nuclearDataIO.cccc.pmatrx.readAscii(fileName)[source]

Read an ASCII PMATRX file into an IsotxsLibrary object.

armi.nuclearDataIO.cccc.pmatrx._read(fileName, fileMode)[source]
armi.nuclearDataIO.cccc.pmatrx.writeBinary(lib, fileName)[source]

Write the PMATRX data from an IsotxsLibrary object to a binary file.

armi.nuclearDataIO.cccc.pmatrx.writeAscii(lib, fileName)[source]

Write the PMATRX data from an IsotxsLibrary object to an ASCII file.

armi.nuclearDataIO.cccc.pmatrx._write(lib, fileName, fileMode)[source]
armi.nuclearDataIO.cccc.pmatrx._readWrite(lib, fileName, fileMode, getNuclideFunc)[source]
class armi.nuclearDataIO.cccc.pmatrx._PmatrxIO(fileName, xsLib, fileMode, getNuclideFunc)[source]

Bases: armi.nuclearDataIO.cccc.cccc.Stream

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.

_rwMessage()[source]
readWrite()[source]

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

_rwFileID()[source]
_rwGroupStructure()[source]
_rwDoseConversionFactor()[source]
_rwIsotopes(numNucs)[source]
_rwCompositions()[source]
class armi.nuclearDataIO.cccc.pmatrx._PmatrxNuclideIO(nuclide, pmatrixIO, numNeutronGroups, numGammaGroups)[source]

Bases: object

rwNuclide()[source]
_rwNuclideHeading()[source]
_rwNeutronHeatingAndDamage()[source]
_rwReactionXS()[source]
_rwGammaHeating()[source]
_rwCellAveragedProductionMatrix()[source]
_getProductionMatrix(order)[source]
_setProductionMatrix(order, matrix)[source]