Skip to content
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

problem with xrtBentXtal in Laue geometry #167

Open
luweb opened this issue Dec 29, 2023 · 5 comments
Open

problem with xrtBentXtal in Laue geometry #167

luweb opened this issue Dec 29, 2023 · 5 comments
Labels

Comments

@luweb
Copy link

luweb commented Dec 29, 2023

Hi, I am new to XRT and I am interested in the bent crystal reflectivity calculations at this point. I have tried to replicate pyTTE results with xrtBentXtal with no success.

This is what I am currently getting, for AlphaQuartz [100] in Laue transmission geometry:
image

This is my previous pyTTE result using the same parameters:
image

Thank you for your attention!
Any insights will be greatly appreciated.

Best,
Lucas

@yxrmz
Copy link
Collaborator

yxrmz commented Dec 29, 2023

Hi Lucas, thanks for pointing this out. There is indeed a problem with the predefined crystal classes init. Fix on the way.

@yxrmz
Copy link
Collaborator

yxrmz commented Dec 29, 2023

@luweb the fix is applied in 0f20cd5

@kklmn kklmn added the bug label Dec 29, 2023
@luweb
Copy link
Author

luweb commented Dec 29, 2023

Thank you so much for your prompt response, it seems it is working now!

On a side note, I just had a quick question: Is it possible to set the in-plane rotation angle of the lattice somehow? Unfortunately, I couldn't find the option in the gui, or in the documentation. I am looking for something like pyTTE's set_in_plane_rotation() method in the TTcrystal calss.

@yxrmz
Copy link
Collaborator

yxrmz commented Dec 29, 2023

It'll be easy to pass it to the original TTCrystal, we didn't modify it that much, all the underlying math is there. I could even add a corresponding input in the xrtBentXtal GUI, but I'm curious what's your use case?

@luweb
Copy link
Author

luweb commented Dec 30, 2023

Thank you @yxrmz, that would be extremely helpful!
We are trying to come up with a design for a high-resolution Laue spectrometer.
According to pyTTE, alpha quartz in Laue geometry is sensitive to those in-plane rotations. For more details, here is a link to my discussion with aripekka:
aripekka/pyTTE#15
So, in theory this would allow tunning the response of the crystal to achieve higher resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants