A numericallyintegrated dipole magnet with various extendedfringefield models.
Parallel capable? : yes
GPU capable? : no
Backtracking capable? : no
Parameter Name  Units  Type  Default  Description 
L  M  double  0.0  arc length 
ANGLE  RAD  double  0.0  bending angle 
E1  RAD  double  0.0  entrance edge angle 
E2  RAD  double  0.0  exit edge angle 
TILT  double  0.0  rotation about incoming longitudinal axis 

DX  M  double  0.0  misalignment 
DY  M  double  0.0  misalignment 
DZ  M  double  0.0  misalignment 
FINT  double  0.5  edgefield integral 

HGAP  M  double  0.0  halfgap between poles 
FP1  M  double  10  fringe parameter (tanh model) 
FP2  M  double  0.0  not used 
FP3  M  double  0.0  not used 
FP4  M  double  0.0  not used 
FSE  double  0.0  fractional strength error 

ETILT  RAD  double  0.0  error rotation about incoming longitudinal axis 
ACCURACY  double  0.0001  integration accuracy (for nonadaptive integration, used as the stepsize) 

MODEL  STRING  linear  fringe model (hardedge, linear, cubicspline, tanh, quintic, enge1, enge3, enge5) 

METHOD  STRING  rungekutta  integration method (rungekutta, bulirschstoer, modifiedmidpoint, twopass modifiedmidpoint, leapfrog, nonadaptive rungekutta) 

SYNCH_RAD  long  0  include classical, singleparticle synchrotron radiation? 

ADJUST_BOUNDARY  long  1  adjust fringe boundary position to make symmetric trajectory? (Not done if ADJUST_FIELD is nonzero.) 

NIBEND continued
A numericallyintegrated dipole magnet with various extendedfringefield models.
Parameter Name  Units  Type  Default  Description 
ADJUST_FIELD  long  0  adjust central field strength to make symmetric trajectory? 

FUDGE_PATH_LENGTH  long  1  fudge central path length to force it to equal the nominal length L? 

FRINGE_POSITION  long  0  0=fringe centered on reference plane, 1=fringe inside, 1=fringe outside. 

GROUP  string  NULL  Optionally used to assign an element to a group, with a userdefined name. Group names will appear in the parameter output file in the column ElementGroup 

For the NIBEND element, there are various fringe field models available. In the following descriptions, l_{f} is the extend of the fringe field, which starts at z = 0 for convenience in the expressions. Also, K = ∫ _{}∞^{∞}F_{y}(z)(1 F_{y}(z))dz is K. Brown’s fringe field integral (commonly called FINT), where g is the full magnet gap and = ∕B_{0}, B_{0} being the value of the magnetic field well inside the magnet.
For this model, the user specifies FINT and HGAP only.
The user may choose “enge1”, “enge3”, or “enge5”, where the number indicates the order of the expansion of F_{z} with respect to y.
The need only specify FINT and HGAP. The Enge parameters are then automatically determined to give the correct linear focusing.
However, if user gives nonzero value for FP2, then FINT and HGAP are ignored. FP2, FP3, and FP4 and taken as the Enge coefficients a_{1}, a_{2}, and a_{3}, respectively.
NISEPT