
Mon Sep 09 16:13:20 UTC 2024: ## New Python Library Makes LS-DYNA Keyword Files Readable
A new Python library, `lsdyna-mesh-reader`, has been released, offering a solution to a long-standing problem in the engineering simulation community: the lack of a readily available reader for LS-DYNA keyword files.
The library allows users to easily read in LS-DYNA meshes stored within keyword (*.k, *.key, *.dyn) files, also known as keyword format input decks. These files are commonly used in finite element analysis (FEA) simulations with the LS-DYNA software.
The project was developed due to the absence of a suitable reader for closed-source projects and hopes to benefit other users needing to work with these files. Inspired by the MAPDL-archive project, `lsdyna-mesh-reader` leverages similar FORTRAN conventions used in writing FEA data.
The library offers two installation options: a full version with visualization features using PyVista and a basic version for users only needing node and element arrays.
The library provides a convenient way to access and parse the data stored in LS-DYNA keyword files. Users can easily extract node and element information and even convert the mesh to a single unstructured grid for visualization and further processing using PyVista.
While the library is still under development and limited testing has been performed, it supports a range of keywords and offers a user-friendly interface for accessing data.
This release is a significant step forward for developers working with LS-DYNA and provides a valuable resource for the broader engineering simulation community. The developers welcome contributions and encourage users to report any issues or feature requests.
**Key features:**
* Reads node and element data from LS-DYNA keyword files.
* Provides both raw and parsed data sections.
* Supports conversion to VTK UnstructuredGrid for visualization.
* Available in two versions: full with PyVista integration and basic.
**Availability:**
The `lsdyna-mesh-reader` library is available on PyPI and can be installed using `pip install lsdyna-mesh-reader`.