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

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


McStas: Source_simple Component

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

The Source_simple Component

A circular neutron source with flat energy spectrum and arbitrary flux

Identification

  • Author: Kim Lefmann
  • Origin: Risoe
  • Date: October 30, 1997
  • Version: 1.9
  • Modification history:
    • KL, October 4, 2001
    • Emmanuel Farhi, October 30, 2001. Serious bug corrected.

Description

The routine is a circular or rectangular neutron source, which aims at a square target
centered at the beam (in order to improve MC-acceptance rate).  The angular
divergence is then given by the dimensions of the target.
The neutron energy is uniformly distributed between E0-dE and E0+dE.

This component replaces Source_flat, Source_flat_lambda,
Source_flux and Source_flux_lambda.

Example: Source_simple(radius=0.1, dist=2, xw=.1, yh=.1, E0=14, dE=2)

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
radius m Radius of circle in (x,y,0) plane where neutrons are generated. 0
height m Height of rectangle in (x,y,0) plane where neutrons are generated. 0
width m Width of rectangle in (x,y,0) plane where neutrons are generated. 0
dist m Distance to target along z axis.  
xw m Width(x) of target  
yh m Height(y) of target  
E0 meV Mean energy of neutrons. 0
dE meV Energy spread of neutrons (flat or gaussian sigma). 0
Lambda0 AA Mean wavelength of neutrons. 0
dLambda AA Wavelength spread of neutrons. 0
flux 1/(s*cm**2*st) Energy integrated flux 1
gauss 1 Gaussian (1) or Flat (0) energy/wavelength distribution 0
compat 1 Apply weighting/sampling as now obsolete Source_flat component 0

Output parameters

Name Unit Description Default
pmul  

Links


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

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Fri Feb 10 19:36:33 2012


Last Modified: Friday, 10-Feb-2012 20:36:33 CET
Search website freshmeat.net McStas site RSS feed mailinglist archive SVN repos McCode Trac