Skip to main content

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

Latest Tutorial

The examples and documents for this project is available here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lsreader-0.1.46-cp38-cp38-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.8Windows x86-64

lsreader-0.1.46-cp38-cp38-manylinux2010_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.1.46-cp37-cp37m-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.1.46-cp37-cp37m-manylinux2010_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.1.46-cp36-cp36m-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.46-cp36-cp36m-manylinux2010_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

Details for the file lsreader-0.1.46-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.1.46-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 9.0 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

Hashes for lsreader-0.1.46-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 347cbb21457006e0b2197f2319431b197cd85aa05a092a33ff1c9739b49dadaf
MD5 9fe67ac0c49f712b9d250b0512d435dd
BLAKE2b-256 0ed8488bebbf7741bd20a830038bce811885a3f90bc85e260fd165626ab1c8c9

See more details on using hashes here.

File details

Details for the file lsreader-0.1.46-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: lsreader-0.1.46-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

Hashes for lsreader-0.1.46-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4c68149768c5c5841dc186838a799176945dd7bae4b7315fdc90799764da3560
MD5 31cf090097446ebe87668eceabe738da
BLAKE2b-256 608c97fee651f8532dff3146ccc6d52f1a0e5d9614d65696cbb15b0415d800ec

See more details on using hashes here.

File details

Details for the file lsreader-0.1.46-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.1.46-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 9.0 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

Hashes for lsreader-0.1.46-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bd2a0045d8b41e8bc055ce8789ac730c039ae05ace62ed04037eabb6929f1d6c
MD5 9e3046be75ab3e59f9e9f96447377f6a
BLAKE2b-256 1d17ec8c6d60435d28a5f85be0a7b22eb46f7d327b1c2a0cddc3c6e744039ff6

See more details on using hashes here.

File details

Details for the file lsreader-0.1.46-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: lsreader-0.1.46-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

Hashes for lsreader-0.1.46-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8f832878af67ebd87482fe83584e6cd1b207c52a4a8e05b93b5a30e1ac8e83c7
MD5 704fc7858ab474545515ff49087d2556
BLAKE2b-256 1b4ffbe23a999898c74f1fdcf3b54a574cb53fb8edd507f117c22317afeb4ce8

See more details on using hashes here.

File details

Details for the file lsreader-0.1.46-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.1.46-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 9.0 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

Hashes for lsreader-0.1.46-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b1d29589e002e7d85381220c5e3c9cdf3d164899198a4cf2f39ac0051e1351c0
MD5 037bf7e9560caf9d1c8ae838d7f63f7b
BLAKE2b-256 b511652b0e5665bbdee856972dc459c795d3a93f42d974205d9583b6d16c9ad6

See more details on using hashes here.

File details

Details for the file lsreader-0.1.46-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: lsreader-0.1.46-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

Hashes for lsreader-0.1.46-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5e72c5f87f4d93a9a4b83f62ec1cbc1a86094347ecfd726686fa60037f8bf96e
MD5 d76b3b5db66c18ba8ddfa6d0e90abb5f
BLAKE2b-256 b49797152e28a117f3516abc7a755d0d3ae3c721c12643ae310c75908d221bde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page