1 Introduction

Gyrotron output systems consist of an output diameter taper which connects the interaction region with the main waveguide system, a quasi-optical mode converter, and the RF window [1]. The requirement of a diameter taper in gyrotrons is to provide a good match between input and output sections of the taper with very low spurious mode content. Various taper designs such as exponential taper [2], triangular taper, Chebyshev taper [2], Klopfenstein taper [3], and Hecken taper [4] can be employed for matching purposes. Flügel and Kühn considered modified Dolph-Chebychev tapers for the analysis and design of circular waveguide tapers [5]. However, in this work, we have used a raised cosine taper profile as it yields very low mode conversion [6]. The design and optimization of the raised cosine nonlinear taper is carried out for a specific 42 GHz, 200 kW, CW gyrotron operating in the TE0,3 mode with axial output collection. In this work, the analysis of the taper was carried out using a dedicated scattering matrix code as it is very fast and accurate for taper analysis [7].

Particle Swarm Optimization (PSO) is a simple, effective and promising method used for synthesis and optimization in a multidimensional feature space. The feasibility of a simple PSO for high-power microwaves control applications is illustrated in [8]. In this paper, we presented an improved particle swarm optimization method and used it for the design optimization of this specific raised cosine type of nonlinear taper which has been considered as a case study in this work.

2 Particle swarm optimization

Particle swarm optimization (PSO) is a population based stochastic optimization technique developed by Eberhart and Kennedy [9]. In this algorithm, a group of potential solutions, known as particles are flown through a multidimensional search space in order to get an optimum solution. The ith particle in the swarm (a population of particles) is represented as Xi = (xi1, xi2, ..., xiD), and its velocity is given by Vi = (vi1, vi2, ..., viD). The best previous position of each particle is given as Pi = (pi1, pi2, ..., piD). The best particle among all particles is represented by a symbol ‘g’. The velocity and position of each particle are updated using following relations:

$$v_{id} = w * v_{id} + c_1 *rand\left( {} \right)*\left( {p_{id} - x_{id} } \right) + c_2 *rand\left( {} \right)*\left( {p_{gd} ,x_{id} } \right),$$
(1a)
$$x_{id} = x_{id} + v_{id} ,$$
(1b)

where c1 (cognitive constant) and c2 (social constant) are two positive constants, rand() is a function to generate random number between 0 and 1, and w represents the inertia weight which is used to control between local and global search.

2.1 Parameter selection

The ability of PSO in exploring global optima is much dependent on the choice of parameters such as c1, c2, w, and Vmax. Various experiments for the selection of optimum parameters are demonstrated in [10]. In our experiment, a linearly decreasing inertia weight (w) from 0.95 to 0.4, as proposed in [11], is used. The maximum velocity in each dimension is restricted to Vmax = Xmax. The value of cognitive acceleration constant (c1) and social acceleration constant (c2) are fixed at 2.0 which are suggested as best in most experiments.

2.2 Improved particle swarm optimization algorithm

An improved PSO algorithm, presented recently by the authors [12], for constrained optimization is used in this work. The algorithm is the modification of the algorithm presented by Hu and Eberhart [13] for handling constraints efficiently. The algorithm includes three modifications. The first one initializes particle positions and velocity within the specific range, the second one handles the constraints following a penalty based approach and the third one impose restrictions to boundary constraints by the range of parameters.

The advantage of the proposed modifications is that the initialized particles need not to satisfy all the constraints as it is required in the algorithm [13] , thus making the algorithm easy to work and efficient to handle design constraints. The proposed algorithm is as shown in Fig. 1 with the modifications highlighted.

Fig. 1
figure 1

Improved PSO algorithm for constrained optimization [12].

3 Experiment

In this paper, the design of a nonlinear taper of raised cosine type has been performed following Wagner [14] for a 42 GHz, 200 kW, CW gyrotron. In this context, we considered four nominal parameters of the nonlinear taper namely - the length of the taper (L), the radius of the taper at the output end (r2), the number of sections to be discredited (N), and a geometrical parameter gamma (γ) while keeping the radius of the taper at input end (r1) constant. The range of design parameters considered for the design are summarized in Table 1. The objective for the design was to obtain a maximum transmission coefficient (i.e. S21-parameter), operating with TE0,3 mode with minimized spurious mode content.

Table 1 Range of design parameters.

The optimization of the design parameters for each taper was carried out using the improved PSO algorithm as presented in the previous section. The constraints considered for the problem were the boundary constraints imposed by the range of each parameter as specified in Table 1. The algorithm was executed with swarm sizes 5, and 10, respectively, for about 100 iterations in each case. The iterations considered for the design were sufficient for the convergence of the swarm. The convergence graph of improved PSO for each swarm size is shown in Fig. 2.

Fig. 2
figure 2

Convergence of improved PSO.

A transmission of 99.86% for the operating TE0,3 mode was obtained using optimized design parameters. The optimized taper has a length of 349.99 mm, an output radius of 37.32 mm, consists of 208 sections, and has a value of the gamma parameter of 0.504. According to our experiments, we found that other combinations of optimum parameters are also possible to get similar transmission coefficient. For instance, we also obtained a transmission of 99.85% for the same operating mode (TE0,3) using L = 315.45 mm, r2 = 35.0 mm, N = 469, and γ = 0.517. Multiple solutions are possible in different runs of the PSO algorithm due to its stochastic nature. We have also observed the effects of varying gamma parameter (γ), radius at the output end of the taper (r2), and length of the taper (L) on the taper synthesis and the transmission coefficient. The effect of the gamma parameter is shown in Fig. 3, while the effect of radius at output end of the taper on the transmission coefficient is shown in Fig. 4.

Fig. 3
figure 3

Effect of gamma parameter (γ) on the synthesis of raised cosine taper (L = 350 mm, r2 = 35.0 mm, N = 466).

Fig. 4
figure 4

Effect of radius (r2) on the synthesis of raised cosine taper (L = 350, γ = 0.5, N = 466).

The percentage of transmission for the main mode (TE0,3) for various taper lengths within the desired range are shown in Fig. 5. In addition, the percentage of transmission and reflection of the main mode along with its azimuthal neighbours for an optimized run (with r1 = 13.991, r2 = 37.32, L = 349.99, γ = 0.504, N = 208) are shown in Table 2.

Fig. 5
figure 5

Effect of length (L) on the synthesis of raised cosine taper (r2 = 35 mm, γ = 0.5, N = 466).

Table 2 Percentage of transmitted and reflected power (Frequency: 42.0 GHz).

4 Conclusions

An improved particle swarm optimization algorithm [12] is used for the design of a raised cosine non-linear taper for a specific high power gyrotron. A dedicated scattering matrix code was used for the fast and accurate analysis of the taper during the design process. The selection of PSO parameters was carried out in accordance with previous experimental investigations. The optimized results show the best matching obtained with the raised cosine taper which confirms effectiveness of this method for the design of nonlinear tapers. The time required for the optimization was 25 minutes approximately on a dual core processor. Though the scope of this work is limited to the design optimization of a raised cosine tapers for high power gyrotrons, one may extend this treatment for the design optimization of other types of nonlinear tapers as well.