Muscat.IO.InpReader module

Inp file reader (Abaqus simulation file)

CheckIntegrity()[source]
DiscardTillNextStar(func)[source]
class InpReader[source]

Bases: ReaderBase

Inp Reader class

PeekLine() str[source]

Read a line without advancing

Returns:

the next line in the input buffer

Return type:

str

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

Function that performs the reading of an Inp 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 (Mesh, optional) – output unstructured mesh object containing reading result, by default None

Returns:

output unstructured mesh object containing reading result

Return type:

Mesh

ReadCleanLine()[source]

Read the next data line in the file (ignore comments)

find(l, expr)[source]
JoinInp(filename)[source]
LineToDic(text)[source]
LineToList(text)[source]
LineToListNoQuote(text)[source]
ReadInp(fileName: str = '', string: str = '', out=None, **kwargs)[source]

Function API for reading an Abaqus inp 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 (Mesh, optional) – output unstructured mesh object containing reading result, by default None

Returns:

output unstructured mesh object containing reading result

Return type:

Mesh

SplitInp(filename)[source]