This repository contains a complete workflow that connects Kanapy (microstructure generation) and DAMASK (FFT-based simulation).
This notebook is accessible via mybinder.org
To create a local copy on your hardware, follow the steps below.
git clone https://gitlab.ruhr-uni-bochum.de/Workflows/kanapy2damask.gitChange to the repository folder and create the environment using the provided file:
conda env create -f environment.ymlThis environment installs:
- DAMASK (from conda-forge)
- The latest Kanapy directly from GitHub
- The damask_python module from the GitHub/ICAMS fork with patches for interfacing with Kanapy
- pyiron_workflow, orix, and all visualization tools
$ conda activate ms-data(ms-data) $ jupyter labOpen
ebsd2kanapy2damask.ipynb
After completing the steps above, open the notebook in JupyterLab and execute the cells sequentially (1 → 8).
The notebook will:
- Load the EBSD file.
- Extract microstructure statistics.
- Generate a voxelized RVE with Kanapy.
- Build the data schema and DAMASK input files.
- Run the DAMASK simulation.
- Post-process the results (plots + VTK export).