326
Views
0
CrossRef citations to date
0
Altmetric
Article

Calculation of the ideal isochronous field for the SC200 cyclotron using the Nelder-Mead simplex algorithm

, , , &
Pages 217-223 | Received 14 Jun 2019, Accepted 26 Aug 2019, Published online: 22 Sep 2019

ABSTRACT

In this paper, we propose a numerical method for ideal isochronous field calculation for the SC200 isochronous cyclotron based on the Nelder-Mead simplex algorithm. In this method, the radial field distribution is represented by an nth-order polynomial, an objective function is defined to describe the relative error of the orbital frequency, and the ideal isochronous field is calculated by optimizing the coefficients of the polynomial to minimize the objective function using the Nelder-Mead simplex algorithm. A comparative analysis of the proposed method and conventional methods indicates that the proposed method provides a more accurate ideal isochronous field, especially in the vicinity of the extraction region where the field flutter is large.

1. Introduction

In recent years, many compact cyclotrons have been built for the purpose of ion therapy. The SC200 cyclotron is a superconducting proton cyclotron used for proton therapy; it can accelerate protons to 200 MeV [Citation1]. SC200 has four spiral sectors; the mean magnetic field is approximately 2.95 T in the central region and 3.6 T in the extraction region, the extraction radius is approximately 60 cm, and the orbital frequency is 45.75 MHz. The details of the parameters of the SC200 cyclotron are listed in .

Table 1. Main parameters of the SC200 cyclotron

One of the factors that limit higher energy output in a classical cyclotron is the phase slip caused by the relativistic effect. In an isochronous cyclotron, the mean magnetic field (the azimuthally averaged component in the mid-plane) increases with the energy of the particles and maintains a constant orbital frequency to overcome the phase slip problem. The mean magnetic field that keeps the orbital frequency constant is called an ideal isochronous field.

As an analytical approximation to calculate the ideal isochronous field in cyclotrons, Gordon’s method has been proposed and applied for many years [Citation2Citation4]. Gordon’s method is highly effective, with a small requirement of computational resources, and is highly accurate in the low-flutter area. However, it is well known that Gordon’s method cannot provide accurate results when the field flutter increases, because this method is based on the assumption that the equilibrium orbit of the particles deviates slightly from a circular orbit.

With the improvements in microcomputing performance in calculating speed and memory capacity, it has become possible to achieve a more accurate ideal isochronous field by a numerical calculation. In Ref [Citation5]., a numerical method (the gyration frequency-based method) was proposed. The accuracy in the low-flutter area was greatly improved with this method; however, although the accuracy in the large-flutter area can meet the requirements of the physical design, it is still not very high and can be improved. In this study, we developed a numerical procedure that results in a comparatively higher accuracy for the calculation of the ideal isochronous field, especially in the vicinity of the extraction area where the flutter is large.

There are two steps in achieving field isochronism for the SC200 cyclotron. The ideal isochronous field calculation is the first step; after the ideal isochronous field has been determined, the shimming process is performed to realize the ideal isochronous field by adjusting the sector geometry or by trim coils [Citation6Citation9]. Magnet shimming is commonly an iterative process, in which the real mean magnetic field is compared with the ideal isochronous field to evaluate the quality of the isochronism in each iteration, and the error between the ideal isochronous field and the real mean magnetic field encourages further shimming in the next iteration. Both the quality of the shimming process and the quality of the ideal isochronous field are important for the isochronism; the value of improving the ideal isochronous field is that it can guide the subsequent shimming processes and improve the isochronism for the SC200 cyclotron.

2. Calculation process

There are two input parameters for the isochronous field calculation. One is the flutter field, and the other is the required orbital frequency. Prior to the calculation, a previously calculated or measured 2D magnetic field map in the middle plane Br,θ should be given. The 2D magnetic field map Br,θ is composed of the mean field component B0r and the flutter field component fr,θ:

(1) Br,θ=B0r+fr,θ(1)

where

(2) fr,θ=n=1,2,3Anrsinnθ+Bnrcosnθ(2)

As an input parameter, the flutter field does not change in the calculation process; our algorithm searches for a suitable radial field distribution B0r that matches the flutter field fr,θ to let the orbital frequencies approach the required constant value along the equilibrium orbits. In order to improve the accuracy, one can also scale up and down the flutter field linearly according to the mean field value B0r for each radius. Choosing a constant flutter field or a variable flutter field does not affect the calculation process. We chose a constant flutter in our algorithm for convenience.

As an example, the previously calculated map of the magnetic field was derived from the SC200 cyclotron using a finite element method (FEM) simulation. The flutter field is shown in . The required orbital frequency for the SC200 cyclotron is f0=45.75MHz.

Figure 1. Overview of the flutter field of the SC200 cyclotron

Figure 1. Overview of the flutter field of the SC200 cyclotron

The radial field distribution can be expanded into an nth-order polynomial:

(3) B0ir=a0+a1rrmin+a2rrmin2++aNrrminN(3)

For a given set of the coefficients a0,a1,a2aN, one can calculate the radial field distribution B0ir and then obtain the corresponding 2D field map Bir,θ. In each 2D field map, a number of equilibrium orbits are simulated to obtain the orbital frequency at different energies. Then, we define an objective function to describe the frequency error:

(4) FB0ir=maxfnf0(4)

or equivalently,

(5) Fa0,a1,,aN=maxfnf0(5)

where n denotes the energy steps, and fn=fEn denotes the orbital frequency of the particles at energy En for the given coefficients. It is evident that F0, and the objective function reaches a minimum (0) when the magnetic field B0ir is an ideal isochronous field. The magnitude of objective function values greater than the specified tolerance limit means that the magnetic field is different from the ideal isochronous field and hence it needs to be corrected by modifying the aN values. Therefore, the physical problem of determining the ideal isochronous field is transformed into the mathematical problem of finding the minimum value of the objective function Fa0,a1,,aN; the Nelder-Mead simplex method is a simple and effective method for this optimization problem.

The Nelder-Mead simplex method, also called the simplex method, is a commonly used direct search method to minimize a function of multiple variables for which derivatives may not be known. This method uses the concept of a simplex, which is a special polytope of n + 1 vertices in n dimensions. Examples of simplexes include a line segment on a line, a triangle on a plane, a tetrahedron in three-dimensional space, and so forth. The simplex method in n dimensions (nth-order simplex method) maintains a set of n + 1 test points arranged as a simplex. Four possible operations (reflection, expansion, contraction, and shrink) are performed on the simplex according to the objective function values measured at each test point. A new simplex that has superior vertices will be formed in each iteration. Finally, the simplex can converge to the optimal solution after several iterations.

One can start with a set of arbitrary reasonable aN values and generate the initial simplex, but in order to improve the convergence speed, it is preferable to choose an initial simplex near the optimal solution; thus, we choose the mean field B0gr obtained from Gordon’s method and use the corresponding aN values to generate the first vertex and the initial simplex. Considering the coefficients a0,a1,a2aNas the first vertex of the initial simplex X0=a0,a1,a2,aN, the other n vertexes of the initial simplex can be written

(6) X1=a0,a1+Δa1,a2,,aNX2=a0,a1,a2+Δa2,,aNXN=a0,a1,a2,aN+ΔaN(6)

in which the values of Δa1,Δa2,,ΔaN can be determined by

(7) Δai=ΔBirmaxrmini(7)

where ΔBi is the magnetic field error at the maximum radius. The selection of ΔBi is arbitrary; for example, ΔB1=4Gsand ΔB2=5Gscan be selected.

The iterative process of the simplex method has been described in many papers [Citation10Citation12]. The iterative process starts from the initial simplex, and the N + 1 vertices of the initial simplex are ranked from lowest to highest function values. The vertex with the lowest function value is Xl=a0,al1,alN (the best point), the vertex with the second-highest function value is Xm=a0,am1,amN (the middle point), and the vertex with the highest function value is Xh=a0,ah1,,ahN (the worst point), which satisfies FXl<FXm<FXh. Then, the centroids of all vertices excluding Xh can be defined as

(8) Xc=1ni=0nXiXh.(8)

Generally, the optimal solution is in the opposite direction of Xh; the reflection point can be defined as Xr:

(9) Xr=Xc+αXcXh.(9)

Usually, we select 1α1.5, where α is the reflection coefficient. We calculate the value of the objective function FXr at Xr and compare it with the function calculated at the other three points Xl, Xm, Xh, which results in four possible situations:

(1) The reflection point Xr is better than the best point Xl:

FXr<FXl<FXm<FXh

(2) The reflection point Xr is worse than the best point Xl but better than the middle point Xm:

FXl<FXr<FXm<FXh

(3) The reflection point Xr is worse than the middle point Xm but better than the worst point Xh:

FXl<FXm<FXr<FXh

(4) The reflection point Xr is worse than the worst point Xh:

FXl<FXm<FXh<FXr

Four possible operations (expansion, outside contraction, inside contraction, and shrink) are performed on the simplex according to each specific situation, and a new simplex that has superior vertices is obtained. The optimal solution can be obtained after several iterations. Finally, the isochronous mean field B0simpr can be constructed by using the best vertex of the final simplex Xl:

(10) B0simpr=a0+al1rrmin+al2rrmin2+alNrrminN(10)

and the corresponding 2D field map in the mid-plane is reconstructed by adding the mean field component to the flutter field:

(11) Bsimpr,θ=B0simpr+fr,θ(11)

The flow charts of the calculation process is shown in and .

Figure 2. Flow chart for the Nelder-Mead simplex method

Figure 2. Flow chart for the Nelder-Mead simplex method

Figure 3. Flow chart for calculating the objective function

Figure 3. Flow chart for calculating the objective function

To improve the calculation accuracy and speed, the entire computational domain can be divided into several small intervals; then, the isochronous field is calculated in each small interval in sequence. For example, the whole computational domain for the SC200 cyclotron is R=1060.4cm; we divided it into three small intervals, R=1035cm, R=3550cm, and R=5060.4cm. The first calculation is performed in the interval R=1035cm, the 2D field map obtained from the first calculation is further used as the input parameters for the second calculation in the interval R=3550cm, and so forth.

3. Comparison with traditional methods

To verify the performance of the proposed method, we compared it with Gordon’s method and the gyration frequency-based method. The 8th-, 10th-, and 12th-order simplex methods, Gordon’s method, and the gyration frequency-based method were used to compute the ideal isochronous field under the same initial conditions.

A comparison of the results from Gordon’s method, the gyration frequency-based method, and the 12th-order simplex method is shown in , and a comparison of the accuracy and time cost using different-order simplex methods is shown in .

Figure 4. Comparison of the isochronous field obtained from Gordon’s method, the gyration frequency-based method, and the 12th-order simplex method

Figure 4. Comparison of the isochronous field obtained from Gordon’s method, the gyration frequency-based method, and the 12th-order simplex method

Figure 5. Difference between the isochronous field obtained from Gordon’s method, the gyration frequency-based method, and the 12th-order simplex method

Figure 5. Difference between the isochronous field obtained from Gordon’s method, the gyration frequency-based method, and the 12th-order simplex method

Figure 6. Relative error in the orbital frequency of Gordon’s method, the gyration frequency-based method, and the 12th-order simplex method

Figure 6. Relative error in the orbital frequency of Gordon’s method, the gyration frequency-based method, and the 12th-order simplex method

Figure 7. Comparison of the integrated phase slip during acceleration from 150 MeV to 200 MeV

Figure 7. Comparison of the integrated phase slip during acceleration from 150 MeV to 200 MeV

Figure 8. Time cost for different-order simplex methods (left), and the value of the objective function for different-order simplex methods during the iterations (right)

Figure 8. Time cost for different-order simplex methods (left), and the value of the objective function for different-order simplex methods during the iterations (right)

As seen in and , the results from the three methods are quite similar; the difference between the results from these three methods is nearly zero in the small-flutter area (R = 0–55 cm), but the difference increases to approximately 10–40 Gs in the large-flutter area (R = 55–60.4 cm). With the improvement of the 2D field measurement technique and shimming technique, the accuracy of the mean field can reach 10−4 in engineering; the correction provided by the proposed method is approximately 10−3 (40 Gs/36,000 Gs). Thus, the correction is quite large and should not be ignored, and this result can be useful for guiding the shimming process.

As shown in , the relative error in the orbital frequency is small for all three methods in the interval of Ek<150MeV, but the error from Gordon’s method and the error from the gyration frequency-based method increase in the extraction region (Ek>170MeV) (approximately 0.0150%), whereas the error is quite small in the extraction region for the 12th-order simplex method (approximately 0.0010%). As shown in , the integrated phase slip is approximately 10° for Gordon’s method, approximately 2° for the gyration frequency-based method, and nearly 0° for the simplex method during acceleration from 150 MeV to 200 MeV (the energy gain is approximately 0.25 MeV per turn). Both of these results show substantial improvement in the field isochronism, which proves that the proposed method is highly useful in calculating the ideal isochronous field.

We also evaluated the performance of the proposed method by comparing the calculation speed for different-order simplex methods. We wrote MATLAB code for the ideal isochronous field calculation. This code runs on a workstation with 28 CPU cores using the parallel computing technique. The time cost and accuracy using different-order simplex methods are shown in .

The calculation speed of the codes depends mainly on the efficiency of searching the equilibrium orbits. The order of the simplex methods has little effect on the calculation speed; a higher-order simplex method will not increase the time cost. In our example, the equilibrium orbits were calculated using Gordon’s procedure [Citation13] with an azimuth step of 0.5°, the convergence accuracy of the equilibrium orbits is 106m. It takes approximately 1200 s to complete 100 iterations and 2400 s to complete 200 iterations. A lower objective function value suggests a more accurate isochronous field. The objective function value at the 200th iteration decreases with an increase in the simplex order, which indicates that a higher-order simplex method improves the accuracy of the isochronous field calculation.

Because the proposed method must solve a large number of equilibrium orbits in the calculation process, it is computationally expensive, and the time cost is large. Although the computational efficiency is not high, the time cost is less than one hour with the help of the parallel computing technique, which is still acceptable; thus, this proposed method is effective for the ideal isochronous field calculation.

4. Application

The results of the proposed method can be applied in the shimming process. In general, magnet shimming is an iterative process containing two main steps: 1) qualify the isochronous error, and 2) predict the magnet pole shape modification according to the isochronous error.

In the first step, the ideal isochronous field can be used to evaluate the isochronous error:

(12) ΔBr=BrBisor(12)

where Br is the measured or calculated mean field, and Bisor is the ideal isochronous field given by the proposed method.

In the second step, the correlation matrix method [Citation6, Citation8] is used to transform the isochronous error to pole geometry modification. In this method, we cut several rectangle patches from the pole edge at every radius to shim the isochronous field. The field change can be assumed to be the sum of the field change with every individual rectangle removed. The influence on the mean field of individual patches at radius r=ri is referenced as air, which is pre-calculated in each radius with a radius step of Δr=1cm using the FEM simulation. Then, the field change is

(13) ΔBr=Wiair,(13)

where i denotes the radius steps, and Wi is the width of the patch at ri. The least-square method is employed to solve Wi, and then the pole geometry is adjusted in accordance with the Wi values.

In the SC200 cyclotron, one degree of angle width is reserved on both sides of the pole for shimming; the structure of the SC200 poles and the angular width of the poles before and after shimming is shown in .

Figure 9. Overview of the pole structure for SC200 (left), starting and optimized pole geometry (middle), and the angular width of the poles before and after shimming (right)

Figure 9. Overview of the pole structure for SC200 (left), starting and optimized pole geometry (middle), and the angular width of the poles before and after shimming (right)

5. Summary

In this paper, we describe a numerical method for calculating the ideal isochronous field for the SC200 cyclotron. In this method, the radial field distribution is represented by an nth-order polynomial, an objective function is defined to describe the relative error of the orbital frequency, and the ideal isochronous field is calculated by optimizing the coefficients of the polynomial to minimize the objective function using the Nelder-Mead simplex algorithm.

The obtained result was compared with the isochronous fields computed by Gordon’s method and the gyration frequency-based method. The relative frequency error and the integrated phase slip were used as the field quality criteria. The relative error in the orbital frequency in the large-flutter area improved from 0.0150% to 0.0010%, and the integrated phase slip improved from 10° to nearly 0° by using the 12th-order simplex method for the SC200 cyclotron, which proves that the proposed method can yield a more accurate ideal isochronous field, especially in large-flutter areas such as the vicinity of the extraction radii.

The ideal isochronous field calculation is the first step in achieving isochronism for the SC200 cyclotron; after the ideal isochronous field is obtained, the real mean field is modified to approach the ideal isochronous field by adjusting the sector geometry in the shimming process. Both the quality of the ideal isochronous field and the quality of the shimming process are highly important for the isochronism.

The shimming technique has been greatly improved in recent years; however, the calculation of the ideal isochronous field is not commonly discussed. This paper presents an improvement in the ideal isochronous field calculation, which is helpful for improving the field isochronism for the SC200 cyclotron.

Acknowledgments

This work was supported by: (1) National Natural Science Foundation of China under [grant No. 11775258, 11575237], (2) International Scientific and Technological Cooperation Project of Anhui [grant No. 1704e1002207].

Disclosure statement

No potential conflict of interest was reported by the authors.

References

  • Karamysheva G, Gurskiy S, Karamyshev O, et al. Compact superconducting cyclotron SC200 for proton therapy[C]. Proc Cyclotrons; Zurich, Switzerland; 2016.
  • Tang JY, Wei BW. Theory and design of cyclotrons[M]. Hefei: University of Science and Technology of China Press; 2008.
  • Gordon MM. Calculation of isochronous fields for sector-focused cyclotrons[J]. Part Accel. 1983;13:67–84.
  • Gordon MM. Analysis of isochronous cyclotrons with separated hard-edge magnets[J]. Nucl Instrum Methods. 1970;83(2):267–271.
  • Cirkovic S, Ristic-Djurovic JL, Ilic AZ, et al. Comparative analysis of methods for isochronous magnetic-field calculation[J]. IEEE Trans Nucl Sci. 2008;55(6):3531–3538.
  • Qin B, Yang J, Liu KF. Precise isochronous field shimming using correlation matrix for compact cyclotrons[J]. Nucl Instrum Methods Phys Res A. 2012;691:129–134.
  • Sing Babu P, Goswami A, Sarma PR, et al. Optimization of sector geometry of a compact cyclotron by random search and matrix methods[J]. Nucl Instrum Methods Phys Res A. 2010;624:560–566.
  • Ming L, Zhong J, Cui T, et al. Application and development of a method to shim the isochronous field in small cyclotrons[J]. IEEE Trans Appl Supercond. 2013;26:4.
  • Chen D, Liu K, Yang J, et al. Fast and accurate magnetic field shimming for a compact cyclotron[J]. IEEE Trans Nucl Sci. 2013;60(3):2175–2179.
  • Wanga PC, Shoupb TE. Parameter sensitivity study of the Nelder–Mead simplex method[J]. Adv Eng Software. 2011;42(7):529–533.
  • Gao F, Han. L. Implementing the Nelder-Mead simplex algorithm with adaptive parameters[J]. Comput Optim Appl. 2010;51(1):259–277.
  • Han L, Neumann M. Effect of dimensionality on the Nelder-Mead simplex method[J]. Optim Methods Software. 2006;21(1):1–16.
  • Gordon MM. Computation of closed orbits and basic focusing properties for sector-focused cyclotrons and the design of” cyclops”[J]. Part Accel. 1984;16:39–62.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.