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 data by part set
num_shells = dr.get_data(dt.D3P_NUM_SHELL, ipartset_user=[1, 2])

# 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.1.30-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8Windows x86-64

lsreader-0.1.30-cp38-cp38-manylinux2010_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.1.30-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.1.30-cp37-cp37m-manylinux2010_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.1.30-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.30-cp36-cp36m-manylinux2010_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.1.30-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0

File hashes

Hashes for lsreader-0.1.30-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b30780a0e49f1af734d61bd9103d5f370d995fbd60191d64df52b227f77550b6
MD5 3d7075d40a3fb308b95f29b708c1ac5f
BLAKE2b-256 3abdbc6014130c5f3b8e4915839a1edcc1691017c3f9de3f12b0f748155b13a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.30-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.0

File hashes

Hashes for lsreader-0.1.30-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a1ff20edfe178e7487eed23bb76fdddac8eedb7bd141f0c4ca1e8f65cbbbf8ee
MD5 305c06e6d02b19325ed4d80fe3701082
BLAKE2b-256 17ed149902538c190d0884b75cae12f60b6c6ffdcd41b4bba978e884605048d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.30-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0

File hashes

Hashes for lsreader-0.1.30-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fabb91299e7914a592c6f6e0675d6cec8aa5e34c7886e8baee2869ba88cfbaa7
MD5 b11a6175270afa1e028d89f29fa251f1
BLAKE2b-256 11254680e608ad31d1618642b7ffb9178bed7ba525e88fa6ee24dfe0d3ccfac8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.30-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.0

File hashes

Hashes for lsreader-0.1.30-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8a174eacb83fda9158fb11a2b0e5428ccc72690364bc4fc166011dd566682362
MD5 83358729627460c7bb014928a1164d5f
BLAKE2b-256 8b471a3d4b0340701194a7e11ca258c6f8e705ecf91fc8100e387deff92c9e3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.30-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.6

File hashes

Hashes for lsreader-0.1.30-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 5a7e5893c8561bc9585fc870b89ff0abeb1a58021ba3ad7ed589d39de809d04a
MD5 90efbc6229bcf235b7de56fef86cbffb
BLAKE2b-256 f325f642aee77f64bcb3e161a13fdf6defc70739f7f2e0a543515c73af003d85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.30-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.0

File hashes

Hashes for lsreader-0.1.30-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f270f44f7f4c1b04867f7b205b4d879e1d54e913b502030895a0a405c307092b
MD5 82c2689e9edcaf7e3a959a2b7a6b2363
BLAKE2b-256 8b8c5401a23041731b67019b21b239da1b5b0f1310486f9f7036e102350d7cfd

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