WorksPhysics and Astronomy
Beam Transport Through a Quadrupole with Offsets in Both Transverse Planes
Abstract
In accelerator switchyards with shared magnets, a beam may traverse a quadrupole with offsets in both transverse planes, a configuration that cannot be represented by a single conventional horizontal or vertical combined-function bend. Such an off-axis quadrupole bends the reference trajectory and generates dispersion simultaneously in both planes. We derive a compact analytical transfer matrix about the curved reference trajectory. The model is formulated in Bishop coordinates using a weak-curvature approximation that retains the longitudinal variation of both reference-curvature components and the resulting dispersion in both transverse planes. The analytical linear model is compared with a sliced representation based on conventional second-order combined-function bend maps and with direct numerical integration of the Lorentz equations in the ideal Cartesian quadrupole field.
Introduction
The European XFEL superconducting accelerator was designed to produce electron bunches with energies up to 17.5 GeV in burst-mode operation at a repetition rate of 10 Hz. Each burst can contain up to 2700 electron bunches, yielding a total of 27,000 bunches per second [1]. Within each pulse train, a fast kicker system in the switchyard distributes bunches towards three undulator lines or directs them to the main accelerator dump if they are not intended for lasing. The switchyard therefore constitutes a complex beam-distribution system, see Figure 1.

Figure 1. Layout of the European XFEL switchyard and undulator branches. Several magnets are shared between different beamlines.
Because of the high electron energy and the geometric constraints, it is technically challenging to fully separate all beamlines. Consequently, several quadrupole magnets in the switchyard effectively belong to multiple lines: for one beamline a given magnet operates as a conventional quadrupole, whereas for another beamline, passing through the same magnet with a transverse offset, it experiences both dipole bending and quadrupole focusing. Even for an offset in only one transverse plane, an off-axis quadrupole is not, in general, equivalent to a conventional combined-function bend. As the reference particle moves through the quadrupole, its transverse offset changes and hence the corresponding reference curvature varies along the magnet. A conventional combined-function bend with prescribed constant curvature can nevertheless provide a useful approximation in this case.
The situation becomes more complicated when the beam has offsets in both transverse planes, Figure 2(a). The reference trajectory then bends simultaneously in both directions, with two generally varying curvature components, and generates dispersion in both and . Such a trajectory cannot be represented by a single conventional horizontal or vertical combined-function bend.

Figure 2. (a) A reference entering a shared quadrupole with horizontal and vertical offsets. (b) The original alternating horizontal and vertical combined-function construction. The drawing is schematic.
To address this limitation within existing accelerator codes, a sliced-bend representation has previously been implemented at the European XFEL, as illustrated in Figure 2(b). In this approach, the quadrupole is decomposed into a sequence of alternating horizontal and vertical combined-function segments. For parallel entry, the nominal curvatures are set by the entrance offsets:
where and are measured from the magnet axis, and is the normalized quadrupole strength, with signed charge , reference momentum and laboratory gradient .
Numerical tracking showed that, for sufficiently short slices, this construction can provide a satisfactory approximation to the particle motion. Its applicability is expected when the curvature-related corrections remain small compared with the dominant quadrupole focusing. It is, however, cumbersome for lattice modelling: a single physical magnet must be replaced by tens or hundreds of individual elements, making the lattice more complicated and the representation less convenient for codes such as MAD8 [2] or Ocelot [3].
Instead of replacing the offset quadrupole by many short slices, we describe it with a single linear matrix. This provides a convenient representation within the Ocelot lattice structure, avoiding manual slicing of long elements into hundreds of segments.
In this work, we derive an analytical linear model and the corresponding transfer matrix for a quadrupole traversed off axis in both transverse planes. We first introduce the coordinate system and Hamiltonian for the off-axis reference trajectory. We then derive the local vector potential and, under the relevant small-curvature and small-angle approximations, obtain the quadratic Hamiltonian and the corresponding linear transfer matrix. The model is subsequently compared with numerical tracking in the ideal quadrupole body field. The corresponding local vector potential is derived in Appendix A. The magnetic model is a straight, ideal constant-gradient body; fringe fields, radiation, and collective effects are not included.
Hamiltonian for a quadrupole with offsets in both planes
Coordinate system and Hamiltonian
For completeness, we briefly review the curvilinear coordinate system and the magnetic Hamiltonian used below. The formulation follows standard canonical beam-dynamics treatments [4, 5, 6]. We employ a Bishop frame [7, 8] (see Figure 3(a)), in which the transverse basis is transported without rotation about the reference tangent. The corresponding transport equations are equivalent to those used by Ripken and Schmidt [4], but we relax their restriction to piecewise-planar reference trajectories, allowing simultaneous curvature in both transverse directions. We use capital letters (, , ) for the fixed coordinates of the magnet, with along its axis. For an ideal quadrupole with constant gradient , the field and normalized strength are

Figure 3. Reference geometry for an off-axis trajectory through an ideal quadrupole. (a) The reference trajectory and associated Bishop frame. (b) The corresponding curvature components along the reference trajectory.
Here is the signed particle charge and is the reference momentum. With this convention, positive corresponds to horizontal focusing.
The reference trajectory satisfies
where primes denote derivatives with respect to the reference arc length . Particle deviations from this trajectory are described by the local transverse coordinates .
Following the beam-optics notation of Ref. [4], we write
The right-handed orthonormal Bishop frame obeys
Both curvature components and may be nonzero simultaneously. The position differential is
Thus, the coordinates are orthogonal, with scale factors . We assume that particle deviations remain sufficiently small for the local coordinates to be well defined, with .
We use the canonical variables
The reference particle has velocity , energy , and momentum . Here is the normalized energy deviation used in the canonical formulation [5], while a late particle has negative .
Let denote the magnetic vector potential, , and define its normalized form . The transverse canonical momenta , normalized to , are related to the mechanical momenta by
where and for . Although the canonical momenta depend on the gauge, the mechanical combinations and are gauge invariant.
In the curvilinear coordinates, the normalized vector potential satisfies
The corresponding standard Hamiltonian for forward motion, with as the independent variable, is [4, 5, 6]
Equation (9) is our starting point. Since our objective is to obtain the analytical linear transport matrix, we require the Hamiltonian only through second order in the particle variables. The construction of the local vector potential for the ideal quadrupole body field and its reduction to the form needed for the analytical linear model are presented in Appendix A.
Reference trajectory and geometrical ordering
The curvatures and entering the curvilinear Hamiltonian are determined by the reference trajectory through the quadrupole. We therefore first obtain the reference orbit and its tangent to the accuracy required for the analytical linear model, and then identify the geometrical terms that can be neglected.
We restrict the analysis to paraxial reference trajectories that remain weakly tilted with respect to the magnet axis throughout the quadrupole,
where
are the transverse components of the reference tangent.
We choose as reference trajectory the orbit of a particle entering the ideal quadrupole with transverse offsets and and entrance angles
The entrance conditions are therefore
The last approximation follows directly from Eq. (10).
In the paraxial approximation, the reference trajectory obeys the usual quadrupole equations,
where a prime denotes differentiation with respect to the reference arc length . Since , the reference arc length and the laboratory longitudinal coordinate differ only beyond the order retained here.
The solution of Eq. (12) with the entrance conditions of Eq. (11) is
where and are the usual quadrupole transport functions. For ,
They satisfy
For , the focusing and defocusing functions are interchanged.
The transverse components of the reference tangent are consequently
The curvature of the reference trajectory follows directly from the Lorentz equation. Comparing
with the Bishop-frame relation
gives
Under the small-angle condition of Eq. (10), the local transverse basis remains aligned with the corresponding laboratory transverse directions to the accuracy required here. Substituting the ideal quadrupole field of Eq. (1) into Eq. (17) therefore gives
Thus, unlike in a conventional combined-function bend with prescribed constant curvature, the curvature generated by an off-axis quadrupole generally varies along the reference trajectory, as illustrated schematically in Figure 3(b).
In addition to the paraxial condition of Eq. (10), the analytical model neglects curvature-induced focusing terms that are quadratic in the reference curvatures. We therefore require
Using and , this condition can be expressed as
Thus, in addition to the small reference angles required by Eq. (10), the reference offsets must remain small compared with the characteristic quadrupole scale .
Vector potential for the analytical linear model
The vector potential used in the analytical linear model has the same bending-plus-quadrupole structure as that employed in Ref. [4]. Here, we briefly outline its construction from the ideal Cartesian quadrupole field in Bishop coordinates and identify the approximations under which this form is recovered for a reference trajectory with simultaneous, longitudinally varying curvature in both transverse planes.
We now construct the local vector potential required for the quadratic Hamiltonian. On the reference trajectory, Eq. (17) gives
To first order in the transverse displacement from the reference trajectory, the quadrupole field therefore becomes
The longitudinal field component is of higher reference order. On the reference trajectory,
and is therefore second order in the reference offsets and angles. Its variation across the transverse plane first contributes beyond the quadratic Hamiltonian retained here. We therefore use
At this order a gauge may be chosen with
The Bishop-coordinate curl equations then reduce to
where
Terms generated by the factor that are quadratic in the reference curvatures are neglected according to Eq. (19), while terms quadratic in the transverse coordinates contribute only beyond the quadratic Hamiltonian. To the required accuracy,
and hence
Here is gauge dependent and does not affect the equations of motion.
The resulting expression agrees, to the order retained, with the conventional bending-plus-quadrupole vector potential of Ref. [4]. The full construction and the higher-order terms neglected in this approximation are discussed in Appendix A.
Quadratic Hamiltonian
We now expand the Hamiltonian in the particle variables, counting , , , , as first degree. The reference quantities and are treated as prescribed coefficient functions. With
substitution of Eq. (25) into Eq. (9) gives, through second particle degree,
The term linear in cancels between the first term of Eq. (9) and the square-root contribution. Likewise, the term from the square-root part cancels the contribution from . Thus the terms linear in the particle variables vanish, as expected for an expansion about the reference trajectory. The remaining term , which is independent of the phase-space variables, may be dropped without affecting the equations of motion.
The quadratic Hamiltonian of the analytical linear model is therefore
The term
couples the energy deviation to the transverse motion and drives dispersion in both planes.
Analytical linear transfer matrix
Hamilton equations
We now solve the linear equations generated by the quadratic Hamiltonian of Eq. (27). For the canonical pairs , , and , Hamilton’s equations give
In particular, is constant through the element. Combining the canonical equations in each transverse plane gives
Homogeneous quadrupole motion
Without the energy-dependent forcing, Eq. (29) reduces to the ordinary quadrupole equations already encountered for the reference trajectory. Using the same transport functions and , the homogeneous solution is therefore
Here and follow directly from Eq. (28).
Dispersive contribution
Since is constant, the full transverse solution can be written as the homogeneous quadrupole motion plus the response to the energy deviation,
Substituting Eq. (31) into Eq. (29) gives
with
Using the varying reference curvatures of Eq. (18),
the dispersion equations become
The particular dependence of the reference curvatures again allows the dispersion equations to be solved analytically. In addition to
the sine-like terms satisfy
These identities provide the particular solutions associated with the - and -dependent forcing terms in Eq. (33). We therefore obtain
At the exit reference arc length ,
Here and below, unlabelled functions and are evaluated at .
Longitudinal motion and transfer matrix
The longitudinal equation in Eq. (28) is
Since is constant, the transverse solutions obtained above determine the complete longitudinal response. Because the map is generated by the quadratic Hamiltonian Eq. (27), it is symplectic. Once the dispersive coefficients , , , are known, symplecticity fixes the corresponding transverse-to-longitudinal coefficients:
The remaining longitudinal coefficient follows directly from integrating Eq. (38),
Collecting the transverse and longitudinal solutions, the transfer matrix in the coordinate order of Eq. (6) is therefore
All transverse and dispersive coefficients are given explicitly above. Equation (41) is symplectic in the canonical variables of Eq. (6).
For completeness, the integral in Eq. (40) can also be evaluated analytically. The result is
where the explicit expressions for and are given in Appendix A3.
One-plane limit and constant-curvature approximation
Consider the special case of a horizontal entrance offset with no vertical offset or angle and, for simplicity, zero horizontal entrance angle,
The reference curvature then has only a horizontal component,
Thus an off-axis quadrupole in one transverse plane resembles a combined-function magnet, but its effective curvature is generally not constant along the reference trajectory.
A conventional combined-function element with the same entrance curvature would instead use
Within the weak-curvature approximation, the curvature-induced focusing term is negligible compared with , since
The principal difference between the two descriptions therefore comes from the longitudinal variation of the reference curvature. For example, the horizontal position-dispersion coefficients are
for the offset quadrupole and the constant-curvature approximation, respectively. The two coincide in the weak-lens limit , but need not agree for a sufficiently strong or long quadrupole.
Comparison with numerical tracking and the bend-slice model
We compare the analytical linear model of Eq. (41) with two independent calculations. The first is direct numerical integration of the Lorentz equations in the ideal Cartesian quadrupole field and is used as the reference solution. The second is a conventional bend-slice representation, in which the off-axis quadrupole is approximated by a sequence of horizontal and vertical combined-function bends, see Figure 2.
For the illustrative example considered below we use
with parallel entrance conditions and . denotes the reference arc length
Bend-slice model
For an entrance offset , the nominal horizontal and vertical bending components are fixed by
The quadrupole is divided into longitudinal intervals. Each interval is represented by a horizontal and a vertical combined-function bend of length . Since each bending component acts over only half of the interval, the corresponding bending angles are
Such a representation can be constructed using standard combined-function bend elements available in accelerator codes such as MAD8/MAD-X and Ocelot [3, 9] [2]. The calculations shown here use the second-order maps implemented in Ocelot. We use , for which further refinement produces negligible changes in the quantities shown below.
Direct numerical reference
As an independent reference, particle trajectories are obtained by direct integration of the Lorentz equations in the ideal quadrupole field of Eq. (1). Using the laboratory coordinate as the independent variable and normalized mechanical momenta , the transverse equations are
with
The trajectories are integrated with the DOP853 algorithm. The numerical solution therefore uses only the Cartesian quadrupole field and does not rely on either the curvilinear Hamiltonian or the bend-slice approximation.
To compare the numerical trajectories with the analytical transfer matrix, the particle coordinates and momenta must be expressed in the same curvilinear coordinate system. Both the reference particle and the test particles are tracked in the fixed Cartesian coordinates of the magnet. At a given reference arc length , we identify the point on the test-particle trajectory that lies in the plane perpendicular to the reference tangent . This point is determined by the condition
The displacement from the reference trajectory, , is then projected onto the local Bishop basis to obtain the transverse coordinates,
The corresponding transverse mechanical momenta are obtained by projecting the Cartesian particle momentum onto the same basis,
The projected mechanical momenta are converted to canonical momenta according to
where the transverse vector-potential components are evaluated in the Poincaré gauge of Appendix A, using Eq. (69). The inverse transformation is applied when initializing particles from canonical phase-space coordinates. Although these components are neglected in the analytical weak-curvature model, they are retained in the numerical coordinate transformation.
The longitudinal coordinate is evaluated using the same convention as in Eq. (6),
with the particle arrival time obtained together with the numerical trajectory. The resulting numerical state is therefore expressed in the same coordinates
as the analytical map. The numerical derivatives below are evaluated about the reference state .
For each initial coordinate , we introduce a small perturbation , while keeping all other initial coordinates unchanged. Two particles are therefore tracked, with
Let and denote the corresponding values of the -th phase-space coordinate after tracking to position . The centered finite-difference derivative is then
For example, the element , which describes the dependence of the final horizontal position on the initial horizontal position, is evaluated as
with all other initial phase-space coordinates kept fixed. The remaining matrix elements are obtained in the same way by perturbing each initial coordinate in turn.
For sufficiently small , the centered finite difference has the expansion
where is the corresponding element of the first-order transfer matrix.
To reduce the dependence on the chosen perturbation size, the calculation is repeated with the step . The leading finite-difference error is then removed using Richardson extrapolation [10],
Repeating this procedure for all six initial phase-space coordinates gives the complete numerical first-order transfer matrix .
Comparison
Figure 4 compares the first-order transfer matrices of the analytical linear model (ALM) and the bend-slice model with direct numerical tracking. For the matrix elements included in the comparison, we show the relative difference

Figure 4. Comparison of the first-order transfer matrices in canonical coordinates with direct numerical tracking. (a) Analytical linear model. (b) Bend-slice model. Gray dashes indicate elements below numerical resolution, while gray dots indicate excluded cross-plane coupling terms. Both panels use the same relative-error scale.
Elements below the numerical resolution and transverse cross-plane coupling terms, which are neglected in both approximate models, are excluded from the comparison. For the sliced model, the matrix coefficients are taken in its native bend-map coordinates; the reference geometry is examined separately below.
Both models show comparable accuracy for the transverse betatron motion, with the bend-slice model being slightly more accurate for some elements due to the retained curvature-squared focusing terms. A more significant difference is found in the dispersive and longitudinal coefficients, where the analytical model agrees substantially better with numerical tracking. This improvement results from retaining the longitudinal variation of the reference curvature.
We next compare the transverse particle deviations. The analytical model uses the linear matrix of Eq. (41), whereas the bend-slice model uses the full second-order maps of the individual slices. The error relative to direct numerical tracking is defined as
where the transverse coordinates are measured relative to the reference trajectory of each model at . Thus, the comparison concerns local particle transport and does not include errors in the reference survey. Figure 5(a) shows the exit error as a function of the entrance energy deviation for the nominal offsets. In panel (b), the offsets are scaled according to

Figure 5. Comparison of transverse particle deviations relative to the reference trajectory. (a) Exit error as a function of the entrance energy deviation. (b) Exit error as a function of the offset scale at . Dashed and solid curves represent the analytical and bend-slice models, respectively.
at a fixed energy deviation of .
Despite using only a first-order transfer matrix, the analytical model gives smaller errors than the second-order bend-slice representation over the parameter ranges considered.
An accurate reference trajectory is also important for the global survey of the beamline. The survey determines the position and orientation of the reference frame for subsequent elements. For the analytical model, it is obtained by integrating the reference motion and Bishop-frame equations using the varying curvatures of Eq. (18), as described in Appendix B. For the bend-slice model, we use the standard Ocelot bend survey, following the conventional MAD8 bend geometry. Both are compared with the reference trajectory obtained from direct integration of the Lorentz equations.
Figure 6 shows the reference position differences evaluated at the same laboratory longitudinal coordinates. The analytical-model survey agrees closely with numerical tracking, while the bend-slice survey exhibits much larger deviations, reaching the millimetre scale.

Figure 6. Reference-survey position differences relative to direct Lorentz tracking. (a,b) Horizontal and vertical residuals of the analytical-model survey. (c,d) Corresponding residuals of the bend-slice survey with 8192 bend pairs. All positions are compared at the same laboratory longitudinal coordinates .
This difference does not vanish with increasing slice number. Since the bend curvatures are fixed by the entrance offsets, the sliced representation converges to a constant-curvature geometry rather than to the actual quadrupole reference trajectory. The analytical survey, in contrast, accounts for the longitudinal variation of both curvature components.
Conclusion
We have developed a compact analytical linear model for beam transport through a quadrupole with offsets in both transverse planes. Within the weak-curvature approximation, the model provides a symplectic transfer matrix that accounts for the longitudinal variation of the reference curvature and the resulting dispersion in both planes.
Comparison with direct numerical tracking shows that the analytical model reproduces the dispersive transport more accurately than the original bend-slice representation, despite using only a first-order map. The improvement is also evident in the reference survey, where the fixed-curvature bend-slice model exhibits systematic errors that cannot be eliminated by increasing the number of slices.
The model has been implemented in Ocelot as a new lattice element, XYQuadrupole, providing both the linear transfer matrix and reference geometry without replacing a single quadrupole by a large number of bend elements.
Acknowledgments
This work was supported by operation funds of the European XFEL. The author thanks Nina Golubeva and Winni Decking for developing the original sliced-bend representation used at the European XFEL. The author also thanks Nina Golubeva and Evgeniy Schneidmiller for valuable discussions.
Special thanks are due to Igor Zagorodnov for his encouragement to bring this work, initiated more than a year ago, to completion and for many fruitful discussions.
The author used ChatGPT (OpenAI) during the preparation of this manuscript to assist with language editing and to improve clarity and structure.
Construction of the local vector potential
The analytical linear model of the main text uses only those terms of the local vector potential that contribute to the quadratic Hamiltonian. Here we first construct the local vector potential directly from the ideal quadrupole body field and then show explicitly how the simplified potential used in the main text follows under the approximations of the analytical model.
Vector potential in the moving Bishop frame
In the fixed magnet coordinates , the normalized magnetic field is
A convenient laboratory vector potential satisfying is
The local coordinates are related to the laboratory coordinates by
where is the Bishop frame introduced in Sec. II. The corresponding metric factor is
Projecting Eq. (63) onto the moving frame gives
where the coefficient along is defined by
Equation (A4) describes the same ideal quadrupole body field as Eq. (62); only the coordinate description has changed.
For the Hamiltonian it is convenient to use the transverse radial (Poincaré) gauge [11],
Starting from the projected potential of Eq. (65), we perform the gauge transformation
A gauge function satisfying Eq. (66) is
where parametrizes the straight radial segment in the local transverse plane. Indeed, substituting Eq. (68) into Eq. (67) gives
Equivalently, the transverse components in this gauge may be written as
Thus the transverse vector-potential components are determined entirely by the longitudinal magnetic-field component .
Reduction to the analytical model
The construction above gives the local vector potential for the ideal quadrupole body field in the moving Bishop frame. We now expand this result about the reference trajectory and retain only those terms that contribute to the quadratic Hamiltonian under the paraxial and weak-curvature approximations used in the analytical model.
In the radial gauge, the transverse components of the vector potential are determined by the longitudinal magnetic-field component through Eq. (69). On the reference trajectory,
which is second order in the reference offsets and angles. Its transverse variation generates transverse vector-potential terms that contribute only beyond the quadratic Hamiltonian retained here. Consequently,
to the order required for the analytical linear model.
It remains to determine the longitudinal component . On the reference trajectory, Eq. (17) gives
To first order in the transverse particle coordinates, the local transverse field is
Corrections associated with the rotation of the projected quadrupole gradient are of higher reference order and are not retained in the analytical model.
With , the Bishop-coordinate curl equations reduce to
where
Writing
Eq. (A12) together with Eq. (A11) gives
and
The terms generated by that are linear in the particle coordinates and proportional to products of the reference curvatures are neglected according to the weak-curvature condition Eq. (19). Terms quadratic in the transverse particle coordinates would generate cubic terms in and therefore do not contribute to the quadratic Hamiltonian. Thus, at the retained order,
Integrating Eq. (A13) gives
which is Eq. (25) of the main text. Here
is gauge dependent and does not affect the equations of motion.
It is useful to verify explicitly which field terms are reproduced by the truncated potential of Eq. (A14). Substitution into the Bishop-coordinate curl equations gives
Expanding in the transverse coordinates,
where denotes transverse-coordinate degree. The terms and contain products of the reference curvatures and are neglected according to Eq. (19). The terms and are quadratic in the transverse particle coordinates and first affect the cubic Hamiltonian.
Equation (A14) therefore retains the terms of the local vector potential required for the quadratic Hamiltonian of the analytical model. The terms omitted here can be obtained systematically from the construction of Eqs. (A4)–(A7). They include the longitudinal-field contribution to the transverse vector potential, corrections associated with the rotation of the projected quadrupole gradient, curvature-squared terms, and higher-order transverse dynamics.
Explicit expression for
The longitudinal coefficient introduced in Eq. (40) can be evaluated analytically using the reference curvatures of Eq. (18) and the dispersion functions of Eq. (36). The result may be written as
with
Here and are evaluated at . The first term in is the usual relativistic longitudinal response, while and describe the additional path-length response generated by the dispersive motion in the two transverse planes.
Survey and global geometry
The transfer matrix of Eq. (41) describes particle motion relative to the curved reference trajectory. For lattice modelling, we also need the position and orientation of the reference frame at the magnet exit, which determine the geometry of subsequent elements.
Following the survey convention of MAD-8 [2], the geometry of an element is described by a displacement and a rotation matrix relative to its entrance frame:
where
contains the Bishop-frame basis vectors.
Analytical approximation
For illustration, consider a reference particle entering parallel to the magnet axis with offsets . In the paraxial approximation, its trajectory and direction are given by Eqs. (13) and (16).
For a magnet with physical longitudinal length , the leading transverse displacement relative to the entrance frame is
where and are evaluated at .
The exit direction is determined by
To first order in the reference angles, the corresponding rotation matrix is
The reference path length differs from the mechanical length because of the transverse motion:
Using Eq. (16), we obtain
These expressions provide a simple approximation for the reference displacement, orientation, and path length. In particular, they show explicitly how the survey depends on the quadrupole strength and the entrance offsets.
b. Numerical survey in Ocelot. * In the XYQuadrupole implementation, the survey is calculated by numerical integration of the reference trajectory together with the Bishop-frame equations, rather than using the truncated expressions above:
The curvature functions and are taken from the analytical approximation of Eq. (18). The integration retains the full three-dimensional Bishop-frame evolution for the prescribed curvature functions, which remain within the paraxial approximation.
The entrance conditions are
For parallel entrance, . For nonzero entrance angles, the initial frame is obtained by the smallest rotation aligning the magnet axis with . Using Rodrigues’ formula,
where , , and denotes the cross-product matrix.
Integration to the prescribed reference arc length gives the exit position and orientation . The corresponding survey quantities are
The laboratory longitudinal advance is obtained from the integrated trajectory. If the magnet is specified instead by its mechanical length , the integration is stopped at , which also determines the corresponding reference path length.
Finally, the survey allows the local particle coordinates obtained from the transfer matrix to be converted into laboratory coordinates. At the reference-normal exit plane,
This plane generally differs from the mechanical exit face of the magnet; conversion to the latter requires an additional geometrical transformation.
References
- [3]I. Agapov, G. Geloni, S. Tomin and I. Zagorodnov, OCELOT: A software framework for synchrotron light source and FEL studies, Nucl. Instrum. Methods Phys. Res. A 768, 151–156 (2014).DOI
- [4]G. Ripken and F. Schmidt, A Symplectic Six-Dimensional Thin-Lens Formalism for Tracking, DESY 95-063; CERN/SL/95-12 (AP) (1995), Secs. 2.2–2.3.
- [5]A. Wolski, Beam Dynamics in High Energy Particle Accelerators, Imperial College Press, London (2014), Chap. 2, Secs. 2.2–2.3, Eqs. (2.52)–(2.56) and (2.73).
- [6]F. C. Iselin, Fast Methods for Generating Lie Algebraic Maps of Arbitrary Degree for Combined Thick Multipoles, CERN SL-Note-2000-001 (AP) (2000).
- [7]R. L. Bishop, There is more than one way to frame a curve, Am. Math. Monthly 82, 246–251 (1975).DOI
- [8]D. Carroll, E. Köse, and I. Sterling, Improving Frenet’s Frame Using Bishop’s Frame, J. Math. Res. 5(4), 97–106 (2013), doi:10.5539/jmr.v5n4p97, Sec. 4.DOI
- [9]H. Grote and F. Schmidt, “MAD-X: An Upgrade from MAD8,” in Proc. 20th IEEE Particle Accelerator Conf. (PAC 2003), Portland, OR, USA, 2003, p. 3497, CERN-AB-2003-024-ABP.DOI
- [10]R. L. Burden, J. D. Faires, and A. M. Burden, Numerical Analysis, 10th ed. (Cengage Learning, 2016).
- [11]W. E. Brittin, W. R. Smythe, and W. Wyss, Poincaré gauge in electrodynamics, Am. J. Phys. 50, 693 (1982), doi:10.1119/1.12731.DOI