McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Share

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tutorial

Workshops/conferences

Developments
 Platforms

Links

Report bugs

SVN

McStas Ubuntu live-dvd


Single_crystal

[ Identification | Description | Input parameters | Output parameters | Links ]

The Single_crystal component

Mosaic single crystal with multiple scattering vectors.

Identification

  • Author: KN
  • Origin: McStas release
  • Date: December 1999
  • Version: 1.17

Description

Single crystal with mosaic. Delta-D/D option for finite-size effects.
Rectangular geometry. Multiple scattering and secondary extinction included.
The mosaic may EITHER be specified isotropic by setting the mosaic input
parameter, OR anisotropic by setting the mosaic_h, mosaic_v, and mosaic_n
parameters.
Crystal structure is specified with an ascii data file. Each line
contains seven numbers, separated by white space. The first three numbers
are the (h,k,l) indices of the reciprocal lattice point, and the last
number is the value of the structure factor |F|**2, in barns. (The rest of
the numbers are not used; the file is in the format output by the
Crystallographica program).

  Overview of algorithm:

  (1). The neutron intersects the crystal at (x,y,z) with given
       incoming wavevector ki=(kix,kiy,kiz).

  (2). Every reciprocal lattice point tau of magnitude less than 2*ki
       is considered for scattering. The scattering probability is the
       area of the intersection of the Ewald sphere (approximated by
       the tangential plane) with the 3-D Gaussian mosaic of the point
       tau.

  (3). The total coherent scattering cross section is computed as the
       sum over all tau. Together with the absorption and incoherent
       scattering cross section and known potential flight-length
       l_full through the sample, we can compute the probability of
       the four events absorption, coherent scattering, incoherent
       scattering, and transmission.

  (4). Absorption is never simulated explicitly, just incorporated in
       the neutron weight.

  (5). Transmission in the first event is selected with the Monte
       Carlo probability p_transmit, which defaults to the actual
       transmission probability. After the first event, transmission
       is selected with the correct Monte Carlo probability.

  (6). Incoherent scattering is done simply by selecting a random
       direction for the outgoing wave vector kf.

  (7). For coherent scattering, a reciprocal lattice point is selected
       using the relative probabilities computed in (2), and the
       weight is adjusted with the contribution from the structure
       factors (this way all reflections will get equally good
       statistics in the detector).

  (8). The outgoing wave vector direction is picked at random using
       the intersecting 2-D Gauss computed in (2). The vector is
       normalized to the length of ki (elastic scattering) to account
       for the error caused by the planar approximation of the Ewald
       sphere.

  (9). The process is repeated from (2) with kf as new initial wave
       vector ki.

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
reflections string File name containing structure factors of reflections  
xwidth m Width of crystal  
yheight m Height of crystal  
zthick m Thichness of crystal (no extinction simulated)  
delta_d_d 1 Lattice spacing variance, gaussian RMS  
mosaic arc minutes Crystal mosaic (isotropic), gaussian RMS -1
mosaic_h arc minutes Horizontal (rotation around Y) mosaic (anisotropic), gaussian RMS -1
mosaic_v arc minutes Vertical (rotation around Z) mosaic (anisotropic), gaussian RMS -1
mosaic_n arc minutes Out-of-plane (Rotation around X) mosaic (anisotropic), gaussian RMS -1
ax  
ay  
az  
bx  
by  
bz  
cx  
cy  
cz  
p_transmit 1 Monte Carlo probability for neutrons to be transmitted without any scattering. Used to improve statistics from weak reflections -1
absorbtion barns Absorbtion cross-section per unit cell at 2200 m/s 0
incoherent barns Incoherent scattering cross-section per unit cell 0

Output parameters

Name Unit Description Default
hkl_info  

Links


[ Identification | Description | Input parameters | Output parameters | Links ]

Generated automatically by McDoc, Kristian Nielsen <kristian.nielsen@risoe.dk> / Jan 22 2001


Last Modified: Tuesday, 22-Jun-2004 14:04:09 CEST
Search website freshmeat.net McStas site RSS feed mailinglist archive SVN repos McCode Trac