10.1.1.1.2. armicontrib.dif3d.binaryIO.pkedit module

PKEDIT is a file made by DIF3D with peak power distribution information in it.

It is an undocumented(?) format as far as we can tell, but the format can be understood from the source code that writes it in `/src_DIF3D/lib/wpkedt.f.

class armicontrib.dif3d.binaryIO.pkedit.PkeditData[source]

Bases: armi.nuclearDataIO.cccc.cccc.DataContainer

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

class armicontrib.dif3d.binaryIO.pkedit.PkeditStream(data: armi.nuclearDataIO.cccc.cccc.DataContainer, fileName: str, fileMode: str)[source]

Bases: armi.nuclearDataIO.cccc.cccc.StreamWithDataContainer

Stream for reading to/writing from with PKEDIT data.

Parameters
  • data (PkeditData) – Data structure

  • fileName (str) – path to PKEDIT file

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

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.

readWrite()[source]

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