-
Notifications
You must be signed in to change notification settings - Fork 30
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
Calculating crystal reflectivity without constructing a beamline #181
Comments
On the documentation page Tests for Materials one can see reflectivity curves for various asymmetry angles (alphas). The script that makes these curves is |
Thanks a lot! This solves my problem.
Konstantin Klementiev ***@***.***> 于2024年6月24日周一 16:00写道:
… On the documentation page Tests for Materials
<https://xrt.readthedocs.io/test_materials.html#test-materials> one can
see reflectivity curves for various asymmetry angles (alphas). The script
that makes these curves is tests/raycing/test_materials.py. Look for
compare_rocking_curves() in it.
—
Reply to this email directly, view it on GitHub
<#181 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDKPXCLMAKBQBIFSWQVSJMTZI7G2PAVCNFSM6AAAAABJZAFZO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVHA2TQOJRHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Another related question. |
The emergence direction for a general asymmetric case is given by the grating equation as explained in the docs with a reference to Sánchez del Río and Cerrina. |
I thought you didn't want any optical element, did you? The method |
Thanks a lot! I will try both ways, either implementing the formulas or
using reflect() method.
Konstantin Klementiev ***@***.***> 于2024年6月27日周四 20:09写道:
… I thought you didn't want any optical element, did you? The method
reflect() does the job: it finds a new propagation direction for each ray
and applies material reflectivity/transmittivity. As you don't want it, you
need to implement these formulas yourself.
—
Reply to this email directly, view it on GitHub
<#181 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDKPXCO5AZ6O76FWMXVLBNDZJP6IXAVCNFSM6AAAAABJZAFZO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUGUYTSNZRHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I hope to calculate energy spectra of multi-bounce monochromators with xrt. Since I only care about the spectrum and do not need real space information, I am trying to calculate without constructing a beamline. I tried racing.materials.crystal.get_amplitude and it worked well. When I input the array of incident angle, it returns the array of reflectivity. But one problem I encounter is that this function does not allow me to define an angle of asymmetry (alpha) for the crystal. I found in the documentation that there is a get_amplitude_pytte function, which allows to do this, but when I define alpha, the output seems to be always exactly the same as alpha=0, no matter how I change the alpha. Could you please provide some solutions? Thanks a lot!
The text was updated successfully, but these errors were encountered: