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

Uploaded CPython 3.8Windows x86-64

lsreader-0.1.9-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.1.9-cp37-cp37m-win_amd64.whl (962.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.1.9-cp37-cp37m-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.1.9-cp36-cp36m-win_amd64.whl (962.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.9-cp36-cp36m-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.1.9-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 958.1 kB
  • 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.9-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 400f729a68f547cfac36dfc9c87465b619e866dae5db6d086273f6a3b0663c33
MD5 017c89e937bef85d9a45076f4b36c950
BLAKE2b-256 6dba52860a8530c0103859b406b7ba772aa903604f66903c8400ef3e7f38da83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.9-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 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.9-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 df79de8a6512d6a75c3a8297cabd73aaf0f1208ebf59a5958c54673504377fd7
MD5 5ee91c288d53449f217783d252dc5655
BLAKE2b-256 8dc7546a5537cc0412a063ef2aba0e04e49e8533fe539c72b1c038a254aa3637

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.9-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 962.3 kB
  • 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/39.0.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0

File hashes

Hashes for lsreader-0.1.9-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 4a6a67a936076ec5e34839b2f86f365445199a2cf655cd245abf64cc0491719f
MD5 2e9083b8ee7877c9043afd20f510da6a
BLAKE2b-256 8ab4ee6bfe14fc49229756a5671c2e25b097c7080719d4c8f3bf5687c3c1cbb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.9-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 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.9-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 14c9b59c9fb0967f31e26180e42a87bf915326de4b8bd2179fd764845289f323
MD5 d07db974dce4e8f35dfdd2c1afad5162
BLAKE2b-256 52eb8962cf1cb7e31326cbefe08642b0aa1bb8268f8f3e45b51581eb07f8f1ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.9-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 962.1 kB
  • 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/28.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.0

File hashes

Hashes for lsreader-0.1.9-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1c6d1285f3e2f416bd6d03dca12efe574b03fc179d15c5ff6b25a9e44c401990
MD5 fac2ae471c164dcb6ef71c818e4ceff6
BLAKE2b-256 d36e2a4e71cb2a063399fa0bc61bba8cd806c3b0d227047f37522f19788098d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.9-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 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.9-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c4c8fb5c9ec976ebfae1e88fdc50ffb616bb44238ce4eaa8fc2604cb6324d9fa
MD5 7af1057b9d6711c8cfe2f0233f16f1e3
BLAKE2b-256 95e42f74d9cb87a4dceba41b78f3577c2a3ae40f9b50dff26bec9e50ee1cb6d0

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