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 2000 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.42-cp38-cp38-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.8Windows x86-64

lsreader-0.1.42-cp37-cp37m-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.1.42-cp36-cp36m-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.6mWindows x86-64

File details

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

File metadata

  • Download URL: lsreader-0.1.42-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 8.9 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.42-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f10c2c78bcd3eba6fb40bdb9e8fbcc89e70767b579d2bf5e6b49bd11c25aa974
MD5 b0be36af03b0c3003b941391d5a2a95a
BLAKE2b-256 6f37e213af5bd65b55bedbbbf69f28900f63009f44c18c9c39749d9f39095759

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.42-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 8.9 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.42-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 54270493012745de0e0d9f111e7af0af54ae3e8085bfbd41cdbaec41021605b3
MD5 fa7143f5788521692aba77bdefce4bbe
BLAKE2b-256 bce60a13c950157e91e854516d8c5f62d98f91be7357b84e67cbab00d67a3ec0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.42-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 8.9 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.42-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 5ae121c8d448779ae48a9c1a81d594095a4e1914670951d7e11129f9ad75d70d
MD5 bcb23cc0350eea95b06b4ee5433a7f18
BLAKE2b-256 c03233658bcd739d182824868c6220967d3d6f171bd5d2231ef9a57cab15bca1

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