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

from lsreader import D3plotReader
from lsreader import DataType as dt
from lsreader import BinoutReader

# D3plotReader
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
data_path = your/binout/file/path
br = BinoutReader(data_path)

res = BinoutReader.is_valid(data_path)
print(res)

branches = br.get_branch()
for branch in branches:
    print(branch, end=',')
print("")

br.set_branch('nodout')
ids = br.get_id()
for id in ids:
    print(id, end=',')

br.set_id(1787)
br.set_component('x_acceleration')
x_array = br.get_x_array()
y_array = br.get_y_array()
out_path = your/output/path
BinoutReader.write(output_path, x_array, y_array)

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.19-cp37-cp37m-win_amd64.whl (698.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.0.19-cp37-cp37m-manylinux2010_x86_64.whl (861.8 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.19-cp36-cp36m-win_amd64.whl (697.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.0.19-cp36-cp36m-manylinux2010_x86_64.whl (861.8 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.19-cp35-cp35m-win_amd64.whl (697.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.19-cp35-cp35m-manylinux2010_x86_64.whl (861.0 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.0.19-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 698.6 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.19-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 59cc178a1976d9f5399726a1fad362e650677f9c55042e8f8273fed144596295
MD5 4d3be3e297a2e851b388a5716a7cd5f0
BLAKE2b-256 5cf17605442293df16a0190b1ece8142b2ac93414b059c1ef6543e19ac422d73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.19-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 861.8 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.19-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 93e0d21b4ca73bc6f1ed10adb45f301643c1d5f986077438a98b6acdee5d76d6
MD5 a6b2bcd97a6368ffd294e0b993361f78
BLAKE2b-256 400d30d626cf0573a5491c3f55e07ca149f888963ae32e24909b473ab2befcea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.19-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 697.6 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.19-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a24901a022b5afda09204acdc87b64c75aca295d712c7027ecee8536839cf4cf
MD5 94c81bb15111cbeefed092e5db8f6b69
BLAKE2b-256 d5fa2a8d268376bd9fcf6e94d2f2045d5f02700341b926e4acaa0c497fe0a307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.19-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 861.8 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.19-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d4fef6ee1713395718288ca0a33c954419e77862569d0ebcdb4b2fa5031d11b2
MD5 0c2260b3bc1b251413acf138b2dac67b
BLAKE2b-256 bf6c5f325d78a3802f85f222932ca04f81feacb8fad910d03392c8c0990b2294

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.19-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 697.6 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.19-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 fe12ccc0b45b34be62c60b54d258d91aa48864ca926fe341cf5dd676ef82c453
MD5 20349f9b6e18ee56f20a7f3373d5a804
BLAKE2b-256 620df32058a4c7bf349e6142793e1016c78045122f57f9080889d95fda11dccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.19-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 861.0 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.19-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ce20002dc04948f49dfae784d1bcead6b39a3838be16c22c35c1d26e77e637cc
MD5 50411c6486aa545a17cf8be1faea15b1
BLAKE2b-256 464e0c79ef509466955afe4d19d0978bc5d336fa80b6e11874708830ea605536

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