Inverse Pole Figures¶
Inverse pole figures (IPFs) are used in materials science and crystallography to analyze the orientation of crystal grains relative to a specific direction in a material, such as the rolling or normal direction. Unlike traditional pole figures, which map crystallographic directions to a specimen's reference frame, IPFs show how a particular sample direction aligns with the crystallographic axes within individual grains. This information helps in understanding the material's texture, which influences properties such as strength, ductility, and anisotropy.
In this tutorial, we will work with data from the T11_02_ReXRandom
example, which simulates the grain recrystallization process of a single-phase anisotropic and cubic material. The microstructure is randomly generated and consists of 30 grains of 4 different types, each representing different energy ranges. By analyzing this simulated microstructure, we will learn how to visualize grain orientations using IPFs and gain insights into the texture development during recrystallization.
We will combine grain structure data from a MICRESS .korn
binary file with phase and orientation information from a .TabO
tabular file. After processing this data, we will generate IPFs for the grains and display them using Orix, a Python library for crystallographic analysis.
Step 1: Extract Grain Structure Data¶
First, we need to extract the spatial arrangement of grains from the .korn
binary file. Here, we load the grain structure data from the last time step of the MICRESS simulation.
Step 2: Load Orientation and Phase Data¶
Next, we load the phase and orientation data from the .TabO
tabular file corresponding to the same simulation time as the grain data.
This gives us a DataFrame containing information about each grain's phase and orientation (as quaternions) at the current time step.
Step 3: Map Grain Data to Orientation and Phase¶
We now map the grain numbers to their respective phases and orientations, combining the data from the .korn
and .TabO
files.
Step 4: Create a Crystal Map¶
Now, we create a crystal map containing the grain phases and orientations. This map will be used for visualizing the inverse pole figures.
The CrystalMap
object now holds the orientation and phase information, ready for plotting.
Step 5: Generate IPF Colors¶
Using Orix, we can map the grain orientations to colors based on the crystal symmetry (e.g., FCC structure). Here, we generate RGB colors for the grain orientations.
Step 6: Visualize the Grain Orientations¶
Now that we have the colors for the grains, we can plot the crystal map to visualize the grain orientations. Each color in the plot corresponds to a specific crystallographic direction.
Step 7: Add a Color Key to the Plot¶
To make the plot more informative, we add a color key that shows the crystallographic direction associated with each color.
The result is a plot where grain orientations are represented by colors according to the inverse pole figure (IPF). Each grain's orientation is mapped to a crystallographic direction, and the color key explains how the colors correspond to specific directions within the crystal structure.
Step 8: Generate Pole Density Plots¶
In addition to IPFs, we can create pole density plots to visualize the distribution of crystallographic directions within the grains. Here, we generate pole density plots for the FCC phase along the z-axis.
The pole density plot shows the distribution of crystallographic directions within the FCC phase along the z-axis. The color intensity indicates the density of orientations in each direction, providing insights into the texture development of the material.