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

Uploaded CPython 3.8Windows x86-64

lsreader-0.1.5-cp38-cp38-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

lsreader-0.1.5-cp37-cp37m-win_amd64.whl (932.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.1.5-cp37-cp37m-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.1.5-cp36-cp36m-win_amd64.whl (932.8 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.1.5-cp36-cp36m-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.1.5-cp35-cp35m-win_amd64.whl (933.0 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.1.5-cp35-cp35m-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 928.8 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.1.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bc8877fd0679b9ed8ac4f1115b177001ebef842876454c5f0d4592f0f7f81277
MD5 3ad0080a7a9b424bc05728acea687757
BLAKE2b-256 dd9fafa00c25e45ca7e9a68978e494c6b983bb560d329849adfac3b4300d68a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • 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.1.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 073bd8cd85bdd5a18c8306d0c459b3e4bc3b771846e7af3cbf303dcf897afa36
MD5 2bef6bad2602300cb45d46d5f03febc0
BLAKE2b-256 434a54672a485bf8f9d558003207de44b2ed81fcae8c7fa3393aba0de0c604ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 932.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.1.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5f50983d3d84e9f037dbc0794694774f315ab82ea9709fbb050f8130d78cbcd6
MD5 379b2e74e9047412130f772ccad31c16
BLAKE2b-256 42d3725477cd64490d45fdb90c7c3617474e36c9b1c4b9e1ebebf26f09379b09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • 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.1.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 481f204af2cee46f6f33a624261785427783408ea06a7c42a813da80ee72b65e
MD5 9c104677ae1aac9494df2f567c8ac423
BLAKE2b-256 f82ccc49ea55caaf5ad5c05b98067d704f7a9ef00267ef556a653c23066b3adc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 932.8 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/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.6

File hashes

Hashes for lsreader-0.1.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4bee8cb7a5c438aed4af65b119d40a5790a0cc39d5ea1fcf9c97b72380669646
MD5 6d9146c1efc28dd5c01f76a551c030d6
BLAKE2b-256 78fea505df9296be5e17e101d0d0373232ed0462ce0605d0be31eae2a3a5cfc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • 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.1.5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5dd0bbafc658ef528c3d10f0cff20cbdf8b27ee7c7c620680dd53176f9b6d9c4
MD5 cde22ba32df165d1d5efa73d199769bb
BLAKE2b-256 c855f7b957174deba6213371b4974233558f07618bc01de9c88eff05574e87e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 933.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.1.5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 566b33d0bf78660f1ce40fa0cb1b12d240e20906dd1ed1d6ad9cbf4a856fac55
MD5 e1a22e5e994397e6ab39d1f374ae09ba
BLAKE2b-256 a2b9d16b994f1457f42ae99297718ab4f73b8242dd4386d1fa95f1825cba1e6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.1.5-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • 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.1.5-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b29841c675fd899ba205702b62ace8334babb6376224e72eb9a753a451c04b5c
MD5 cbbcbd68fd9edf8d4c8caf1ad5d0431e
BLAKE2b-256 b0ea90960b40e30f4a8bffd2ef2f297d21ff15786eec883568b125c3127ff219

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