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)

# 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.15-cp37-cp37m-win_amd64.whl (590.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.0.15-cp37-cp37m-manylinux2010_x86_64.whl (734.7 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.15-cp36-cp36m-win_amd64.whl (589.8 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.0.15-cp36-cp36m-manylinux2010_x86_64.whl (734.7 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.15-cp35-cp35m-win_amd64.whl (589.9 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.15-cp35-cp35m-manylinux2010_x86_64.whl (733.9 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.0.15-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 590.7 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.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for lsreader-0.0.15-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 bff2e208b61ba1529c8f04fb898afc5cf1116a57f349d7bbfcd1c8caa2a84515
MD5 d5af1248231ad7b948035912e2e8275f
BLAKE2b-256 3bef1f1a71c9f149eea895bacc6b4b70075857fbe49a7e1ffca5fe6640f0c81e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.15-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 734.7 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.15-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ac0e20444c7afcc5151de1267f9a60ae1c6798339bcc8648a33424e2076079c2
MD5 b395dbd804ecd8c70b537f6b80484f4f
BLAKE2b-256 fd43481ed9a6c4168c1cf5777e03edf8f4f6808564802f3438d6b1bf91d44f3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.15-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 589.8 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.42.1 CPython/3.6.0

File hashes

Hashes for lsreader-0.0.15-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 2cc507eed23db9f91145b736b6ae5d8ff5ba76a9149e6fc7f6a7c3f39904577a
MD5 8648bbea651478eac5b49543e8df8663
BLAKE2b-256 2729065cf9ccd4f17131bfda96dfd6e04995aa2ef14c474ce3c05e6487370216

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.15-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 734.7 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.15-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 07989256e259c63b4c104806272d784c68d281af2332abc14061481c400ba194
MD5 466fb1c32abc9a21e1ef2ef6aea2fcc1
BLAKE2b-256 870900d957599cfb1f605a4437641ead37d07f59ff7bbb373530ad323ebb729c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.15-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 589.9 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.22.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.5.0

File hashes

Hashes for lsreader-0.0.15-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b71db1bf202582377079f51bcfd480ab9a432d34b07574480c9dd5d4df699e0b
MD5 f8b9652c9c755e2529bd533f52ae8860
BLAKE2b-256 95bf60316ff97c86ecc05c1bab8cf4348c3b2acec0fee3ef2b49dfaa642d0d50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.15-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 733.9 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.15-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a4f08044741b2d2c3b99f5dc0b6be7d8374bc360803d9b71f62814de767847f8
MD5 5d00ffde4b2b9938019fc31468a8084a
BLAKE2b-256 9151e17bc7e3b1ea02e17595468ae45baa9f6991600ded6a537af5e9e3bbce57

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