Skip to main content

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)
...
...
...

Latest Tutorial

The examples and documents for this project is available here.

Release files for lsreader 0.1.47

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for lsreader 0.1.47
File
lsreader-0.1.47-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
lsreader-0.1.47-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details
lsreader-0.1.47-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
lsreader-0.1.47-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details
lsreader-0.1.47-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
lsreader-0.1.47-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details

Total release size: 26.2 MB

Release files / lsreader-0.1.47-cp38-cp38-win_amd64.whl

Download URL lsreader-0.1.47-cp38-cp38-win_amd64.whl
Size 7.1 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
d878d1e0d8fb466f4a7641c914cd587becfaee874b9a46c7597622a4f4e27ed6
BLAKE2b-256 checksum
How to use checksums
f99e7ca1e5f7a28b49429fefd291d814f0c77a39fef4e7871ac1e2ca9be2175f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lsreader-0.1.47-cp38-cp38-manylinux2010_x86_64.whl

Download URL lsreader-0.1.47-cp38-cp38-manylinux2010_x86_64.whl
Size 1.7 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
5c9cea5d1b0eee68aac014b508cf82c22dace9ef00094289d03304f8a078a358
BLAKE2b-256 checksum
How to use checksums
2a61b6115206f77697b35618f602eeb135dbbd421905a99b2df798710d462a28
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lsreader-0.1.47-cp37-cp37m-win_amd64.whl

Download URL lsreader-0.1.47-cp37-cp37m-win_amd64.whl
Size 7.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
c5cc2e6d99b48bb252c01726845b82e15a25001bbf5b35bdbbb29bd83309e300
BLAKE2b-256 checksum
How to use checksums
5377b0a1503cdffed7f31f27709a2fd36a856b90c84d463d9d8ef339280c73a4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lsreader-0.1.47-cp37-cp37m-manylinux2010_x86_64.whl

Download URL lsreader-0.1.47-cp37-cp37m-manylinux2010_x86_64.whl
Size 1.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
b751852185051068407c9229f5c800c6e3ef4e2a8aaf01254883f8e4b73c2afb
BLAKE2b-256 checksum
How to use checksums
26a66bea04804f5f805abd33d3d0b7d64fc796d83e7dfd236caa9c6481a81e32
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lsreader-0.1.47-cp36-cp36m-win_amd64.whl

Download URL lsreader-0.1.47-cp36-cp36m-win_amd64.whl
Size 7.1 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
9f95fb239671e6ae5b4c3a36f9eaa95345a7f9c3753dde185c267ea8d1c4d843
BLAKE2b-256 checksum
How to use checksums
12e5716a28e33a534ad214cb30549fcc57d057c862f1be0b7292c3a07a76a19d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lsreader-0.1.47-cp36-cp36m-manylinux2010_x86_64.whl

Download URL lsreader-0.1.47-cp36-cp36m-manylinux2010_x86_64.whl
Size 1.7 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
3b9cef2801ac1733573f77f6000e25cffd2df083c27847ae73487f288db140c6
BLAKE2b-256 checksum
How to use checksums
476d797762f95bc98090e734ba35d4813764d904064ab0038570bdd306f13fbf
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.47 This release

6 release files

0.1.43

6 release files

0.1.42

3 release files

0.1.41

6 release files

0.1.38

6 release files

0.1.37

6 release files

0.1.34

6 release files

0.1.32

6 release files

0.1.31

6 release files

0.1.30

6 release files

0.1.24

6 release files

0.1.18

6 release files

0.1.17

6 release files

0.1.12

6 release files

0.1.9

6 release files

0.1.8

8 release files

0.1.7

8 release files

0.1.6

8 release files

0.1.5

8 release files

0.1.4

8 release files

0.1.3

8 release files

0.1.0

8 release files

0.0.33

8 release files

0.0.26

8 release files

0.0.22

6 release files

0.0.21

6 release files

0.0.20

4 release files

0.0.19

6 release files

0.0.18

6 release files

0.0.16

6 release files

0.0.15

6 release files

0.0.14

3 release files

0.0.13

6 release files

0.0.11

6 release files

0.0.9

6 release files

0.0.8

6 release files

0.0.7

6 release files

0.0.6

6 release files

0.0.5

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page