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

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tools
 Tutorial

Workshops/conferences

Developments

Links

Report bugs

Git

McStas Ubuntu live-dvd


McStas: Spot_sample Component

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

The Spot_sample Component

Spot sample.

Identification

  • Author: Garrett Granroth
  • Origin: Oak Ridge National Laboratory
  • Date: 14.11.14
  • Version: 1.20

Description

A sample that is a series of delta functions in omega and Q.  The Q is 
determined by a two theta value and an equal number of spots around the
beam center.  This component is a variation of the V sample written
by Kim Lefmann and Kristian Nielsen.  The following text comes from their 
original component.
A Double-cylinder shaped incoherent scatterer (a V-sample)
No multiple scattering. Absorbtion included.
The shape of the sample may be a box with dimensions xwidth, yheight, zthick.
The area to scatter to is a disk of radius 'focus_r' situated at the target.
This target area may also be rectangular if specified focus_xw and focus_yh
or focus_aw and focus_ah, respectively in meters and degrees.
The target itself is either situated according to given coordinates (x,y,z), or
setting the relative target_index of the component to focus at (next is +1).
This target position will be set to its AT position. When targeting to centered
components, such as spheres or cylinders, define an Arm component where to
focus at.

Example: spot_sample(radius_o=0.01, h=0.05, pack = 1, 
                    xwidth=0, yheight=0, zthick=0, Eideal=100.0,w=50.0,two_theta=25.0,n_spots=4)

WARNING: This is a contributed Component.

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
radius_o m Outer radius of sample in (x,z) plane 0.01
h m Height of sample y direction 0.05
pack 1 Packing factor 1
xwidth m horiz. dimension of sample, as a width 0
yheight m vert.. dimension of sample, as a height 0
zthick m thickness of sample 0
Eideal meV The presumed incident energy 100.0
w meV The energy transfer of the delta function 50.0
two_theta degrees the scattering angle of the spot 25.0
n_spots 1 The number of spots to generate symmetrically around the beam 4

Output parameters

Name Unit Description Default
StructVarsV  
VarsV  

Links


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

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Wed Apr 19 10:57:33 2017


Last Modified: Wednesday, 19-Apr-2017 12:57:33 CEST
Search website mailinglist archive GitHub repos