xrt
xrt copied to clipboard
Calculating crystal reflectivity without constructing a beamline
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!