BasicTools.IO.GeoReader module

Geo file reader (Zset mesh file)

BasicTools.IO.GeoReader.CheckIntegrity()[source]
class BasicTools.IO.GeoReader.GeoReader[source]

Bases: ReaderBase

Geo Reader class

Read(fileName=None, out=None, readElset=True, readFaset=True, onlyMeta=False)[source]

Function that performs the reading of a geo mesh file

Parameters:
  • fileName (str, optional) – name of the file to be read, by default None

  • out (UnstructuredMesh, optional) – Not Used, by default None

  • readElset (bool, optional) – Not Used, by default None

  • readFaset (bool, optional) – Not Used, by default None

  • onlyMeta (bool, optional) – if True, only read metadata, by default False

Returns:

output unstructured mesh object containing reading result

Return type:

UnstructuredMesh

ReadMetaData()[source]

Function that performs the reading of the metadata of a geof mesh file

Returns:

global information on the mesh to read

Return type:

dict

readInt32()[source]
readInts32(cpt)[source]
readMagic()[source]
BasicTools.IO.GeoReader.ReadGeo(fileName=None, out=None, readElset=True, readFaset=True)[source]

Function API for reading a geo mesh file

Parameters:
  • fileName (str, optional) – name of the file to be read, by default None

  • out (UnstructuredMesh, optional) – output unstructured mesh object containing reading result, by default None

  • readElset (bool, optional) – if False, ignores the elset informations, by default True

  • readFaset (bool, optional) – if False, ignores the faset informations, by default True

Returns:

output unstructured mesh object containing reading result

Return type:

UnstructuredMesh

BasicTools.IO.GeoReader.ReadMetaData(fileName=None)[source]

Function API for reading the metadata of a geo mesh file

Parameters:

fileName (str, optional) – name of the file to be read, by default None

Returns:

global information on the mesh to read

Return type:

dict