Skip to content
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

Clarification of Experiment parameters ndir, idir and sampleor #137

Closed
codedump opened this issue Jul 7, 2022 · 1 comment
Closed

Clarification of Experiment parameters ndir, idir and sampleor #137

codedump opened this issue Jul 7, 2022 · 1 comment

Comments

@codedump
Copy link

codedump commented Jul 7, 2022

Hello,

I have questions regarding the usage of the experiment description class.

I'm new to both xrayutilities and to X-ray data analysis, so I probably make a perfect combination of opinionated and clueless :-) I apologize in advance for that ¯\_(ツ)_/¯

I am trying to understand the parameters of xrayutilities.Experiment, respectively xrayutilities.HXRD. In particular I'm stuck at the exact meaning of idir (inplane direction), ndir (sample normal) and sampleor (sample "orientation").

I understand that idir is the direction of the X-ray beam relative to the sample, in a lab coordinate system (typically the Y axis in a SPEC-like setup).

But I don't understand the meaning of ndir and sampleor, in particular inhowfar they differ from one another.
ndir is the "surface normal of [my] sample", and needs to be perpendicular to idir (at zero angles only, right?), but apparently it's sampleor that actually tells me where the surface of the sample is.

  • Documentatino states: "sampleor='det' means the surface is in the plane spanned by the inner most detector rotation and perpendicular to the primary beam." Our detector rotates (only) around Z+, see below. If I understand this correctly, it's the X'Y'-face of my sample that would be designated as "the surface" in this case, right? So xrayutilities would calculate the actual "in action" orientation of my sample using the Phi rotation data?

  • Documentation states: "sampleor='sam' means [...] along the innermost stample circles rotation direction". Our sample rotates along Phi lastly; Phi rotates along the X' direction of the sample (which, when all angles are zero, coincides with X of the lab). Does this mean that I'd be selecting the Y'Z' plane as "the surface"?

  • Why do I need to specify ndir at all, then? If all that's needed is a perpendicular direction, and it's ultimately not this parameter that determines the surface normal, surely one can be constructed? What difference does it make if I write, for instance, ndir=(1,0,0) or ndir=(0,0,1), or even ndir=(.5,0,.5), if the in-planedirection was along Y (i.e. (0,1,0)?

  • Is sampleor='x+' the same as sampleor='sam' here? Or would the former actually mean that the sample is always pointing "up" regardless of apparatus angles, and thus only be equivalent to 'sam' for zero angles?

I'll try to describe our experimental setup, maybe this makes things clearer.

The experimental setup

Here is the experimental setup I'm trying to work with. I also apologize in advance for my ASCII art skills :-) Apparently it's a four-circle setup (angles Phi, Omega, Chi, 2-Theta), approximately like this:


Lab coordinate system and angles

          (Phi)
            x+   z- 
            |   /
            |  /
            | /                                      / /  detector
    y+______|/______y-  (Chi)                       (_)/
            /                                     . 
           /                                    .
          /                                   .
         z+                                 . reflected-beam
       (Omega)                            .
    (2-Theta)                           .
                                      .
                                    .
                           +------.-+
   incident-beam          /     .  /|
   -------------------------- .   / |
                        /        /  |
                       +--------+   +
                       |        |  /
                       |        | z'   sample
                       x'       |/
                       +-----y'-+
	
	
  A: Situation at all sample angles zero
     Detector angle 2-Theta non-zero
             
			 
			 
			 
			  
                                      / / detector
                                     (_)/
                                     .
                                    .
                                   . reflected-beam
                                  .
                                 .
                                .
                               .+ 
                             /. | \
  incident-beam            / .  |   \
  -----------------------/--    +     \ 
                       /      /  \      +
                      +     /      \    |
                      |   /          \  z'
                      | /              \+
                      +               /
                        \           y'
                          \       /
                            x'  /
                              +



 B: Situation at Omega > 0 (e.g. for a Theta-TwoTheta scan)
 

The sample and its coordinate system

  • the sample surface is the one initially facing "up" in the cartoon above, i.e. parallel to the YZ-plane of the lab system
  • sample coordinate system is X', Y', Z' as depicted on the edges of the sample in A, i.e. same as the lab coordinate system when all angles are in starting position

Angle definitions of the sample; from outer circle to inner circle:

  • Omega: sample rotation around the Z+ axis (angle between sample surface along Y, and the Y axis itself)
  • Chi: large goniometer circle, rotates the sample around Y'+
  • Phi: innermost circle, sample rotation around X'+

Detector rotation:

  • 2-Theta: detector rotation around Z+ (angle between reflected beam and incident beam (small for situatin A, large for situation B), describes rotation of the detector around Z+.

Thanks in advance for any hints.

Cheers

@dkriegner
Copy link
Owner

dkriegner commented Jul 9, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants