Input file writers and output file readers for the crystal plasticity code DAMASK.
pip install damask-parse
- ✅ read_table
- ️✅ read_geom
- ✅ read_spectral_stdout
- ✅ read_spectral_stderr
- ❌ read_load
- ✅ read_material
- ✅ write_geom
- ✅ write_load
- ✅ write_material_config
- ✅ write_numerics_config
- ✅ get_header_lines
- ✅ get_num_header_lines
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)