armi.nuclearDataIO.cccc.pmatrx module
Module for reading PMATRX files which contain gamma productions from fission reactions.
- armi.nuclearDataIO.cccc.pmatrx.compare(lib1, lib2)[source]
Compare two XSLibraries, and return True if equal, or False if not.
- 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.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.
- class armi.nuclearDataIO.cccc.pmatrx.PmatrxIO(fileName, xsLib, fileMode, getNuclideFunc)[source]
Bases:
Stream
- readWrite()[source]
Read and write PMATRX files.
Reading and writing PMATRX files is performed using the general nuclear data I/O functionalities described in I_ARMI_NUCDATA. Reading/writing a PMATRX file is performed through the following steps:
Read/write global information including:
Number of gamma energy groups
Number of neutron energy groups
Maximum scattering order
Maximum number of compositions
Maximum number of materials
Maximum number of regions
Read/write energy group structure for neutrons and gammas
Read/write dose conversion factors
Read/write gamma production matrices for each nuclide, as well as other reaction constants related to neutron-gamma production.