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

from lsreader import D3plotReader
from lsreader import DataType as dt
from lsreader import BinoutReader

# D3plotReader
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)

# BinoutReader
data_path = your/binout/file/path
br = BinoutReader(data_path)

res = BinoutReader.is_valid(data_path)
print(res)

branches = br.get_branch()
for branch in branches:
    print(branch, end=',')
print("")

br.set_branch('nodout')
ids = br.get_id()
for id in ids:
    print(id, end=',')

br.set_id(1787)
br.set_component('x_acceleration')
x_array = br.get_x_array()
y_array = br.get_y_array()
out_path = your/output/path
BinoutReader.write(output_path, x_array, y_array)

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.11-cp37-cp37m-win_amd64.whl (292.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

lsreader-0.0.11-cp37-cp37m-manylinux2010_x86_64.whl (701.0 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.11-cp36-cp36m-win_amd64.whl (292.2 kB view details)

Uploaded CPython 3.6mWindows x86-64

lsreader-0.0.11-cp36-cp36m-manylinux2010_x86_64.whl (701.0 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

lsreader-0.0.11-cp35-cp35m-win_amd64.whl (293.0 kB view details)

Uploaded CPython 3.5mWindows x86-64

lsreader-0.0.11-cp35-cp35m-manylinux2010_x86_64.whl (701.0 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

File details

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

File metadata

  • Download URL: lsreader-0.0.11-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 292.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4

File hashes

Hashes for lsreader-0.0.11-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 37e6bdc2788231b0be2559ff589a2143b607d9d6bc9505fc87868168487ceaac
MD5 a238fec7bc51b62c1fa490c8aacaa696
BLAKE2b-256 3b05ce833c43f393d652ed7331ec755e57bcb709525788ecb008b2afbe8d2540

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lsreader-0.0.11-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 24b69a28c4edae9d352c4152e05ce0627f8e6834191256928bded4641a9f715d
MD5 5cf3acfaea1722484f54913a81fa900e
BLAKE2b-256 43d66cf8e34b2e366de74db1d7910d4067c92f14bcd4655ad47873bbfc721ddd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.11-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 292.2 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.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.0

File hashes

Hashes for lsreader-0.0.11-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 63a6b6f69dd293ab71c0ac30d79cc3e3073cb58c0f1fa12a7d4ad7c2d1d1e9a6
MD5 e0216ef611d3d1a740d74b51d4451517
BLAKE2b-256 8f63134764b1c730cae78bf741322218b6da74df6ddf89dd8894361a7ef38105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.11-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 701.0 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.0

File hashes

Hashes for lsreader-0.0.11-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3e52d8e6a391b18197f5b216207c63e3d0cd4e610e87bcf8ff153e3fb410d7bb
MD5 e0941842f5f3952c11e1ec6ce34b8ee9
BLAKE2b-256 a688e9f4e3fd627b5585a471efd77b657009991e039fda026f253ce15e971a06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.11-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 293.0 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.5.0

File hashes

Hashes for lsreader-0.0.11-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 4922ec22a4165f38aedb17231c897a7900134abb01194c7c1c1eac433a75ff24
MD5 b64f5ee27e2925a46630a69dd4c31c1e
BLAKE2b-256 27b8cdfbab0c7d78a229d4f6d8ba6b64d510df175126ebed9b48722dcf1c18a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsreader-0.0.11-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 701.0 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/18.2 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.0

File hashes

Hashes for lsreader-0.0.11-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dde455962ff8b6586ee7f92a00fa7b727d1b3ce9a3fe81f609e6c3e8bb7d9fce
MD5 cb4066b4656ac18f6636c2639a469e56
BLAKE2b-256 dfe7591cdfabfb5758981652790dcd9ebda0b065910d0ec6df23f1f694945ecd

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