Software Open Access

Kanapy: Synthetic polycrystalline microstructure generator with geometry and texture

Biswas, Abhishek; R.G. Prasad, Mahesh; Vajragupta, Napat; Hartmaier, Alexander

Kanapy is a python package for generating complex synthetic polycrystalline microstructures. The general implementation is done in Python with the performance critical part for the geometry module implemented in C++. The Python bindings for the code written in C++ are generated using the lightweight header-only library pybind11. The C++ part of the implementation utilizes the Eigen library for efficient linear algebra calculations. The texture module of Kanapy is implemented as MATLAB functions. It also utilizes several algorithms implemented in MTEX for texture analysis.

In Kanapy-v1, an efficient modeling strategy for generating the geometry of the synthetic microstructures using statistical data was presented. Some of the novel features provided include: modeling complex microstructures consisting of irregular grain shapes, particle (grain) packing through collision detection and response system, and collision handling through a two-layer collision detection scheme. Synthetic microstructures are a key aspect of the micromechanical modeling approach for the prediction of mechanical properties. Apart from microstructure geometry, a vital component of polycrystalline microstructures that has substantial influence on the material behavior is texture. Therefore, a synthetic microstructure can be considered incomplete without the information of texture. This is addressed in the current version of Kanapy by including new efficient texture reduction and orientation assignment algorithms to the already existing package.
Files (46.9 MB)
Name Size
kanapy-master.zip
md5:5d5e703340860107889b5f07ccea447e
46.9 MB Download
  • Biswas, A., Vajragupta, N., Hielscher, R. & Hartmaier, A. (2020). J. Appl. Cryst. 53, 178-187.

  • Biswas, Abhishek, et al. "Influence of Microstructural Features on the Strain Hardening Behavior of Additively Manufactured Metallic Components." Advanced Engineering Materials 21.7 (2019): 1900275.

  • Prasad et al., (2019). Kanapy: A Python package for generating complex synthetic polycrystalline microstructures. Journal of Open Source Software, 4(43), 1732, https://doi.org/10.21105/joss.01732

203
16
views
downloads
All versions This version
Views 203151
Downloads 1610
Data volume 699.4 MB468.9 MB
Unique views 156116
Unique downloads 149

Share

Cite as