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

[ Identification | Description | Input parameters | Links ]

The Wiggler Component

Model of a wiggler source

Identification

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

Description

A source model based on the derivation from B.D. Patterson, Am. J. Phys. 79, 1046 (2011); doi: 10.1119/1.3614033

Example: Wiggler(
E0 = 14, dE = 12,
Ee = 2.75, Ie = 0.5, B = 2.1, K=10, Nper=41, sigey=9.3e-6, sigex=215.7e-6)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
E0keVCenter of emitted energy spectrum (overrides lambda0)0
dEkeVHalf-width of emitted energy spectrum0
lambda0AACenter of emitted wavelength spectrum0
dlambdaAAHalf-width of emitted wavelength spectrum0
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
IeARing current0.4
BTPeak magnet field strength1.6
K1Dimensionless undulator parameter, e.g. K >> 1. overrides B.3
NperintNumber of magnetic periods in the wiggler1
lengthmLength of the Wiggler.1
sigeymElectron ring beam size in vertical plane (rms)0
sigexmElectron ring beam size in horizontal plane (rms)0
focus_xwmWidth of target window0
focus_yhmHeight of target window0
distmDistance from source plane to target window along the optical axis1
gauss_t0/1If 0 the target window will be sampled uniformly and the weight adjusted accordingly, otherwise we will use a gaussian sampling scheme.0
verbose0/1If nonzero, output extra information0
BrTRemanent field of the permanent magnet material1.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