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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size lsreader-0.1.29-cp36-cp36m-manylinux2010_x86_64.whl (1.6 MB) | File type Wheel | Python version cp36 | Upload date | Hashes View |
Filename, size lsreader-0.1.29-cp36-cp36m-win_amd64.whl (1.1 MB) | File type Wheel | Python version cp36 | Upload date | Hashes View |
Filename, size lsreader-0.1.29-cp37-cp37m-manylinux2010_x86_64.whl (1.6 MB) | File type Wheel | Python version cp37 | Upload date | Hashes View |
Filename, size lsreader-0.1.29-cp37-cp37m-win_amd64.whl (1.1 MB) | File type Wheel | Python version cp37 | Upload date | Hashes View |
Filename, size lsreader-0.1.29-cp38-cp38-manylinux2010_x86_64.whl (1.6 MB) | File type Wheel | Python version cp38 | Upload date | Hashes View |
Filename, size lsreader-0.1.29-cp38-cp38-win_amd64.whl (1.1 MB) | File type Wheel | Python version cp38 | Upload date | Hashes View |
Close
Hashes for lsreader-0.1.29-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f788ffb11be72571afe7dffae5c71ba9e4ed34fb9cfcb9263cf4999b85da03ff |
|
MD5 | cac1d30e3f0e17d9d94c7dcc1faad807 |
|
BLAKE2-256 | 5e892edf33b7dc0e6eb30d411de2777800adbdbbf52b0b4b6e5bc139c5bfc6de |
Close
Hashes for lsreader-0.1.29-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11490846f77a0c2857738865a2f30c4c6caff1f2bf5497fa378b17da4c09c3cb |
|
MD5 | 102a8649bdc5d49ab882696fdb5322e8 |
|
BLAKE2-256 | 1478d39959872dcbb2c7cf947e5c79ba4e7f6a2c0b3ef64c959eea253ecda867 |
Close
Hashes for lsreader-0.1.29-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 819c17dd8a6c1887eb7f1bd19a7c5e7befba5d9487fde5b682abe6bef1d7c343 |
|
MD5 | 2df5b818fe4adcacf3a57e265d9a2e8b |
|
BLAKE2-256 | b7614bf46e6f4e2575cf5fbffb9467dc2d58ea90101f4f34ce373fd00271d57f |
Close
Hashes for lsreader-0.1.29-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39680e6cd8da7bfef93b61379ef395d846043588a1bcb51d7f3e1ef32cc0a0bd |
|
MD5 | d96770ecf0397c0e85a5e6893b2dc801 |
|
BLAKE2-256 | 6898815a478cb891b4d133e551514fb0ccad0c290f14aefb6d19aeaef6f23edf |
Close
Hashes for lsreader-0.1.29-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c251ec0f1883bab75a996f40e5168369da7cd263476a774d284796fa47972a3d |
|
MD5 | a212feec94aa6c9c6c64ed8ea2935560 |
|
BLAKE2-256 | a385cd6342b06256bcdbfeb3ed6e07880f5036fa8db9ae99724199d7fa5fb57a |
Close
Hashes for lsreader-0.1.29-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d97d548c9c10bfd1313d4c075a7fa011675d5048ffef3a538acf96bd9206474 |
|
MD5 | eb8087fa7bf1b0ffd3cd441352c522cd |
|
BLAKE2-256 | bef73c420a9c0e03c719d6a49f072553cc53e9f68fd5d58226d405112399b8a2 |