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)


McXtrace: Source_pt

[ Identification | Description | Input parameters | Links ]

The Source_pt Component

An x-ray point source

Identification

  • Site:
  • Author: Erik Knudsen
  • Origin: Risoe
  • Date: June 29th, 2009

Description

A simple source model emitting photons from a point source uniformly into 4pi. A square target centered
on the Z-axis restricts the beam to that aperture.
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 E¤0 value indicates that is is parametrized by energy ( in keV)
as opposed to wavelength (in AA). Wavelength is the default.
Flux is given in the unit photons/s

Example: Source_pt(dist=1,focus_xw=0.1,focus_yh=0.1, lamda=0.231, dlambda=0.002)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
focus_xwmWidth of target0
focus_yhmHeight of target0
focus_x0mx-cocordinate of target centre.0
focus_y0my-coordinate of target centre.0
fluxph/sTotal flux radiated from the source.0
distmDistance from source plane to sampling window.1
E0keVMean energy of xrays.0
dEkeVEnergy half spread of x-rays.0
lambda0AAMean wavelength of x-rays.0
dlambdaAAWavelength half spread of x-rays (flat or gaussian sigma).0
phaseradSet phase to something given.0
randomphase0/1If nonzero, the phase of the emotted photon is random, i.e. source is fully incoherent. otherwise the value of phase is used.1
gauss1Gaussian (1) or Flat (0) energy/wavelength distribution0
spectrum_filestringFile from which to read an input spectrum.""
verbose1Output more information runtime.0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on mcxtrace 3.5.24


Last Modified: Sunday, 06-Apr-2025 20:25:04 CEST
Search website mailinglist archive GitHub repos