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

Uploaded CPython 3.7mWindows x86-64

lsreader-0.0.22-cp37-cp37m-manylinux2010_x86_64.whl (868.2 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.22-cp36-cp36m-win_amd64.whl (699.0 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.0.22-cp36-cp36m-manylinux2010_x86_64.whl (868.2 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.22-cp35-cp35m-win_amd64.whl (698.9 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.22-cp35-cp35m-manylinux2010_x86_64.whl (867.4 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.0.22-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 700.1 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.22-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0a704e54a1d8d22e5e2284f6dad2143a402e07962350b86e2261aef0fcccb1c9
MD5 ac255d14097b3c2895862e83d13423ed
BLAKE2b-256 8f1c86e0b8ea08bdc6de303b2e3dd3f585be2fd06a71d4fe71d40aacd65b0a22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.22-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 868.2 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.22-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5eee2ad15e4ea222dc88045b6659f70235290e164f6d930e33e3fc8cc2ac3fe9
MD5 ce9047158abe82cfbce3c59f4321255d
BLAKE2b-256 a0420b0a5d7c4209327d09fb0079e76a7b4cfb7cc8d7c030d521d960bfeb9078

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.22-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 699.0 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.22-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7e847d4beb077100d22953e395665d1e5c0f68f9708982e4b77d3b1950ab6a0f
MD5 42c6a448840e979fcae3247244cfa9ff
BLAKE2b-256 2fdf698df8e8eaf053ef01159e497280b2a4c6f5474d7404c97faebcf67f1d3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.22-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 868.2 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.22-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cae03a7c1d9feac3e949f04d3c57dfb1c238429beefd291dda2b24d74f7c78e8
MD5 bb61220a5d0b5a31118ec50d227519e5
BLAKE2b-256 c43f1019c84d7b6428298f9e5c1639c0ce0de635e09c4c0b9800c564158a6a6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.22-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 698.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.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.22-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 40d1c8ed0c003690833beb08c73424018d4297063c4dd9d47994bf3905acc970
MD5 6cc57b102dbdb4b21e0eff346a9f8207
BLAKE2b-256 a1cd8eef6880ea4dbc07844658ca46107f2fa5e2440a423f5d6e86a952dde4a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.22-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 867.4 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.22-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 868b3b733cd1cdffd1c47bad2b2f27a7ab27c2580588df11fa58167faad0c384
MD5 b4a49145c0a43b976d5624006e7be96b
BLAKE2b-256 b5b4316aa1eae38919d340e5ef8e9ae94ec2bc5c58e6d4ed40953ec8f8149b0f

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