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

Uploaded CPython 3.8Windows x86-64

lsreader-0.1.43-cp38-cp38-manylinux2010_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

lsreader-0.1.43-cp37-cp37m-manylinux2010_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.43-cp36-cp36m-manylinux2010_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.1.43-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.43-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 50603826804194fb4f264c2fd4666421bd2de94cb4350f34e31f85910a01c9ba
MD5 473b39e58bcaa6a9d484f8435851e997
BLAKE2b-256 1353a483d903770fe930300689c79828e51d0e9d1133936e50a32076bfa77fe5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.43-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.7 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.43-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4edec844dfc12ad49c4ab5a70b8f1c3af1ae84ad72aaabac80c130d669d4e9b5
MD5 6cce15462952fd696ef20a1eaaa06115
BLAKE2b-256 a2d61256ec2d986fd55b5ff784a645873c48731985063a49b3711645d1906422

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.43-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.43-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9e5ff63b7665f4a51d9715c4b1d5af15846897099e26ebb9e310c40560961f71
MD5 a77e32115549061c8105cb2fcc933581
BLAKE2b-256 76c916eab2b59f275faee3180dbbea7861199f80560de891e7bbac9821d834e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.43-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.7 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.43-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 65d33496f681c7aa3565b80405bc86fcbf90b8d3d7aafa88858febb108e1aa6d
MD5 4a27dd147a1c8341ba15cf2281ea8a49
BLAKE2b-256 605341c6321d954495eb79b3b5eb007625b9def96d27abe214e5e34bc520b495

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.43-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.43-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 38e787be353f802eef1812a717bbe8ff542b32d0f2f1ad92aaffb78c44f20f18
MD5 88f178891759a77a5fc2543e07fa2e25
BLAKE2b-256 bd61de06da36d2bb063b641307c6408478c474a621b828c33e1c665f5b89299e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.43-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.7 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.43-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 85a0178725bbb5283ee3b6d767e917a72c6e34fd537798d21785bcab10f11913
MD5 15ae76cf5ef2225fc3290c09968cca16
BLAKE2b-256 c36934393ef94ad9c84f058b99aacfc40fb834823e9e9f439173207df55839a4

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