Muscat.IO.FemReader module

Fem file reader

CheckIntegrity(GUI: bool = False)[source]
class FORCE[source]

Bases: NastranLineParcer

class FemReader(fileName: str = '')[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:

Mesh

ReadCleanLine()[source]

Return the next (non comment) line in the file

Returns:

Return the next clean line

Return type:

str

class IgnoredOneLine[source]

Bases: NastranLineParcer

class IgnoredOneMultiline[source]

Bases: NastranLineParcer

class LOAD[source]

Bases: NastranLineParcer

class 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]
ReadFem(fileName: str = '', string: str = '')[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:

Mesh

class ignored(ignored)[source]

Bases: object