oasys-kit / ShadowOui

10 stars 8 forks source link

Rays distribution in 'XRD capillary' #219

Closed SergeyRa closed 3 years ago

SergeyRa commented 3 years ago

After trying to simulate XRD at 2D detector, I found an unexpected behaviour of 'XRD capillary' widget. When number of rays in the XRPD arc is set to 1, the expected uniform azimutal distribution is generated (note that Lorentz polarization factor is switched off for clarity): 1 ray in arc However, when the number of rays in the XRPD arc is set to be >1, one can see an anomalous concentration of diffracted rays (note again that Lorentz polarization factor is switched off): 10 rays in arc CAPILLARY.zip

lucarebuffi commented 3 years ago

fixed in 1.5.104

lucarebuffi commented 3 years ago

A note on your example: the empty element, to work properly in the way you intended for, must have incident angle 0 and reflection angle 180.

I also modified the example to show you an alternative and more realistic simple case. CAPILLARY.ows.zip

SergeyRa commented 3 years ago

Many thanks!

lucarebuffi commented 3 years ago

You are the first known user of this widget, so you have a special treatment!