Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jadball opened this issue Aug 28, 2024 · 1 comment
Closed
Labels
theory This issue has a non-technical element

Comments

@jadball
Copy link

jadball commented Aug 28, 2024

(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!)

@pc494 pc494 added the theory This issue has a non-technical element label Aug 31, 2024
@hakonanes
Copy link
Member

Hi James!

Yes, my understanding agrees with yours here. The transformations you stack should give you the crystal directions in grain A that are parallel with [111] in grain B. Do you get expected results?

@pyxem pyxem locked and limited conversation to collaborators Sep 3, 2024
@hakonanes hakonanes converted this issue into discussion #513 Sep 3, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
theory This issue has a non-technical element
Projects
None yet
Development

No branches or pull requests

3 participants