Parallel capable? : yes

Parameter Name | Units | Type | Default | Description |

L | double | 0.0 | arc length | |

ANGLE | double | 0.0 | bending angle | |

E1 | double | 0.0 | entrance edge angle | |

E2 | double | 0.0 | exit edge angle | |

TILT | double | 0.0 | rotation about incoming longitudinal axis | |

DX | double | 0.0 | misalignment | |

DY | double | 0.0 | misalignment | |

DZ | double | 0.0 | misalignment | |

FINT | double | 0.5 | edge-field integral | |

HGAP | double | 0.0 | half-gap between poles | |

FP1 | double | 10 | fringe parameter (tanh model) | |

FP2 | double | 0.0 | not used | |

FP3 | double | 0.0 | not used | |

FP4 | double | 0.0 | not used | |

FSE | double | 0.0 | fractional strength error | |

ETILT | double | 0.0 | error rotation about incoming longitudinal axis | |

ACCURACY | double | 0.0001 | integration accuracy (for nonadaptive integration, used as the step-size) | |

MODEL | STRING | linear | fringe model (hard-edge, linear, cubic-spline, tanh, quintic, enge1, enge3, enge5) | |

METHOD | STRING | runge-kutta | integration method (runge-kutta, bulirsch-stoer, modified-midpoint, two-pass modified-midpoint, leap-frog, non-adaptive runge-kutta) | |

SYNCH_RAD | long | `0` |
include classical synchrotron radiation? | |

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

A numerically-integrated dipole magnet with various extended-fringe-field 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 user-defined 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, is the extend of the fringe field, which
starts at for convenience in the expressions. Also,
is K. Brown's fringe
field integral (commonly called `FINT`), where is the full magnet gap
and
, being the value of the magnetic field well inside
the magnet.

**Linear fringe field:**

(39) (40) (41)

For this model, the user specifies`FINT`and`HGAP`only.**Cubic-spline fringe field:**

(42) (43) (44) (45) (46)

For this model, the user specifies`FINT`and`HGAP`only.**Tanh-like fringe field:**

(47) (48) (49) (50) (51) (52)

For this model, the user specifies`FINT`and`HGAP`, along with the parameter`FP1`, which is the quantity in the last equation. It determines the length of the fringe field that is integrated.**Quintic-spline fringe field, to third order in y:**

(53) (54) (55) (56) (57) (58)

For this model, the user specifies

`FINT`and`HGAP`only.**Enge model with 3 coefficients:**

(59) (60) (61)

where .The user may choose ``enge1'', ``enge3'', or ``enge5'', where the number indicates the order of the expansion of with respect to .

The need only specify

`FINT`and`HGAP.`The Enge parameters are then automatically determined to give the correct linear focusing.However, if user gives non-zero value for

`FP2,`then`FINT`and`HGAP`are ignored.`FP2`,`FP3`, and`FP4`and taken as the Enge coefficients , , and , respectively.