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

Mailing list

Search

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Links

Report bugs (GitHub)

Code-repository (GitHub)


McXtrace: Source_div_quasi

[ Identification | Description | Input parameters | Links ]

The Source_div_quasi Component

Release: McXtrace 1.6 Quasi-stochastic X-ray source with Gaussian or uniform divergence

Identification

  • Author: Mads Carlsen and Erik B Knudsen (erkn@fysik.dtu.dk)
  • Origin: DTU Physics
  • Date: Apr 21

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

The phase space sapnned by the generated X-rays is sampled by means of Halton-sequences, instead of regular
pseudo random numbers. This ensures that samples are evenly distributed within the phase space region of interest.

Example: Source_div_quasi(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.
NameUnitDescriptionDefault
spectrum_filestringFile from which to read the spectral intensity profile""
xwidthmWidth of source0
yheightmHeight of source0
focus_xwmWidth of sampling window0
focus_yhmHeight of sampling window0
distmDownstream distance to place sampling target window0
focus_awradStd. dev. (Gaussian) or maximal (uniform) horz. width divergence. focus_xw overrrides if it is more restrictive.0
focus_ahradStd. dev. (Gaussian) or maximal (uniform) vert. height divergence. focus_yh overrrides if it is more restrictive.0
E0keVMean energy of X-rays.0
dEkeVEnergy spread of X-rays.0
lambda0AAMean wavelength of X-rays (only relevant for E0=0)0
dlambdaAAWavelength half spread of X-rays.0
flux1/(s*cm**2*st*energy unit)Flux per energy unit, Angs or meV0
gauss1Criterion: 0: uniform, 1: Gaussian distribution of energy/wavelength0
gauss_a1Criterion: 0: uniform, 1: Gaussian divergence distribution0
randomphase0/1When=1, the X-ray phase is randomised1
phaseradSet to finite value to define X-ray phase (0:2 pi)0
verbose0/1Generate more output on the console.1
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


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

Generated on mcxtrace 3.10.2


Last Modified: Monday, 02-Nov-2026 22:21:08 CET
Search website mailinglist archive GitHub repos