Skip to content

Sanity check - direction from one crystal frame in another crystal frame #509

@jadball

Description

@jadball

(note: I am using the orix fork mentioned in #442 to fix mean orientation issues)

Hello! I was wondering whether I was doing this correctly.
Let's say I have some grains of phase Phase_B embedded in a larger grain of Phase_A. I want to investigate whether there's an orientation relationship between them.
Would the following approach work to plot a pole figure of the B grains with respect to grain A?

# what pole figure direction are we interested in?
pole_figure_direction = Miller(uvw=[1,1,1], phase=Phase_B)

# we have one Orix `Orientation` for grain A, and one Orix `Orientation` each for grains in B
B_direcs_in_A_frame = []
# iterate over grains in B
for orien_B in oriens_B:
    # get [111] crystal direction from grain B frame into lab frame
    B_direc_in_lab = ~orien_B * pole_figure_direction
    # rotate into the frame of the parent grain
    B_direc_in_A = orien_A * B_direc_in_lab
    B_direcs_in_A_frame.append(B_direc_in_A.data)

# then make a pole figure of B_direcs_in_A_frame...

Thanks in advance!
(oh, and thanks for your help with #468 , it worked!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    theoryThis issue has a non-technical element

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions