kklmn / xrt

Package xrt (XRayTracer) is a python software library for ray tracing and wave propagation in x-ray regime. It is primarily meant for modeling synchrotron sources, beamlines and beamline elements.
MIT License
84 stars 30 forks source link

Model of the distortion of the DCM #26

Closed yangfg-bsrf closed 5 years ago

yangfg-bsrf commented 6 years ago

The distortion of the DCM will cause the change of the resolution and flux of the transimitted light. I wonder if the XRT can perform this analysis now. thanks

kklmn commented 6 years ago

Yes, xrt can do ray tracing with distorted surfaces. An example for mirrors is here.

So far, we don't have Takagi-Taupin diffraction from distorted Bragg crystals. Roman has unofficially (without tests and documentation) implemented it for Laue. Note that none of other ray tracing or wave propagation tools has it.

So we can't provide beam degradation due to strain in the 1st crystals but geometrical factors are all there. See an example here.