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: Undulator

[ Identification | Description | Input parameters | Links ]

The Undulator Component

Model of an undulator source

Identification

  • Author: Erik B. Knudsen
  • Origin: DTU Physics
  • Date: May, 2013.

Description

A undulator source model based on the derivation by K.J. Kim, AIP, conf. proc., 184, 1989. doi:10.1063/1.38046.

SOLEIL_PX2a U24
Example: Undulator( E0=12.65, dE=1, Ee=2.75, dEe=0.001, Ie=0.5, K=1.788, Nper=80,
lu=24e-3, sigey=9.3e-6, sigex=215.7e-6, sigepx=29.3e-6, sigepy=4.2e-6,
dist=29.5, E1st=12.400 )

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
E0keVCenter of emitted energy spectrum.0
dEkeVHalf-width of emitted energy spectrum.0
phaseradInitial phase of radiation.0
randomphase0/1If !=0 phase will be random (I.e. the emitted radiation is completely incoherent).1
EeGeVStorage ring electron energy [typically a few GeV).2.4
dEepercentRelative electron energy beam spread (sigma/Ee).0
IeARing current.0.4
BTPeak magnet field strength. Overrides K.0
K1Dimensionless deflection undulator parameter. When K >> 1 (ie B*lu is large) you get a wiggler.0
NperintNumber of magnetic periods in the undulator.1
lumMagnetic period length of the undulator aka lambda_u.16e-3
sigeymElectron ring beam size in vertical plane (rms).0
sigexmElectron ring beam size in horizontal plane (rms).0
sigepxradElectron ring beam horizontal divergence (rms).0
sigepyradElectron ring beam vertical divergence (rms).0
focus_xwmWidth of target window.0
focus_yhmHeight of target window.0
distmDistance from source plane to target window along the optical axis.1
quick_integ0/1If nonzero, use faster (but less accurate) integration scheme.0
E1stkeVEnergy of the fundmental (1st) undulator harmonic.0
verbose0/1If nonzero, output extra information.0
BrTRemanent field (1.35T for Nd2Fe14B) for gap estimate1.35
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