Muscat.IO.LSDynaReader module¶
LSDyna file reader. Documentation of the format: http://ftp.lstc.com/anonymous/outgoing/jday/manuals/DRAFT_Vol_I.pdf
- class LSDynaReader[source]¶
Bases:
ReaderBase
LSDyna Reader class
- Read(fileName=None, string=None, out=None, printNotRead=True)[source]¶
Function that performs the reading of a LSDyna mesh 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
printNotRead (bool, optional) – if True, prints in console the lines dot understood by the reader, by default True
- Returns:
output unstructured mesh object containing reading result
- Return type:
- ListToNumber(list)[source]¶
hack where the element type is defined by inspecting the number of identical columns at the end of the connectivity list.
- ReadLSDyna(fileName: str = '', string: str = '', out=None, printNotRead=True)[source]¶
Function API for reading a LSDyna mesh 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
printNotRead (bool, optional) – if True, prints in console the lines dot understood by the reader, by default True
- Returns:
output unstructured mesh object containing reading result
- Return type: