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.12-cp38-cp38-win_amd64.whl (989.2 kB view details)

Uploaded CPython 3.8Windows x86-64

lsreader-0.1.12-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.1.12-cp37-cp37m-win_amd64.whl (994.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.1.12-cp37-cp37m-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.1.12-cp36-cp36m-win_amd64.whl (993.9 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.12-cp36-cp36m-manylinux2010_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.1.12-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 989.2 kB
  • 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.12-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 93c98af4b9ab9c5e51378d1edc6afb350d2837556967a070cc0b0edc7007946c
MD5 a186de835e8d96578133168b885267cd
BLAKE2b-256 af15ccbee4155045c5d4703e398e87dc89c0ba29c32b3af40d2ada22668f2086

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.12-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 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.12-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a68d99d90efcc9a8331d0da05d22ceea9b3d6ee416089e4753a7034bd2559876
MD5 82783f8c429f890ea62aae72a2e872e3
BLAKE2b-256 b6a0e4e4f47d6980b7613974ed603b538cf4d76a23778744225f81f56a5955d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.12-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 994.1 kB
  • 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.12-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f7860dfc4d8f9261deadadc46723eca73c23faf3bc6fcecac719b7a0282dc36b
MD5 adab155656f476a2a6bf4129b24a2773
BLAKE2b-256 9fbdcb97120a475885242ab7eae9c3e40c78c4dc3eb66f6133b7534c5be2ed21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.12-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 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.12-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 37dd8868164d50236bdfab5cddb401be67d3e8376c25816fee962e2297df2827
MD5 9422474ffa389c826409ea85a5e5f3de
BLAKE2b-256 705dc5498fd0d7735149d5e8d8ec30bc49c40e42b7dd3f6669cbc75cfc343be2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.12-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 993.9 kB
  • 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/28.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.0

File hashes

Hashes for lsreader-0.1.12-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 6b19fbff94ba9cd777966eb739b467ee0fc8690d4a256987d85d7a16ba1617da
MD5 24e46a9ef4f44dbca348215a4f62d258
BLAKE2b-256 2d7b78d7556b388e4ad78afc5098f7320b468919b26894cd455d8489db726dac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.12-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.3 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.12-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7858c6248e1908f2c3c1e2ad480d6061e24c5e1baa3c2c693fdc50d4249d8125
MD5 2607fa291eaf6160cfb8d8f04f755e8c
BLAKE2b-256 9304c25351ba5fb9bc51c9800c711e82f4370e13bdaad7f16d56b12a1bb0190d

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