dkriegner / xrayutilities

xrayutilities - a package with useful scripts for X-ray diffraction physicists
http://xrayutilities.sourceforge.io
GNU General Public License v2.0
83 stars 29 forks source link

non-concentric sample and detector circles. #197

Closed brussel13 closed 1 month ago

brussel13 commented 1 month ago

diffractometer.pdf

Greetings. We are preparing for an experiment at 1-ID of the APS. The diffractometer is configured as illustrated in the attached pdf. The detectors shown under the red X are not going to be in place. We will use the detector positioning in the green circle on the left. It's motion is not concentric with the center of the sample goniometer (circled in green on the right). It is centered on the direct beam significantly downstream of the sample. There is also a radius from the direct beam to specify. Is there an obvious way to specify this detector circle and radius in the Qconversion class?

Thanks, Ross

dkriegner commented 1 month ago

Combining translations and rotations in the right order this should be straightforward. If a translation is inserted in the goniometer definition it shifts the rotation center of subsequent circles (this makes the calculations internally a bit slower but is usually not noticeable). So if i understand the geometry correctly then you might need only one translation and one rotation for this.