BasicTools.IO.LSDynaReader module
LSDyna file reader. Documentation of the format: http://ftp.lstc.com/anonymous/outgoing/jday/manuals/DRAFT_Vol_I.pdf
- class BasicTools.IO.LSDynaReader.LSDynaReader[source]
Bases:
ReaderBaseLSDyna 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 (UnstructuredMesh, 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:
- BasicTools.IO.LSDynaReader.ListToNumber(list)[source]
hack where the element type is defined by inspecting the number of identical columns at the end of the connectivity list.
- BasicTools.IO.LSDynaReader.ReadLSDyna(fileName=None, string=None, 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 (UnstructuredMesh, 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: