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 1300 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lsreader-0.1.33-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: lsreader-0.1.33-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, Windows 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 |
7e5b4b0f294edb451adc89efa7929c6bdfb886802ae68da165b0e989a2da8e44
|
|
| MD5 |
f8f74436133f7f9b44f08b956d2c5d95
|
|
| BLAKE2b-256 |
bd1e0ba89cadd9990049957d1a642ab8b9349ca0bed0e539b6c6a5d2879fdc54
|
File details
Details for the file lsreader-0.1.33-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: lsreader-0.1.33-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.6 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 |
df74c765844f9d7acd69f7601de6447134361a12736dba2e840008882564d89c
|
|
| MD5 |
77c229db5f881847ed65f5e666c21b78
|
|
| BLAKE2b-256 |
208ed6e2a7b29d06a49bc76e55776f304651b49751fe14354575e796cbef95b5
|
File details
Details for the file lsreader-0.1.33-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: lsreader-0.1.33-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 1.2 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 |
6bd6c125d3b8ad7a6f9a32e981f390dde32174855ec680ae3e262ebbac4716ba
|
|
| MD5 |
095182ba6c7e9d5a3a6ed422cc0f2278
|
|
| BLAKE2b-256 |
f1fe22d69bb46e76946fc6ba18b68d1d46ce3892777725c8dab0a1cb539d2182
|
File details
Details for the file lsreader-0.1.33-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: lsreader-0.1.33-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.6 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 |
9c52f056f3e1c166c0f696b3affe43256cd86667eb7911d6f5799b0c0b45d17c
|
|
| MD5 |
d311e040584e21451ce64799954de2de
|
|
| BLAKE2b-256 |
6b74488acc309e9be45be241aaa146532108bca9144505f654e88f6f24d381f8
|
File details
Details for the file lsreader-0.1.33-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: lsreader-0.1.33-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 1.2 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 |
942adf12df090f8e8fd1aff233472a607e0919bc67b823ac7001a443999e62cb
|
|
| MD5 |
22b439e015cf272c35239fc52e4d10fc
|
|
| BLAKE2b-256 |
7e7ead573988381e0c90d5234931131ed7eb597c6e996cf66216babf1db61a6d
|
File details
Details for the file lsreader-0.1.33-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: lsreader-0.1.33-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.6 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 |
fc0526c1a8493670e0b8c228efe07261a1f60f0455b51a35863fcdab4d2b7437
|
|
| MD5 |
83dfdbeb8954007fdcba59d9e0f78b55
|
|
| BLAKE2b-256 |
035c5259882c5919014ed7eefeca8619c5def1fbb3759d83af37273a84d3f2a2
|