A reader to extract LS-DYNA results
Project description
LS-Reader Project
The LS-Reader is designed to read LS-DYNA results and can extract the data of more than 2000 such as stress, strain, id, history variable, effective plastic strain, number of elements, binout data and so on now. The LS-Reader provides an uniform interface for getting these data. For convenience, input parameters, like number of state, number of integration point, are designed as keyword arguments. More details please see LS-Reader Tutorial.
How to use
# D3plotReader
from lsreader import D3plotReader, DataType as dt
data_path = your/d3plot/file/path
dr = D3plotReader(data_path)
shell_stress = dr.get_data(dt.D3P_SHELL_STRESS, ist=0, ipt=1)
print(shell_stress[0].x())
shell_eps = dr.get_data(dt.D3P_SHELL_EFFECTIVE_PLASTIC_STRAIN, ist=0, ipt=1)
print(shell_eps[0])
thickness = dr.get_data(dt.D3P_SHELL_THICKNESS, ist=11)
print(thickness[0])
num_solid_element = dr.get_data(dt.D3P_NUM_SOLID)
print(num_solid_element)
# Get d3plot data by part
num_solid_pid_4 = dr.get_data(dt.D3P_NUM_SOLID, ipart_user=4)
shell_stress_pid_4 = dr.get_data(dt.D3P_SHELL_STRESS, ist=4, ipt=0, ipart_user=4)
# Get data by part set
num_shells = dr.get_data(dt.D3P_NUM_SHELL, ipartset_user=[1, 2])
# Get numpy array(numpy is required to be installed, using "pip install numpy")
shell_stress = dr.get_data(dt.D3P_SHELL_STRESS, ist=0, ipt=1, ask_for_numpy_array=True)
print(shell_stress)
# BinoutReader
from lsreader import BinoutReader, BINOUT_DataType as bdt
data_path = your/binout/file/path
br = BinoutReader(data_path)
branches = br.get_data(bdt.BINOUT_BRANCHES)
print(branches)
ids = br.get_data(bdt.BINOUT_NODOUT_IDS)
print(ids)
...
...
...
The examples and documents for this project is available here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file lsreader-0.1.47-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: lsreader-0.1.47-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d878d1e0d8fb466f4a7641c914cd587becfaee874b9a46c7597622a4f4e27ed6 |
|
MD5 | b4f4f92c29bff23b71124453fa7c30da |
|
BLAKE2b-256 | f99e7ca1e5f7a28b49429fefd291d814f0c77a39fef4e7871ac1e2ca9be2175f |
File details
Details for the file lsreader-0.1.47-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: lsreader-0.1.47-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9cea5d1b0eee68aac014b508cf82c22dace9ef00094289d03304f8a078a358 |
|
MD5 | 04958b08d4e690e10c56b1baac22a283 |
|
BLAKE2b-256 | 2a61b6115206f77697b35618f602eeb135dbbd421905a99b2df798710d462a28 |
File details
Details for the file lsreader-0.1.47-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: lsreader-0.1.47-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5cc2e6d99b48bb252c01726845b82e15a25001bbf5b35bdbbb29bd83309e300 |
|
MD5 | 159225224c16714ca5d3a4e65248e53d |
|
BLAKE2b-256 | 5377b0a1503cdffed7f31f27709a2fd36a856b90c84d463d9d8ef339280c73a4 |
File details
Details for the file lsreader-0.1.47-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: lsreader-0.1.47-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b751852185051068407c9229f5c800c6e3ef4e2a8aaf01254883f8e4b73c2afb |
|
MD5 | 2a513760ef532eed5585208948db02fd |
|
BLAKE2b-256 | 26a66bea04804f5f805abd33d3d0b7d64fc796d83e7dfd236caa9c6481a81e32 |
File details
Details for the file lsreader-0.1.47-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: lsreader-0.1.47-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 7.1 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f95fb239671e6ae5b4c3a36f9eaa95345a7f9c3753dde185c267ea8d1c4d843 |
|
MD5 | 3e5ff5e7192633dc0318faf08c45de50 |
|
BLAKE2b-256 | 12e5716a28e33a534ad214cb30549fcc57d057c862f1be0b7292c3a07a76a19d |
File details
Details for the file lsreader-0.1.47-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: lsreader-0.1.47-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b9cef2801ac1733573f77f6000e25cffd2df083c27847ae73487f288db140c6 |
|
MD5 | 2adb115dbffc592cb3e041349a2be4b1 |
|
BLAKE2b-256 | 476d797762f95bc98090e734ba35d4813764d904064ab0038570bdd306f13fbf |