BasicTools.IO.FemReader module

Fem file reader

BasicTools.IO.FemReader.CheckIntegrity(GUI=False)[source]
class BasicTools.IO.FemReader.FORCE[source]

Bases: NastranLineParcer

class BasicTools.IO.FemReader.FemReader(fileName=None)[source]

Bases: ReaderBase

Fem Reader class

GetField(line, number)[source]
Read()[source]

Function that performs the reading of a Fem file

Returns:

output unstructured mesh object containing reading result

Return type:

UnstructuredMesh

ReadCleanLine(withError=False)[source]
class BasicTools.IO.FemReader.IgnoredOneLine[source]

Bases: NastranLineParcer

class BasicTools.IO.FemReader.IgnoredOneMultiline[source]

Bases: NastranLineParcer

class BasicTools.IO.FemReader.LOAD[source]

Bases: NastranLineParcer

class BasicTools.IO.FemReader.NastranLineParcer[source]

Bases: object

GetField(line, fn)[source]
GetFields(line, fn, ffn)[source]
Parse(line, file=None)[source]
ParseFloat(line)[source]
ParseType(field, typ)[source]
ParseTypes(fields, ts)[source]
BasicTools.IO.FemReader.ReadFem(fileName=None, string=None)[source]

Function API for reading a Fem 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

Returns:

output unstructured mesh object containing reading result

Return type:

UnstructuredMesh

class BasicTools.IO.FemReader.ignored(ignored)[source]

Bases: object