Input file writers and output file parsers for the crystal plasticity code DAMASK.
Project description
damask-parse
Input file writers and output file readers for the crystal plasticity code DAMASK.
Installation
pip install damask-parse
Notes
This is a work-in-progress. Currently, the only implemented function is to read the contents of an ASCII table file generated by the DAMASK post-processing command postResults
. More functionality will follow.
Roadmap
Readers:
- ✅
read_table
- ️✅
read_geom
- ✅
read_spectral_stdout
- ✅
read_spectral_stderr
- ❌
read_load
- ❌
read_material
Writers:
- ✅
write_geom
- ✅
write_load
- ✅
write_material_config
Utilities:
- ✅
get_header
- ✅
get_num_header_lines
Examples
Read an ASCII table file
The following example will read in the data from an ASCII table file. By default, this function will re-combine array columns (which are split into their individual components in the text file) into Numpy arrays.
from damask_parse import read_table
table_path = 'path/to/table/file.txt'
table_data = read_table(table_path)
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 Distribution
damask-parse-0.1.7.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for damask_parse-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ea5cdf475abe99399745a76830c1e279e2203d0556f4665440d5654a322567 |
|
MD5 | 7896679e5c70ef78c9e189cff3342558 |
|
BLAKE2b-256 | 5367fa0e593ce65e6528642e6fb9d9e8a085b512e05a765158d8b6e7a6c164fc |