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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.0.33-cp37-cp37m-win_amd64.whl (874.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.33-cp36-cp36m-win_amd64.whl (874.2 kB view details)

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.33-cp35-cp35m-win_amd64.whl (874.0 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.33-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.33-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.0.33-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 871.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.33-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 756135542410dda471f0bbd9652b1022cf2570fcb0ba5751a7b94de73f7295b8
MD5 268ffe35daf0bb070993844935ff3378
BLAKE2b-256 142bdaaa59fabd01874f634b2c431361090f08b1007472a6394355a036681985

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.33-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.33-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 84a062e8bc75ccdf20c945f6a38af66027073e66d318a8e49134496f6e9adc4c
MD5 a16ebf33d88192e91ccf505c1e9107fd
BLAKE2b-256 d3045cfdfd9d4d023db9670296a405bb1a50d88d90520465dbb37b03be7b00a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.33-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 874.4 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.33-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 84b582497b4e2392372c3ac9ff2f4efe63c23ea44704673726e5c8cb29a4f267
MD5 5040e8dcac3bf2879d18c32d0d30f3a7
BLAKE2b-256 a8b8f22dda837569ae9942a088751e9021fb6dd2bd8a36d2b60c5312ca3db049

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.33-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.33-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fb49531fe5f30733f9d749e0eb0a15bc64bd163bfa77581a4dc413c5ce3f890b
MD5 b56039e546c875408236485591573fa7
BLAKE2b-256 2b621382f825993e69f7d4366b2bd9453e029e4a46676e76231236ed46395de9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.33-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 874.2 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.33-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1b51d179904d77228383f20fb0486210f245b804d66e8d1af759d122b2e05254
MD5 70190403fa1133c896ae2f553dedfd8f
BLAKE2b-256 2476e9af1e6ebf13461b38084096aed7949694a80c612687da4d4933774aa9ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.33-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.33-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6c9264eb755fe3ab074f8999509fc209bac1eb4c57eedd062ea4200e743e159a
MD5 a925de4ad1f2c37e5c56760f782f3d6e
BLAKE2b-256 a05be0e47fc06003395c35bfa9b8116d68fc77a2857dfe3b9cd0980c73ccf11f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.33-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 874.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.33-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b078517a22a3746bfd8990ad4fc14a2bdf971fda3cb2070a4cdbbc25419c7784
MD5 40f29eb0b13fbde419c3199853a7533b
BLAKE2b-256 ebab2f3482ae4cfba90462dcebb0b2942664d4829e1fa8d80ea36903ea23bc34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.33-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.33-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d820a36aad30a1430fadabd6e841a29da097a88d5eb9fd3182d862826a64bb38
MD5 457b47d158054af9e7462e45ede24347
BLAKE2b-256 02e645cd242cf1564bfba500f722861c0e24d6257f033326a3349a56ffe98ea7

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