armi.nuclearDataIO.cccc.pwdint module

Read/write a CCCC PWDINT power density definition file.

PWDINT files power density at mesh intervals.

File format definition is from [CCCC-IV].

Examples

>>> pwr = pwdint.readBinary("PWDINT")
>>> pwdint.writeBinary(pwr, "PWDINT2")
class armi.nuclearDataIO.cccc.pwdint.PwdintData[source]

Bases: DataContainer

Data representation that can be read from or written to a PWDINT file.

This contains a mapping from the i,j,k GEODST mesh to power density in Watts/cm^3.

class armi.nuclearDataIO.cccc.pwdint.PwdintStream(data: DataContainer, fileName: str, fileMode: str)[source]

Bases: StreamWithDataContainer

Stream for reading to/writing from with PWDINT data.

Parameters:
  • power (PwdintData) – Data structure

  • fileName (str) – path to pwdint file

  • fileMode (str) – string indicating if fileName is being read or written, and in ascii or binary format

readWrite()[source]

Step through the structure of a PWDINT file and read/write it.

Logic to control which records will be present is here, which comes directly off the File specification.