Skip to content
Discussion options

You must be logged in to vote

@LeoDanninger,

Your understanding of the first point is incorrect. There is no "specific color [assigned] to a specific direction of the lab frame". The color is based on what crystal direction is parallel to a fixed lab direction of interest.

I provide a small script that hopefully illustrates this with the example of a cubic lattice. The cube is rotated to match the lattice frame of the orientation, whereas the axes shown in ParaView correspond to the lab frame. The chosen IPF coloring selects the $z$-axis (i.e. the vector (0,0,1) in the lab frame) as the reference, marked by the gray arrow.

import numpy as np
import pyvista as pv
import damask

def IPF_colored_cube(O, labdirection):
    

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LeoDanninger
Comment options

@eisenlohr
Comment options

Answer selected by LeoDanninger
@LeoDanninger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants