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

Question about toroidally bent crystal in Laue geometry #182

Closed
luweb opened this issue Jun 26, 2024 · 6 comments
Closed

Question about toroidally bent crystal in Laue geometry #182

luweb opened this issue Jun 26, 2024 · 6 comments

Comments

@luweb
Copy link

luweb commented Jun 26, 2024

Hello, I was wondering if there is a way I could get a toroidally bent crystal in Laue geometry. I couldn't find that specific option built into oes, but is there an alternative approach you would suggest? I am asking because I am trying to simulate sagittal focusing with asymmetric Laue crystals.

Thank you very much for your support.

Best Regard,
Lucas

@luweb luweb changed the title Question about bent Laue toroid Question about sagittal focusing with asymmetric Laue crystals. Jun 26, 2024
@luweb luweb changed the title Question about sagittal focusing with asymmetric Laue crystals. Question about toroidally bent crystal in Laue geometry Jun 26, 2024
@kklmn
Copy link
Owner

kklmn commented Jun 26, 2024

Hi,

See the docs for BentLaue2D class and an example for it: examples/withRaycing/03_LaueMono/04_sagittal_bending.py.

@luweb
Copy link
Author

luweb commented Jun 28, 2024

Thank you Konstantin, that is very helpful. After playing with the BentLaue2D class I just have one more follow up question: Is there a built-in way to vary the sagittal bending radius? Or any alternative strategy to accomplish that? I was thinking about stacking multiple bent crystals together with different radii, but I am not sure if that is the best approach. Thank you!

@kklmn
Copy link
Owner

kklmn commented Jul 1, 2024

The easiest way is to assign to the Rs field of the optical element instance a new value. The best place for this is in a generator where you can loop over a list of predefined values. Look for generator in the supplied examples.

@luweb
Copy link
Author

luweb commented Jul 2, 2024

From what I understood about the generator is that it automatizes a sequence of ray tracing runs. Sorry for not being clear before, but what I meant by varying the sagittal bending radius was varying with respect to energy, so that rays of different energies will "see" different radii. The final geometry would be a "warped" toroid. Is it possible to implement something like that in xrt with generator or another method?

@kklmn
Copy link
Owner

kklmn commented Jul 3, 2024

You are free to implement any geometry by defining two methods: local_z(x, y) for surface height and local_n(x, y) for surface normal. If you don't want a double parabolic shape, you don't need this class (BentLaue2D), just build your own.

@luweb
Copy link
Author

luweb commented Jul 3, 2024

Got it, thank you very much for the guidance, I will try that!

@luweb luweb closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants