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.41-cp38-cp38-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.1.41-cp37-cp37m-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.1.41-cp36-cp36m-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.41-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.41-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.1.41-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 8.9 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.41-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a9bf87c16c5339025313abade7b17476a8412ed14bffc8f060dc9dc6f1931827
MD5 e4783a0ea9fdac3aa50740cb90bb7313
BLAKE2b-256 46b300d6532b7efd5403e763d5314fc06c2d6917f1dc4ab186206ef32c0fd828

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.41-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.41-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 785ff1e8ef1dc70670c66e8c617248d17526639c51f184c9e3a00b55334665d4
MD5 6cd87331bdec4864e440996b3b6adddf
BLAKE2b-256 40934f016f83bd2a0aad54dc34e9b0887719cedd529a43f63946df96e0d8aa88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.41-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 8.9 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.41-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c3c69ab8d91b7b4ad37d5748e9754210fa86b653d506f4151f58ef2c028813ef
MD5 073ede2c6c3a017d8622d38d39363755
BLAKE2b-256 979ee1dc9267398d4d6a5f2119e4eb54e6fe99b309fbc14c3a10a91ec5ff1ee1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.41-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.41-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5c8b43818204ffb3ce93dc8d4d838ca5539e7bd2be35504606e3f2d7a51a616d
MD5 6469ed09957f012a98217bd1591cd14a
BLAKE2b-256 b160eb6e739ea946936d0713c3d9015889f04872ec676ac1aa0348d00daedde5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.41-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 8.9 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.41-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4f0ce37299ce51a05b6489c4ef69a413b9ef02e0e3049449222fadffbefbb909
MD5 512e3eab11c7ae007c7fd543f228c736
BLAKE2b-256 e81f088fc15f707f788e26e70535f947eec274551e340025635784b149c9d9c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.41-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.41-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 723f5f9cbc0c6f4fb0d9f5d23f86b8a471be5e8ca88bc27c731259147753a750
MD5 a7f0b3573ecc2d8fd30ade5385817f38
BLAKE2b-256 f145d54b8e2f13f89846ffefc6c9cac8b0e871455c04f9c24e43a98922dae0ea

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