DYNA-Lib documentation#
Overview#
The DYNA-Lib project provides Python libraries to build a DYNA keyword input file and run the Ansys LS-DYNA solver. With DYNA-Lib, you can perform these actions:
Generate, read, and write all keywords*
Run the LS-DYNA solver
Usage#
Here’s an example of how you use DYNA-Lib to render Python code:
>>> from ansys.dyna.keywords import keywords
>>> shell = keywords.SectionTShell()
>>> shell
*SECTION_TSHELL
$# secid elform shrf nip propt qr icomp tshear
1 1.0 2 1.0 0 0 0
Documentation and issues#
Documentation for the latest stable release of DYNA-Lib is hosted at DYNA-Lib documentation. The documentation has three sections:
Getting started: Describes how to install DYNA-Lib in user mode.
API reference: Provides API member descriptions and usage examples.
Examples: Provides examples showing end-to-end workflows for using DYNA-Lib to create keyword files for LS-DYNA and then solve them within a Pythonic environment.
Contribute: Describes how to install DYNA-Lib in developer mode and how to contribute to this PyAnsys library.
In the upper right corner of the documentation’s title bar, there is an option for switching from viewing the documentation for the latest stable release to viewing the documentation for the development version or previously released versions.
On the DYNA-Lib Issues page, you can create issues to report bugs and request new features. On the Discussions page on the Ansys Developer portal, you can post DYNA-Lib questions, share ideas, and get community feedback.
To reach the PyAnsys support team, email pyansys.core@ansys.com.
License#
DYNA-Lib is licensed under the MIT license.
DYNA-Lib makes no commercial claim over Ansys whatsoever. This tool extends the functionality of Ansys LS-DYNA by adding a Python interface to the LS-DYNA keywords and LS-DYNA solver without changing the core behavior or license of the original software. The use of the LS-DYNA solver requires a legally licensed local of LS-DYNA.
To get a copy of LS-DYNA, see the Ansys LS-DYNA page on the Ansys website.