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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.31-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.31-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.1.31-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.31-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2546d424f3eed9d70626d01d1db9cff4fda614490ca1aeb982cc570ccc5981ef
MD5 f45f59514498dbeb0bd9ab29c50dd0e9
BLAKE2b-256 2d906ccbfb6000b0aa6f7646af126f7ad39495fdadf170fb5d0ee508bfc728d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.31-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.31-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c37d7a4908431aee835eab21931e53fc23b7b211dbd76ac8b792259bc749c0ba
MD5 fb756caf1609ebc6d1b4bbb812f6d156
BLAKE2b-256 4da51be5031f26bb90b41d679e48893d2c1ba6ae107aa699c01a7c5582c6e9e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.31-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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.8

File hashes

Hashes for lsreader-0.1.31-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 322ac87745d85b58d0978c0792e1bd452c47e210baac99a9542faa494cc6f9d6
MD5 b75b3529d9f4266f1f781731611ecc1a
BLAKE2b-256 ae0f4d9795427d1414274e670c78d00f8fbcc4d40d97f83c899bb18ec527677c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.31-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.31-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e8a0e8784745804df9324aab34a7c9d5dbbed65c18cb8865e9d72498d3d38d69
MD5 77362c6cade571e05f3b84a340933a74
BLAKE2b-256 b9e9982ea19d77ee6ba870cd855541319daca2212ea9604d5577c9eb5ae83dc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.31-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.31-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d966e8ae9433c7d27fd946ea223040c7e4bdb5359c9917a4c3497106037c343d
MD5 88bee669d72cb29d8d298bc389a70c42
BLAKE2b-256 c483c8ce2a767c4044c8ab420cce3d7f74e4dc5a73a244df61bc9a5722cadb58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.31-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.31-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4d22e146ef98e11d1b547b34a1d5347f55e73cd132a0a29ed00f7cf8362a6882
MD5 acc724e9bce41c40cdec675255c5a3dc
BLAKE2b-256 1faad7907a3191393b96dd37fc530f43d82668185e59caa3327e99f7483caac1

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