ibfoamrig.io.FoamHeader#

class ibfoamrig.io.FoamHeader(format, field_class, object, location=None, label_bytes=4, scalar_bytes=8, little_endian=True)[source]#

Bases: object

Metadata from the FoamFile dictionary at the top of the file.

Variables:
  • format (Literal['ascii', 'binary']) – Write format of the data, ascii or binary.

  • field_class (str) – OpenFOAM class name.

  • object (str) – Name of the field.

  • location (str | None) – Time directory the file was written to, if recorded.

  • label_bytes (int) – Size of an integer label in bytes.

  • scalar_bytes (int) – Size of a floating-point scalar in bytes.

  • little_endian (bool) – True if binary data is stored least significant byte first.