McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Mailing list

Links

Search

Code-repository (GitHub)

Report bugs (GitHub)


McStas: Source_div

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

The Source_div Component

Release: McXtrace 0.1 X-ray source with Gaussian or uniform divergence

Identification

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

Description

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)

%VALIDATION

%BUGS

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
spectrum_file File from which to read the spectral intensity profile."NULL"
xwidthmWidth of source.0
yheightmHeight of source.0
distmDownstream distance to place sampling target window0
focus_xwmWidth of sampling window0
focus_yhmHeight of sampling window0
focus_awradStandard deviation (Gaussian) or maximal (uniform) horz. width divergence.0
focus_ahradStandard deviation (Gaussian) or maximal (uniform) vert. height divergence.0
focus_ar0
radius0
E0keVMean energy of X-rays.0
dEkeVEnergy half spread of X-rays. If gauss==0 dE is the half-spread, i.e. E\in[E0-dE,E0+dE], if gauss!=0 it's interpreted as the standard dev.0
lambda0AAMean wavelength of X-rays (only relevant for E0=0).0
dlambdaAAWavelength half spread of X-rays.0
flux1/(s * mm**2 *mrad**2 * energy unit) flux per energy unit, Angs or keV.0
gauss1Criterion: 0: uniform, 1: Gaussian distribution of energy/wavelength.0
gauss_a1Criterion: 0: uniform, 1: Gaussian divergence distribution.0
randomphase1
phase0
verbose1Output more information runtime.0

Output parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault

Links


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

Generated on 2022-02-07 20:46:44


Last Modified: Wednesday, 11-May-2022 22:46:11 CEST
Search website mailinglist archive GitHub repos