# Fringe field simulations of a non-scaling FFAG accelerator

###### Abstract

Fixed-field Alternating Gradient (FFAG) accelerators offer the potential of high-quality, moderate energy ion beams at low cost. Modeling of these structures is challenging with conventional beam tracking codes because of the large radial excursions of the beam and the significance of fringe field effects. Numerous tune resonances are crossed during the acceleration, which would lead to beam instability and loss in a storage ring. In a non-scaling FFAG, the hope is that these resonances can be crossed sufficiently rapidly to prevent beam loss. Simulations are required to see if this is indeed the case. Here we simulate a non-scaling FFAG which accelerates protons from 31 to 250 MeV. We assume only that the bending magnets have mid-plane symmetry, with specified vertical bending field in the mid-plane (). The magnetic field can be obtained everywhere using a power series expansion, and we develop mathematical tools for calculating this expansion to arbitrary order when the longitudinal field profile is given by an Enge function. We compare the use of a conventional hard-edge fringe with a more accurate, soft-edge fringe field model. The tune 1/3 resonance is the strongest, and crossing it in the hard-edge fringe model results in a 21% loss of the beam. Using the soft-edge fringe model the beam loss is less than 6%.

## 1 Introduction

The concept of a fixed-field, alternating gradient (FFAG) accelerator came to light in the 1950’s [1, 2, 3], but has only recently been revived as a promising design for a low-cost, reliable accelerator [4, 5]. Reasons for a lower cost are the fixed-field magnets (as opposed to those that must be ramped up during each acceleration cycle), small size, and only two different magnet types.

FFAG accelerators come in two varieties: scaling and non-scaling. In a scaling FFAG the magnets are designed so that the vertical and horizontal tunes are constant over the acceleration phase. This guarantees stability of the particle orbits, but at the expense of more complex magnets which can be difficult to manufacture. Another problem is the large radial excursion that particles undergo from the lowest to the highest energy, making the machines (and magnets) larger.

Here we are interested instead in a non-scaling FFAG—in such a machine no attempt is made to keep the tunes constant during the acceleration. In fact, the tunes vary considerably during the acceleration, crossing many resonances [6, 7, 8]. The magnets in these devices can be simpler, and the radial excursion of the particles less. Simulation of these devices is critical and inherently non-linear. The success of the machine rests on the acceleration being rapid enough that the instabilities do not have sufficient time to destabilize the beam.

## 2 A sample FFAG

We consider a simple FFAG for proton acceleration consisting of 24 doublet sections. Each doublet consists of a pair of combined-function bend magnets (“cf bend”) with parameters given in Table 1. We consider the magnetic field where the vertical component within the magnet has the form

(1) |

in other words a vertical bending field with a linear transverse gradient . In the vertical coordinate the magnet is assumed to have mid-plane symmetry. Mid-plane symmetry will be explained in detail in the next section, and we will generalize the transverse profile beyond linear gradients. The function describes the longitudinal profile of the field. It is approximately one inside the bending magnet, and decreases smoothly to zero outside it.

Element | Type | l (cm) | (T) | (T/m) |
---|---|---|---|---|

DL | drift | 40 | ||

DS | drift | 7.5 | ||

BD | cf bend | 22 | 0.803952 | -12.8 |

BF | cf bend | 44 | 0.555057 | 8.0 |

The transverse gradient is large enough that the vertical bending field switches sign within the magnet. This is necessary to keep the increase in overall radius small over an order of magnitude increase in energy (Figure 1).

These combined function magnets can also be considered as quadrupoles which have been shifted transversely. The field in the geometrical center of these magnets is not zero unlike a conventional quadrupole. In this sense they are a pair of focusing and defocusing quadrupoles. Figure 2 shows a single period of the lattice, with the small defocusing quadrupoles and larger focusing quadrupoles. These magnets are shown off center because they are conventional quadrupoles shifted off the beam-line. The dots in the centers of these magnets are the magnetic origins of these magnets, where the field is zero.

This design allows for a large energy acceptance, from 31 MeV to 250 MeV protons, while the radius of the associated closed orbits ranges from 4 m to 4.2 m. Figure 1 shows closed orbits of 16 particles with energies ranging from 31 to 250 MeV.

Modeling this accelerator through the entire energy range is a challenge for any tracking code. The closed orbits range outward nearly 20 cm, so at the extremes of energy they are far from the center of the magnet. In Figures 1 and 2, fringe fields are modeled in the conventional way by giving each particle a position and momentum kick as it enters or exits a magnet. The position kicks contain terms proportional to the position of the particle cubed [19], which can become quite significant for a particle displaced 0.2 m from the center of the magnet (Figure 4). In this paper we compare the effects of such a “hard-edge fringe” model with a more accurate field model where the rapid rise of the magnetic field in the fringe field region is directly integrated through.

Figure 3 shows the entrance and exit angles to the quads over the total range in energy. In the fringe field region, when these angles are large they provide significant vertical focusing.

## 3 Magnets with mid-plane symmetry

We consider a rectangular bend magnet in Cartesian coordinates. The primary bending field is oriented along the -axis, so that the bending takes place in the - plane. The primary bending magnetic field is in the center of the bending magnet. This magnet is assumed to have a specified vertical field in the mid-plane (),

(2) |

where is the transverse field profile and is a smooth function describing the longitudinal variation of the bending field through the magnet. We often will take the transverse field profile to be linear as in (1) but the formulas below give the general case. The longitudinal profile function is close to one within the magnet and decreases to zero outside it. can be determined by curve-fitting the field of a real magnet. A general function with this shape can be obtained using a -parameter Enge function [20, 21],

(3) | |||||

where is a term polynomial of degree ,

(4) |

and is a length scale over which the longitudinal field changes in the fringe region. Physically is determined by the aperture of the magnet. Note that . We assume that is even and that the highest order coefficient , so that as and as .

By adding two Enge functions, we can create a profile function of a magnet from to

(5) |

The locations and correspond to the physical entrance and exit of the magnet. Note that the hyperbolic tangent profile is a special case of the 2-parameter Enge function with . Two Enge functions are shown in Figure 5, first the hyperbolic tangent and then a more general 4-parameter Enge function.

The two profile functions in (5) depend on the polynomial in (3), and even when and the same polynomial is used, the field growth and decay will not be perfectly symmetric with respect to the center of the magnet. This is due to the even powers in . In order that the rise and fall of be symmetric we must change the sign of all the even terms between the entrance polynomial and the exit polynomial . The hyperbolic tangent polynomial contains no even terms and requires no modification.

In order to provide sufficient room for the fringe field decay, we must increase the physical length of the “magnet”, at least a few units of on each end. Use of the hyperbolic tangent function () preserves the integrated magnet strength, but the general Enge function does not and may require some adjustment to the overall strength .

We require the magnet to have mid-plane symmetry, or that

(6) | |||||

(7) | |||||

(8) |

If we consider and as known functions, then the symmetry constraints (6-8) plus Maxwell’s equations determine the field everywhere, and can be obtained using a power series expansion. The magnetic potential can be written as the power series

(9) |

where and . Here the symmetry dictates that must be an odd function of . The given transverse profile implies and in order that ,

(10) |

In the special case with a linear gradient in the field, , this simplifies to

(11) |

The power series (9) is valid for any and , but converges only when is small enough. For the profile function, , we can obtain a bound on the radius of convergence. As shown in Appendix A, the field is guaranteed to converge for , where

(12) |

In the center of the fringe field region, is equal to the radius of convergence for the power series (9). At any other value of and , it is a lower bound on the radius on convergence.

If we allow the fringe fields to be arbitrarily short, , the field diverges for arbitrarily small . The reason for this divergence is that the rapid growth of the derivatives of the longitudinal profile function . It is not physically realistic to allow the fringe field to decay over too short a length. The length of fringe field decay should instead be set according to the magnet aperture.

Walstrom [22] has also computed the radius of convergence for magnetic field power series. He uses the on-axis generalized gradients, which are considered as complex-valued functions. The radius of convergence at a particular location can then be determined by the nearest singularity in the complex plane. However, he does not calculate this radius of convergence for the case of a bend magnet with mid-plane symmetry.

Venturini [23] has calculated higher order aberrations associated with hard-edge fringe field kicks in quadrupole magnets. He found that magnets with shorter fringe fields have larger high-order aberrations. In our view this can be explained by our calculation that the magnetic field power series diverges for all as the fringe field length goes to zero.

Instead of assuming a magnet with mid-plane symmetry, we could have used a conventional multipole field with the same longitudinal profile function . The field is then a function of the radial coordinate , the angle and the longitudinal variable . We have repeated the same power series analysis, and find again that the magnetic potential power series is guaranteed to converge for , where is again given by (12). This multipole field may not converge for large values of the transverse variable , whereas with the magnet with mid-plane symmetry the convergence of the power series (9) depends only upon . Since transverse excursions of 0.2 m are present in our model FFAG accelerator, for soft-edge fringes we use field expansions with mid-plane symmetry rather than a quadrupole field.

## 4 Modeling in PTC

For modeling FFAGs, we use the Polymorphic Tracking Code (PTC), a beam tracking code developed by Étienne Forest [24, 25]. For our purposes, the most important–indeed, essential—reasons for using PTC are its ability to place magnets in arbitrary locations (needed for the large transverse offsets of the quadrupoles), its correct handling of the large energy range in an FFAG, and its ability to integrate through arbitrary magnetic fields. This last is done using an element of type arbitrary.

Before any particle tracking, each arbitrary magnet is analyzed. Each component of the magnetic field in each transverse slice is fit by a bivariate polynomial , with . The fitting is done using a least-squares minimization. The magnetic field given by the potential (9) is a polynomial in and , but not . The fitting is necessary because the transverse slices are rotated from this orientation. To track a particle through this element, PTC then integrates using these pre-calculated polynomial fields by means of a Lorentz kick. Here this integration scheme is not symplectic, but it is sufficient for short term tracking ( turns).

In element of type arbitrary the fringe field region is taken into account directly through the rise in the magnitude of the magnetic field, and not using a delta function kick. This is more accurate, but presents several difficulties. First, the integration step must be small in the fringe field, where the field is increasing rapidly. Second, the magnet must be longer to accommodate the fringe fields. The combined function bends are separated by a short drift of only 7.5 cm, so that their fringe fields overlap. We have modeled this section by making the magnets 15 cm longer on each end, as can be seen in Figure 9. In order to patch the various overlapping components together, PTC automatically drifts the particles backwards to the beginning of the next component. These backward tracks can be seen in Figure 9. This method of integrating between overlapping components is justified by the fact that the field is small in the region of overlap.

In all cases we use a field profile with a hyperbolic tangent profile, . The decay length was set to 5 cm, which is similar to the aperture. We use an integration step of 1 cm within elements of type arbitrary.

An alternate approach would be to consider the two bend magnets as one long magnet. A 3D magnet code (such as TOSCA) can be used to generate the magnetic field of both magnets together as a single beamline element. We did not do this because it would entail additional complexity, for one thing the two magnets are rotated with respect to one another. Our model represents a compromise between a standard tracking code using hard-edge fringe kicks, and a model which tracks through many magnets using the full 3D field. We retain the convenience of modeling the beamline as a simple sequence of elements (DL, BD, DS, BF) while reproducing more realistic fringe fields.

## 5 Results

We ran PTC both with the special field-mapped magnets, and also with conventional quadrupoles with a hard-edge fringe field entrance and exit kick. These magnet types differ primarily in their treatment of the fringe field. Figure 6 shows the horizontal and vertical tunes for both magnet types. The tunes are similar but differ in key areas. In particular, the vertical and horizontal tunes are over 8 after injection for the conventional quadrupoles, but both are slightly under 8 for the field-mapped magnets. A machine tune of 8 corresponds to a single-period tune of 1/3, because we have a 24 cell lattice.

If we increase the strength of the quadrupoles, or equivalently increase the gradient of the field , the tune diagrams become more similar to those for hard-edge magnets. Figure 7 shows the result when is increased to 8.4 and -13.2 T/m, and Figure 8 when is increased to 8.8 and -13.6 T/m. For low energies the tunes are very close to the hard-edge case, and in particular the tune 8 resonance must again be crossed. There are still differences in the tunes at higher energies.

Figure 9 shows closed orbits for both conventional hard-edge fringes and using the new soft-edge magnets. We can see that the horizontal focusing is decreased by the soft-edge fringes, so the transverse excursion of the orbits is greater.

Figure 10 shows closed orbits for the magnets with the largest gradient (8.8 and -13.6 T/m), compared with the closed orbits of the original hard-edge fringes (same as in Figure 9). We can see that the horizontal focusing now appears similar, although the soft-edge orbits are displaced inwards, particularly at higher energies.

We now take 1000 protons and accelerate them from 31 to 250 MeV using PTC. The starting emittance was mm-mrad in each plane. The particles were uniformly distributed inside a phase space ellipse. In order to reduce the instabilities due to the many resonances that must be crossed, the acceleration needs to take place as rapidly as possible. For this reason we place an RF cavity in each of the long drifts. The 24 RF cavities add 350 KeV per turn, so acceleration takes 626 turns. The current in this machine is small enough that we do not take into account space charge.

Using conventional hard-edge fringe field magnets, 21% of the beam is lost in the first 20 turns. This occurs at the crossing of the 1/3 tune (Figure 11). No other resonance gives further loss of the beam. Using the special field-mapped magnets, none of the beam is lost. This is not surprising because the tunes no longer cross the resonance.

If we increase the quadrupole gradient of the magnets, the tunes again cross the resonance, but a 21% beam loss is not seen using the soft-edge fringes. With the magnets of Figure 7 only 3.4% of the particles are lost and with Figure 8 only 5.6% are lost.

The hard-edge fringe field kick derived in [19] and used for quadrupoles in PTC assumes that the fringe field has quadrupole symmetry. A subtle point is that since our field is assumed to have mid-plane symmetry, the quadrupole fringe field kick may not be accurate for fringe fields with mid-plane symmetry. It may be that some of the particle loss differences between hard-edge and soft-edge magnets is due to this problem. Ideally, one would like to repeat the calculation in [19] for a magnet with mid-plane symmetry, and compare results using this fringe field kick to the soft-edge fringe model, but this is not a simple calculation and we have not done this. The fact that the closed orbits for hard and soft-edge magnets in Figure 9 are so close to one another suggests to us that our hard-edge fringe field kicks are reasonably accurate.

Our results indicate that modeling fringe fields correctly is critical to predict the performance of non-scaling FFAGs. Although particle tracking with the new field-mapped, soft-edge magnets is about 10 times slower than using conventional hard-edge fringe model, the additional computational time far outweighs any later re-engineering cost after a machine is built. In addition, the fact that we are only tracking particles through 626 turns, rather than millions of turns as in a storage ring, means that the tracking time for 1000 protons goes from seconds to minutes, in other words is still easily handled.

## 6 Summary

We have used the tracking code PTC to track protons through the acceleration phase of a non-scaling FFAG from 31 to 250 MeV. We have compared the use of a conventional, hard-edge fringe model with a more accurate, soft-edge fringe model. With an emittance of mm-mrad, the hard-edge fringe model predicts a 21% particle loss as the beam moves through the 1/3 tune resonance. In contrast the more accurate fringe field model predicts only a 6% particle loss.

A future paper will study the effect of magnet misalignments for this machine [26].

## Acknowledgment

This work was supported in part by the U.S. Department of Energy, Office of Science, Office of Nuclear Physics under SBIR Grant No. DE-FG02-06ER84508.

## Appendix A Enge function derivatives and radius of convergence

Differentiation of the Enge function (3) is straightforward but results in formulas of rapidly increasing complexity. The results are easier to comprehend if we interpret the Enge function as a composition of two functions, where

(13) | |||||

(14) |

(15) |

(16) |

Derivatives of can be found using Faà di Bruno’s formula [16] for differentiation of a composition of two functions where the second sum in (15) or (16) is over the partitions a set of different objects into subsets containing objects for , and . The coefficient is the number of such partitions. These are related to multinomial coefficients and are defined by

(17) |

For (15) and (16) we need derivatives of to arbitrary order. We find that

(18) |

where is a polynomial of degree . These polynomials are defined by and the recurrence relation

(19) |

In [18], it is shown that these polynomials can be written in terms of Stirling Numbers of the second kind, .

(20) |

0 | |
---|---|

1 | |

2 | |

3 | |

4 | |

5 | |

6 | |

7 | |

8 | |

9 | |

10 | |

11 | |

12 |

Table 2 gives the polynomials up to , and Figure 12 shows them graphically up to . Table 3 gives the coefficients needed in Faà di Bruno’s formula (15) to calculate the 5th derivative of . As an example, using the results of Tables 2 and 3, we calculate the 5th derivative of the Enge function as

(21) | |||||

where derivatives of the polynomials are evaluated at , and the polynomials are evaluated at . In the special case of the function, where , all the terms in (21) are zero except for the last one and we have

(22) |

which is the same as (18) for .

partition of 5 | multin. coeff | term | |
---|---|---|---|

1 | 5 | ||

2 | 4+1 | ||

2 | 3+2 | ||

3 | 3+1+1 | ||

3 | 2+2+1 | ||

4 | 2+1+1+1 | ||

5 | 1+1+1+1+1 |

The absolute value of the lowest order coefficient in (the constant or linear term, whichever is nonzero) generates the sequence , , , , , , , . The sequence , , , , , , is sequence A182 in OEIS [17], known as the “tangent numbers” . These are Taylor series coefficients of the function expanded about , and may also be written in terms of Bernoulli numbers [17]. In Figure 12 the polynomials are divided by the normalizing factor , and it is clear that

(23) |

at least for . For odd , (23) is equivalent to the statement that the maximum magnitude of the ’th derivative of occurs at . This can be proven by writing the Taylor expansion of the ’th derivative of about and applying the Alternating Series Estimation Theorem.

Since the lowest order coefficient of is , in the center of the fringe field we can say:

(24) |

and

(25) |

The asymptotic form for the tangent numbers is given by [17]

(26) |

This formula is quite accurate even for small —for example it predicts , when . We can use this asymptotic form to obtain a bound on the radius of convergence for the magnetic field power series (9) for the longitudinal profile and linear transverse field gradient (1). If the power series terms in (9) are , i.e. , then for even and Equation (26) gives the bound

(27) |

The radius of convergence of the power series with coefficients is given by , which leads directly to the bound

(28) |

Thus the power series (9) converges for (for any value of and ).

## Acknowledgment

This work was supported in part by the U.S. Department of Energy, Office of Science, Office of Nuclear Physics under SBIR Grant No. DE-FG02-06ER84508.

## References

- [1] T. Ohkawa, Symposium on Nuclear Physics, Physical Society of Japan (1953).
- [2] K.R. Symon, D.W. Kerst, L.W. Jones, L.J. Laslett, and K.M. Terwilliger, “Fixed-field alternating-gradient particle accelerators”. Phys. Rev., 103, 1837–1859 (1956).
- [3] L. J. Laslet, “Fixed-field alternating gradient accelerators” Science 124 pp. 781–87 (1956).
- [4] M. K. Craddock, “New concepts in FFAG design for secondary beam facilities and other applications”, Proc. PAC05, p. 261 (2005).
- [5] Y. Mori, Proc. FFAG05 Workshop, FNAL, (2005).
- [6] S.Y. Lee, “Fundamental limit of nonscaling fixed field alternating gradient accelerators”, Phys. Rev. Lett. 97 104801 (2006).
- [7] S.Y. Lee, G. Franchetti, I. Hoffman, F. Wang and L. Yang, “Emittance growth mechanisms for space-charge dominated beams in fixed field alternating gradient and proton driver rings”, New J. Phys. 8, 291 (2006).
- [8] S. Machida, “Resonance crossing and dynamic aperture in nonscaling fixed field alternating gradient accelerators”, Phys. Rev. ST Accel. Beams 11, 094003 (2008).
- [9] C. Johnstone, W. Wan and A.A. Garren, “Fixed field circular accelerator designs”, Proc. 1999 Part. Accel. Conf. 3068–3070 (1999).
- [10] D. Trbojevic, E.D. Courant and M. Blaskiewicz, “Design of a nonscaling fixed field alternating accelerator”, Phys. Rev. ST Accel. Beams 8, 050101 (2005).
- [11] J.S. Berg et al., “FFAGs for muon acceleration”, Proc. 2003 Part. Accel. Conf. 3412–5 (2003).
- [12] E. Keil, A.M. Sessler and D. Trbojevic, “Hadron cancer therapy complex using nonscaling fixed field alternating gradient accelerator and gantry design”, Phys. Rev. ST Accel. Beams 10, 054701 (2007).
- [13] D. Trbojevic, B. Parker, E. Keil and A.M. Sessler, “Carbon/proton therapy: A novel gantry design”, Phys. Rev. ST Accel. Beams 10, 053503 (2007).
- [14] D. Clery, “The next big beam?” Science 327, 142–143 (2010).
- [15] R. Barlow et al., “EMMA-The world’s first non-scaling FFAG”, Nuc. Instr. Meth. A, 624, 1–19 (2010).
- [16] Abramowitz and Stegun, Handbook of Mathematical Functions, (New York, Dover, 1970) p. 823.
- [17] N. Sloane, The On-Line Encyclopedia of Integer Sequences. Available online: http://www.oeis.org/
- [18] K.N. Boyadzhiev, “Derivative Polynomials for tanh, tan, sech and sec in Explicit Form”, Fibonacci Quarterly, 45.4, 291–303 (2007).
- [19] É. Forest, J. Milutinovíc, “Leading order hard edge fringe fields effects exact in (1+delta) and consistent with Maxwell’s Equations for rectilinear magnets”, Nucl. Inst. Meth., A269, 474–82 (1988).
- [20] M. Berz, B. Erdélyi, K. Makino, “Fringe field effects in small rings of large acceptance”, Phys. Rev. ST Accel. Beams, 3, 124001, (2000).
- [21] K. Makino, M. Berz, P. Snopok, C. Johnstone, “High-order description of the dynamics in FFAGs and related accelerators”, Int. J. of Modern Physics A, 24, 5, 908–922 (2009).
- [22] P. Walstrom, “Soft-edged magnet models for higher-order beam-optics map codes”, Nuc. Instr. Meth. A, 519, 216–21 (2004).
- [23] “Scaling of third-order quadrupole abberations with fringe-field extension”, M. Venturini, Proc. Part. Acc. Conf., 1590–2 (1999).
- [24] É. Forest, Y. Nogiwa, F. Schmidt, “The FPP and PTC Libraries”, ICAP 2006 Proc., 17–21 (2006).
- [25] S. Machida, É. Forest, “Beam optics and dynamics of FFAG accelerators, application of TPSA and polymorphism”, Proc. CP600, Cyclotrons and their App., (2001).
- [26] D. Abell et. al., “Simulations of non-scaling FFAGs using PTC”, in preparation.