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_flat

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

The Source_flat Component

Release: McXtrace 0.1_alpha A flat rectangular or circular surface emitting x-rays

Identification

  • Site:
  • Author: Erik Knudsen
  • Origin: Risoe
  • Date: September 25, 2009

Description

A circular or rectangular xray source. Spectrum may be either gaussian or uniform around a central wavelength/energy
or read from a datafile. Xrays are considered emitted uniformly into 4pi, but a square target retricts the beam to
that window and scales the beam intensity accordingly.
If an input spectrum datafile (spectrum_file) is not specified, the beam is restricted to emit photons between E0+-dE keV, or lambda0+-dlambda AA, whichever is given.
The input spectrum file should be formatted such that x-ray energy/wavelength is in the first column and the intensity in the second. Any preceding
lines starting with # are considered part of the file header. If a datafile is given, a nonzero E0 value indicates that is is parametrized by energy (in keV)
as opposed to wavelength (in AA). Wavelength is the default.
Flux is set in the unit photons/s

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
radiusmRadius of circle in (x,y,0) plane where x-rays are generated.0
yheightmHeight of rectangle in (x,y,0) plane where x-rays are generated.0
xwidthmWidth of rectangle in (x,y,0) plane where x-rays are generated. Overrides xmin and xmax.0
xminmLower bound of x-interval where photons are generated.0
xmaxmupper bound of x-interval where photons are generated.0
distmDistance to target along z axis.0
focus_xwmWidth of target.045
focus_yhmHeight of target.12
E0keVMean energy of xrays.0
dEkeVEnergy half spread of x-rays (flat or gaussian sigma).0
lambda0AAMean wavelength of x-rays.0
dlambdaAAWavelength half spread of x-rays.0
fluxpht/stotal flux radiated from the source0
gauss1Gaussian (1) or Flat (0) energy/wavelength distribution0
randomphase If nonzero, the phase of the emotted photon is random, i.e. source is fully incoherent. otherwise the value of phase is used.1
phase Set phase to something given.0
spectrum_file""

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