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_spectra

[ Identification | Description | Input parameters | Links ]

The Source_spectra Component

Specialized X-ray source for reading in SPECTRA 10 source definitions

Identification

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

Description

This is a source component for connecting SPECTRA 10-output files with McXtrace.
json-style SPECTRA 11 output files are not yet supported.

SPECTRA is an application software to calculate optical properties of synchrotron
radiation (SR) emitted from bending magnets, wigglers (conventional and elliptical)
and undulators (conventional, helical, elliptical and figure-8). Calculations
of radiation from an arbitrary magnetic field distribution are also available.
Parameters on the electron beam and the source can be edited completely on
graphical user interfaces (GUIs) and it is possible to show the calculation
result graphically. The energy spectrum and radiation power after transmitting
various filters and convolution of detector's resolution are also available.
See SPECTRA.

If the source is symmetric in x and/or y it is possible to speed up the spectra
calculations by only including one half-plane or quadrant. The other side/quadrants will then
be mirrored by McXtrace.

%VALIDATION

%BUGS
Absolute intensity of 4D (x,y,x',y') is not correctly normalized.

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
spectra_stem_xstrFilename stem of x-projection of source distribution. -n.xxx will be added where n is a serial number and xxx spectra_suffix.""
spectra_stem_ystrFilename stem of y-projection of source distribution. -n.xxx will be added where n is a serial number and xxx spectra_suffix.""
spectra_stemstrFilename stem of x,x',y,y'-source distribution distribution. -n.xxx will be added where n is a serial number and xxx spectra_suffix.""
spectra_suffixstrSuffix of spectra output files."dsc"
E0keVMean energy of X-rays.0
dEkeVEnergy spread of X-rays.0
EminkeVEnergy of low end of the Spectra-calculated data.
EmaxkeVEnergy of high end of the Spectra-calculated data.
nE1Number of steps in the spectra-calculations.
randomphase1If !=0 the photon phase is chosen randomly.1
phase1Value of the photon phase (only used if randomphase==0).0
nx1Number of grid points along x in datafiles. If zero this is computed from the files.0
ny1Number of grid points along y in datafiles. If zero this is computed from the files.0
npx1Number of grid points along x' in datafiles. If zero this is computed from the files.0
npy1Number of grid points along y' in datafiles. If zero this is computed from the files.0
initial_serial1First serial number of the series of spectra files.1
symmetricx1If nonzero the source is mirrored in the x-axis. This to allow smaller spectra-calculations.0
symmetricy1If nonzero the source is mirrored in the y-axis. This to allow smaller spectra-calculations.0
verbose1If non-zero output more warning messages.0
flag4d1Use either (0) x,y-projections or (1) full 4D x,y,x',y' datafiles.0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links

  • Source code for Source_spectra.comp.
  • Tanaka, J. Synchrotron Rad. (2001). 8, 1221-1228. https://doi.org/10.1107/S090904950101425X
  • http://spectrax.org/spectra/

[ Identification | Description | Input parameters | Links ]

Generated on 2023-12-19 19:37:45


Last Modified: Thursday, 16-May-2024 15:56:15 CEST
Search website mailinglist archive GitHub repos