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: Res_monitor Component

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

The Res_monitor Component

Monitor for resolution calculations

Identification

  • Author: Kristian Nielsen
  • Origin: Risoe
  • Date: 1999
  • Version: $Revision$
  • Modification history:
    • EF, 16th Apr 2003: imported from Monitor_nD to enable many shapes

Description

A single detector/monitor, used together with the Res_sample component to
compute instrument resolution functions. Outputs a list of neutron
scattering events in the sample along with their intensities in the
detector. The output file may be analyzed with the mcresplot front-end.

Example: Res_monitor(filename="Output.res", res_sample_comp=RSample,
          xmin=-0.1, xmax=0.1, ymin=-0.1, ymax=0.1)

Setting the monitor geometry.
  The optional parameter 'options' may be set as a string with the
  following keywords. Default is rectangular ('square'):
    box                       Box of size xwidth, yheight, zdepth
    cylinder                  To get a cylindrical monitor
                               (diameter is xwidth, height is yheight).
    banana                    Same as cylinder, without top/bottom,
                               on restricted angular area
    disk                      Disk flat xy monitor. diameter is xwidth.
    sphrere                   To get a spherical monitor (e.g. a 4PI)
                               (diameter is xwidth).
    square                    Square flat xy monitor (xwidth, yheight)

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
res_sample_comp no quotes Name of Res_sample component in the instrument definition  
filename string Name of output file. If unset, use automatic name 0
options str String that specifies the geometry of the monitor 0
xwidth m Width/diameter of detector .1
yheight m Height of detector .1
zdepth m Thichness of detector 0
radius m Radius of sphere/cylinder monitor 0
xmin m Lower x bound of detector opening 0
xmax m Upper x bound of detector opening 0
ymin m Lower y bound of detector opening 0
ymax m Upper y bound of detector opening 0
zmin m Lower z bound of detector opening 0
zmax m Upper z bound of detector opening 0
bufsize 1 Number of events to store. Use 0 to store all 0
restore_neutron 1 : If set, the monitor does not influence the neutron state 0

Output parameters

Name Unit Description Default
DEFS struct structure containing Monitor_nD Defines  
Vars struct structure containing Monitor_nD variables  
buffer_index long number of recorded events  

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