Parameter Name | Units | Type | Default | Description |
L | ![]() |
double | 0.0 | Total length |
BMAX | double | 0.0 | Maximum magnetic field. | |
DX | double | 0.0 | Misaligment. | |
DY | double | 0.0 | Misaligment. | |
DZ | double | 0.0 | Misaligment. | |
TILT | double | 0.0 | Rotation about beam axis. | |
PERIODS | long | 0 |
Number of wiggler periods. | |
STEPS_PER_PERIOD | long | 10 | Integration steps per period. | |
INTEGRATION_ORDER | long | 4 | Integration order (2 or 4). | |
BY_FILE | STRING | NULL | Name of SDDS file with By harmonic data. | |
BX_FILE | STRING | NULL | Name of SDDS file with Bx harmonic data. |
This element simulates a wiggler or undulator using Ying Wu's
canonical integration code for wigglers. To use the element, one must
supply an SDDS file giving harmonic analysis of the wiggler field.
The field expansion used by the code for a horizontally-deflecting
wiggler is (Y. Wu, Duke University, private communication).
![]() |
(3) |
The file must contain the following columns:
For matrix and radiation integral computations, elegant uses a
WIGGLER element when it encounters a CWIGGLER. The effective bending
radius is
(L. Emery, private
communication). Tests show that this gives good agreement in the
tunes from tracking and Twiss parameter calculations.