McXtrace logo

McXtrace - An X-ray ray-trace simulation package

ESRF; SAXSLAB Niels Bohr Institute DTU Physics


Project Status
 Project Partners
 Project People

 Mac OSX Installation
 Windows Installation

Mailing List



Minutes of Meetings

McXtrace Art

About McXtrace




McXtrace: Source_div Component

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

The Source_div Component

X-ray source with Gaussian or uniform divergence


  • Author: Erik Knudsen
  • Origin: Risoe
  • Date: November 11, 2009
  • Version: 1.25


A flat rectangular surface source with uniform or Gaussian divergence profile and focussing.
If the parametere gauss is not set (the default) the divergence profile is flat
in the range [-focus_ax,focus_ay]. If gauss is set, the focux_ax,focus_ay is considered
the standard deviation of the gaussian profile.
Currently focussing is only active for flat profile. The "focus window" is defined by focus_xw,focus_yh and dist.
The spectral intensity profile is uniformly distributed in the energy interval defined by e0+-dE/2 or 
by wavelength lambda0+-dlambda/2

Example: Source_div(xwidth=0.1, yheight=0.1, focus_aw=2, focus_ah=2, E0=14, dE=2, gauss=0)



Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
spectrum_file NULL
xwidth m Width of source  
yheight m Height of source  
focus_xw 0
focus_yh 0
dist 0
focus_aw rd FWHM (Gaussian) or maximal (uniform) horz. width divergence  
focus_ah rd FWHM (Gaussian) or maximal (uniform) vert. height divergence  
E0 keV Mean energy of X-rays. 0
dE keV Energy spread of X-rays. 0
lambda0 AA Mean wavelength of X-rays (only relevant for E0=0) 0
dlambda AA Wavelength half spread of X-rays. 0
flux 1/(s*cm**2*st*energy unit) flux per energy unit, Angs or meV 0
gauss 1 Criterion: 0: uniform, 1: Gaussian distribution of energy/wavelength 0
gauss_a 1 Criterion: 0: uniform, 1: Gaussian divergence distribution 0
incoherent 1
phase 0

Output parameters

Name Unit Description Default
sigmah rad parameter 'sigma' of the Gaussian distribution for horizontal divergence  
sigmav rad parameter 'sigma' of the Gaussian distribution for vertical divergence  
p_init - normalisation factor 1/'neutron_count'  
dist 0


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

Generated automatically by McDoc, Peter Willendrup <> / Tue Aug 16 12:59:11 2016

Last Modified: Tuesday, 16-Aug-2016 14:59:11 CEST
Search website mailinglist archive SVN repos McCode Trac