armi.nuclearDataIO.cccc.rzflux module
Module for reading/writing RZFLUX CCCC interface files.
RZFLUX contains Regular Zone Flux, or multigroup flux by neutron energy group in each zone. It also can hold some convergence and neutron balance information.
The format is defined in [CCCC-IV].
Examples
>>> flux = rzflux.readBinary("RZFLUX")
>>> flux.groupFluxes[2, 0] *= 1.1
>>> rzflux.writeBinary(flux, "RZFLUX2")
>>> rzflux.writeAscii(flux, "RZFLUX2.ascii")
- class armi.nuclearDataIO.cccc.rzflux.Convergence(value)[source]
Bases:
Enum
Convergence behavior flags for ITPS from RZFLUX file.
- NO_ITERATIONS = 0
- CONVERGED = 1
- CONVERGING = 2
- DIVERGING = 3
- class armi.nuclearDataIO.cccc.rzflux.RzfluxData[source]
Bases:
DataContainer
Data representation that can be read from or written to a RZFLUX file.
Notes
Analogous to a IsotxsLibrary for ISTOXS files.
- class armi.nuclearDataIO.cccc.rzflux.RzfluxStream(data: DataContainer, fileName: str, fileMode: str)[source]
Bases:
StreamWithDataContainer
Stream for reading to/writing from with RZFLUX data.
- Parameters:
flux (RzfluxData) – Data structure
fileName (str) – path to RZFLUX file
fileMode (str) – string indicating if
fileName
is being read or written, and in ascii or binary format