armi.nuclearDataIO.cccc.geodst module

Read/write a CCCC GEODST geometry definition file.

GEODST files define fine and coarse meshes and mappings between region numbers and mesh indices. They also store some zone information.

File format definition is from [CCCC-IV].

Examples

>>> geo = geodst.readBinary("GEODST")
>>> print(geo.xmesh)
>>> geo.zmesh[-1]*=2  # make a modification to data
>>> geodst.writeBinary(geo, "GEODST2")
class armi.nuclearDataIO.cccc.geodst.GeodstData[source]

Bases: DataContainer

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

The region numbers in this data structure START AT 1, not zero! Thus you must always remember the off-by-one conversion when comparing with list or matrix indices.

Notes

Analogous to a IsotxsLibrary for ISTOXS files.

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

Bases: StreamWithDataContainer

Stream for reading to/writing from with GEODST data.

Parameters:
  • geom (GeodstData) – Data structure

  • fileName (str) – path to geodst 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 GEODST file and read/write it.

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