BasicTools.IO.AscReader module

ASC file reader

class BasicTools.IO.AscReader.AscReader[source]

Bases: ReaderBase

ASC Reader class

Read(fileName=None, string=None, out=None)[source]

Function that performs the reading of an ASC file

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

  • string (str, optional) – data to be read as a string instead of a file, by default None

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

Returns:

output unstructured mesh object containing reading result

Return type:

UnstructuredMesh

BasicTools.IO.AscReader.CheckIntegrity()[source]
BasicTools.IO.AscReader.ReadAsc(fileName=None, string=None, out=None, **kwargs)[source]

Function API for reading an ASC result file

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

  • string (str, optional) – data to be read as a string instead of a file, by default None

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

Returns:

output unstructured mesh object containing reading result

Return type:

UnstructuredMesh