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 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 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.0.31-cp38-cp38-win_amd64.whl (818.5 kB view details)

Uploaded CPython 3.8Windows x86-64

lsreader-0.0.31-cp38-cp38-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.0.31-cp37-cp37m-win_amd64.whl (821.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.0.31-cp37-cp37m-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.31-cp36-cp36m-win_amd64.whl (821.0 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.0.31-cp36-cp36m-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.31-cp35-cp35m-win_amd64.whl (821.0 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.31-cp35-cp35m-manylinux2010_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.0.31-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 818.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

File hashes

Hashes for lsreader-0.0.31-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c956a09072560e0e5bd8676b1359b6d5d4cf9a2dd9d31037ed472ca7b2c4e92d
MD5 d8b73f76867991224399c519e70a05d0
BLAKE2b-256 0dc2d415fd67b113aa36d4d5458a7bc004fe33ec2044c9bc0d10493ccdb440be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.31-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

File hashes

Hashes for lsreader-0.0.31-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7cd3543446f030e0b22b0f40d4a5d9e779e9238752ae25b0ae8c3c696458fa74
MD5 afb2a3dee563809825957f766084beee
BLAKE2b-256 0c42c36067f481ff11cf33e1fd28997b4bd7cc322987c6621cb0c3902d9cb583

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.31-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 821.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for lsreader-0.0.31-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a47df357261d13fe161a2ab9714134ffeb5ea5254f5d3fd3c56df7ed520b0f7f
MD5 0b4e48382db7cc1e44528de01fd7ab69
BLAKE2b-256 fc99a8eda9a9985f3f392e6d9ff93caf17b8220c6391879f195a40f2cf9829d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.31-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.0

File hashes

Hashes for lsreader-0.0.31-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 aeace3b0b35462ed6b60d1865243b894a0ed95fe22f470d6e13342dae4b4afed
MD5 bbd8b068a3bbc3d917a1531708ae0b47
BLAKE2b-256 4eed44353b51fcbf46a53d6a2767cd3d734eda9f8c93c74c77a6b7d72b781305

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.31-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 821.0 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.0

File hashes

Hashes for lsreader-0.0.31-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6f262ed612210f71501a3285a5431b70941a4f9fd462eb5bfd08142f8997efc0
MD5 29ca71d6d904d59455a86edbf91a7fc4
BLAKE2b-256 ae3c32e1a53f07ea775c02e8a03e502c20a752e9469e4bb22a9df9d078b4a6c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.31-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.0

File hashes

Hashes for lsreader-0.0.31-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 96cbd27d4271cf88718641ce8316099d199408b5904c5d65e48ffa9f0e655361
MD5 e0e0b34809e53c663524b274cb9ecaba
BLAKE2b-256 e2ae0949c32cddab5f77e7516b1379b249e7553b1ae3f433defdebcd38ade61f

See more details on using hashes here.

File details

Details for the file lsreader-0.0.31-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.0.31-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 821.0 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.5.0

File hashes

Hashes for lsreader-0.0.31-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 22a6d86deb6fd87dfdc95df0a84d2c4e3ad0dc9f34d46fae2288b9a87230b47f
MD5 dea7a5590b5e4a593f805f41a414c4bf
BLAKE2b-256 f7066cae3eac53f537020e52c561d330cf9dc7edf9a00ad5f4f301f791ae0a91

See more details on using hashes here.

File details

Details for the file lsreader-0.0.31-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: lsreader-0.0.31-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.5.0

File hashes

Hashes for lsreader-0.0.31-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c5c52ef94cd23cdfa7830db419e8762550b5b25c3b7181a95a412a608e9fdf35
MD5 a1d7e462d0686078364f97e58e2ec969
BLAKE2b-256 686aba67aa96dbc19bbe177daf4b2e7f935eeb8e74f769978d32893c1a387207

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