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 100 such as stress, strain, id, history variable, effective plastic strain, number of elements 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 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.0.24-cp38-cp38-win_amd64.whl (707.5 kB view details)

Uploaded CPython 3.8Windows x86-64

lsreader-0.0.24-cp38-cp38-manylinux2010_x86_64.whl (891.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.0.24-cp37-cp37m-win_amd64.whl (709.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.0.24-cp37-cp37m-manylinux2010_x86_64.whl (892.1 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.24-cp36-cp36m-win_amd64.whl (710.0 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.0.24-cp36-cp36m-manylinux2010_x86_64.whl (892.2 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.24-cp35-cp35m-win_amd64.whl (710.0 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.24-cp35-cp35m-manylinux2010_x86_64.whl (891.4 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.0.24-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 707.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for lsreader-0.0.24-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 95396c67633be74b41ff5bb89eef2f3abcbbccc195f33053ce31178a28bb91cc
MD5 38f97bfb71ff4e0073183560805c1fbb
BLAKE2b-256 1fc70e9c7ff5f48dbcc4a8f217d319b1ff45691f34040fa33fd0bef388bb0409

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.24-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 891.4 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for lsreader-0.0.24-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6093ca23b1a798d19c7416c3383cf2969279e5d9044c55af79dc3f645e7662fe
MD5 d8c9b2b9a7f6f65bfa06cb15351a3621
BLAKE2b-256 41b62c19836d3587a9113acee42e38d86ac8396167ba4dd33f737fe0d0b027aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.24-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 709.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for lsreader-0.0.24-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 7ad5388603b56af6aabbf5e9d5d11cca133d8f795b366cfa74a1aeeea2cfaf90
MD5 78cc1b85e645b1e646e2e03e64b8fbe7
BLAKE2b-256 1b0114f173ac807cfaa972e287017b117e8388bec7cc78265e5bd19a00244a0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.24-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 892.1 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

File hashes

Hashes for lsreader-0.0.24-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3fac2e1adb3f79675a5298a85fbf39bf19bd4fa94fcec188b4b668bb45807981
MD5 68841905f3dea2b68a336218c0ae489f
BLAKE2b-256 640bd6a2fd74c9dee169091901d4376aca322cf2d1abef918b30cdea8a761485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.24-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 710.0 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.0

File hashes

Hashes for lsreader-0.0.24-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 bfe333062acdf1e458688b4620522b6db6e3d16014c7294691529b6a29b24fed
MD5 19394771ca0a4835c504b5183cc3d7f2
BLAKE2b-256 49a480373a2f25b6a69b9dd131df588acd7893f3d734f86d6af60e2418cf8d9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.24-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 892.2 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for lsreader-0.0.24-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dc5725019e8cbd1acafc1303d595d451307dc83710dd16d53e1e58a5f28ce769
MD5 e53fdfece2d88101d55e27b0d3b04097
BLAKE2b-256 375925bc35746b9a27dcfc8b1b82d795a5cc094d5cc48300d581895e10fc78c2

See more details on using hashes here.

File details

Details for the file lsreader-0.0.24-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: lsreader-0.0.24-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 710.0 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.0

File hashes

Hashes for lsreader-0.0.24-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 da2ca5c35f23b9e5f729cfd2969328463a6d60a40c8845d0af7d16fceb91e41c
MD5 7568beda3472efddf47e74bc37077030
BLAKE2b-256 87dd622ce7dbab5d3301d3c98cb136447b636dcf9c166eaf53f34e1325425507

See more details on using hashes here.

File details

Details for the file lsreader-0.0.24-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: lsreader-0.0.24-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 891.4 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/20.10.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.5.2

File hashes

Hashes for lsreader-0.0.24-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 58e656f4d3a1b45350599ca4f610090e2d4da6f28b700733b3094c5826fe2c5e
MD5 9d8154396e13100bb63c397b5d835e6f
BLAKE2b-256 86f5501fb846b51d246209dbd018b16fe2c768c4ac1dcaa3dc19be4a4fef5c4d

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