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)
...
...
...
The examples and documents for this project is available here.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for lsreader-0.1.7-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 184feb4c3d1bb1a78974bd270e67d31654ca5f5d9efa6edc55e4d644f1faef36 |
|
MD5 | b2d0f19831b5c25dc67cd149ad8dde62 |
|
BLAKE2b-256 | b42fb72fbedf8bf246ef6764c8b344d29d11af662c4e6b3ed181ce5b59b00e11 |
Close
Hashes for lsreader-0.1.7-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c7ea273e210c195e096b911eaadfb6e48de43db7beff1a16fe2738428e825c8 |
|
MD5 | c4c9e4631b6b05458548a716cc28aeb1 |
|
BLAKE2b-256 | b9be18d4796f181af54dae8078bfd60c5717f69791218936a353fc84c74436e4 |
Close
Hashes for lsreader-0.1.7-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 266981190176a82d754fbadf4b03f7df78a4dc6ec01e97aa9b3e9716fdbdba73 |
|
MD5 | 9cc9f1399a0ea80fe4daaea433616fbb |
|
BLAKE2b-256 | 7f7a5bdb2c7112f8ca039dbea861c6ede213d0d5c919eab19e191f44f6cdea96 |
Close
Hashes for lsreader-0.1.7-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fba654d071387874e5130c74eefa96703946b60045b7b615ffbac56b4549698 |
|
MD5 | 6cb1b8f4d1f44f53590e0737f270fc61 |
|
BLAKE2b-256 | add60b67f625817de329677a07001412dcf002823fd9133b5eaf5015f970dbac |
Close
Hashes for lsreader-0.1.7-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b504adb9b732bb30c15fa898031ac908d3d9d3bd31b46c1f7366b54173554ba5 |
|
MD5 | 838338b85c92b28a7635c559f98fd51f |
|
BLAKE2b-256 | 4b3304a4ac84e662a3efb0818d30d2350b0d49f1feb9f65ab012631e6977613e |
Close
Hashes for lsreader-0.1.7-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 153b934dd89029da56a6aff0ac68182f54a4df9295014206bafbe69a43cc423a |
|
MD5 | 1c7cbe091d256c56e1881c97d6bdaf92 |
|
BLAKE2b-256 | 5f1dbd7aaa62975264a0e9a5ef826e741b5d5fa9dbe174d6b30a059cd19fd5a5 |
Close
Hashes for lsreader-0.1.7-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccd317397853492b6544170096baa26426022729dfd95225e50a23ba5a10a54f |
|
MD5 | 4fc7da114aefaf553e4a82ada9198bb5 |
|
BLAKE2b-256 | 5979c6cf10cafa2f2978b1f3da862ce53f3a8243919b4473175368faca07b355 |
Close
Hashes for lsreader-0.1.7-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 539f3afe487ed927c7bbdb0558e7b6def3ab413b516e15dc778b18c005f87bd1 |
|
MD5 | e1ed2f66fc3e1b15ea5f600fb078aadd |
|
BLAKE2b-256 | 1a480bd72cbe693363c110ee166d6dc0874cc9259846051ffcc1668c2f5e19f1 |