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 100 such as stress, strain, id, history variable, effective plastic strain, number of elements 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.25-cp38-cp38-win_amd64.whl (707.8 kB view details)

Uploaded CPython 3.8Windows x86-64

lsreader-0.0.25-cp38-cp38-manylinux2010_x86_64.whl (886.8 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.0.25-cp37-cp37m-win_amd64.whl (710.4 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.0.25-cp37-cp37m-manylinux2010_x86_64.whl (887.6 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.25-cp36-cp36m-win_amd64.whl (710.3 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.0.25-cp36-cp36m-manylinux2010_x86_64.whl (887.6 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.25-cp35-cp35m-win_amd64.whl (710.4 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.25-cp35-cp35m-manylinux2010_x86_64.whl (886.8 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 707.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for lsreader-0.0.25-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9c7a8d2ec551bc2fbbd8ba587b93fdb1408dc6460037c51f66a6ed8d8813f5ef
MD5 e858ca90ae37de79ffe29e829bd2a187
BLAKE2b-256 f28c6b1d3ab893b7b619ac8579839a57a3843c481ad6e91f0bec985ebb306e27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 886.8 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for lsreader-0.0.25-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 893d6b2a5eb79f29cca902da71199865e787a9139b9b777ca8b6f874fa2dbd29
MD5 13336c867dcc07e3c3fca24c95e5ee36
BLAKE2b-256 add1207cbb80373fb9c53aa4f00d751a34ace1363d5429f420ce643bee613819

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 710.4 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for lsreader-0.0.25-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d0091aa5e7287cf6deb5d28a88094dbf8e612d3d581cfe245e1b27ab973ec1dd
MD5 764398e667efa76b3c66e89c0a476be1
BLAKE2b-256 e8ecb9fc610b5c61201762624b05a2cdc10eaae9f35dab7f600eca5a2278f03f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 887.6 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

File hashes

Hashes for lsreader-0.0.25-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c01f65d730e6a40b1d06d3122e6bcc6b295ebb0cb3c00b00fefe0a9cdd811a57
MD5 1ca4a59f2c0452adb64637f9eb71431e
BLAKE2b-256 8aa7e09ea7dd9bb5e3ef4c0ca8e4c11d86e009b9f70736fbf71864e383e4723c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 710.3 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.23.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.0

File hashes

Hashes for lsreader-0.0.25-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 551fd84dce9adc74a7eb7e57e41c1a502277332c073dbf38a81c128293f4ad1e
MD5 e100dd3ebbb24294439411a5c9e926eb
BLAKE2b-256 e7dc6000e42c9279087478e08eccc3510d506f765cc80e0cafb8886da4a0f29b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 887.6 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for lsreader-0.0.25-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b4bbb72a250b90119d03e65a3b86076c1eacc66bac5c971c89fb4e3e0bedfbb1
MD5 7d416d675c6161eba9cbc94c5c7e7c12
BLAKE2b-256 672a6ace44656a0409177c8f33dcd0cf19e75d78e927f500c2695ce90f0924fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 710.4 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.0

File hashes

Hashes for lsreader-0.0.25-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 2c373e3bd48f3a900a3cd5168632950dffaab57a4ff4243de1237ab226d0ec9c
MD5 57eb368c43d9143fbc15a3b209bec5c9
BLAKE2b-256 c2e9d6fde7a9a377df128148dd95449eb53855afdf81e191e5137c7db44667ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.25-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 886.8 kB
  • 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.22.0 setuptools/20.10.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.5.2

File hashes

Hashes for lsreader-0.0.25-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2712e2c1791cf1feada455954c6ec9acd4a3bcd184e178fcbc1f9fa1f16d654e
MD5 785c718876e35de014be66486bbec8a8
BLAKE2b-256 aab887dc2f59d8b1015f7d40409b3d18130e9c88fbfc9e68b213d0d2c6f9ded8

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