Abstract
Double-sided air-cored tubular generators (DSTG) have higher power density than traditional air-cored generators, and are desirable for applications in renewable energy conversion systems. In order to achieve best power quality and maximum efficiency with minimum cost, multi-objective optimization of the DSTG is carried out. Aim to decrease the computational time and guarantee the accuracy of the multi-objective optimization of DSTGs, a new integrated modeling method is proposed and focused in this paper. The new modeling method integrates the analytical models and the machine learning models together. The experimental results prove that the new integrated model can provide higher accurate calculation results than analytical models and need fewer samples than machine learning models. The optimization time needed by the new model is 5 times shorter than that needed by the FE model.
Introduction
Compared with slotted tubular generators [1–3], air-cored tubular generators can achieve excellent force ripple values and a lower moving mass, which effectively enhance the dynamic stability and the generated power quality [4]. However, the relatively large equivalent air gap of air-cored configurations constrains the generator’s power density. A double-sided air-cored tubular generator (DSTG) adapts two layers of quasi-Halbach permanent magnet (PM) arrays to generate the magnetic field. It can provide higher power density than other air-cored tubular generators, and is suitable for applications in energy conversion systems of ambient vibrations, free-piston engines, and tidal wave energy conversion systems.
The basic performances of a single-phase DSTG were analyzed in [5] by using equivalent magnetic circuit model. In order to enhance the calculation accuracy, analytical models of the double-sided tubular motor were derived in [6]. Analytical models of the three phase double-sided generators with account of the armature reaction field were established in [7]. However, these analytical models ignored the effects of ends of cores, eddy currents and the flux leakage, which would cause calculated errors in the flux density and the performances.
In this paper, the differences between the analytical models [7] and the FE models are analyzed systematically. A new integrated modeling method is proposed and emphasized. Then, based on the fast but accurate new integrated models, a multi-objective optimization of the DSTG is carried out. An optimization design of the DSTG with best power quality, maximum efficiency and minimize cost is obtained.
Topology of double-sided tubular generators
The basic construction of the DSTG of one pole pair is shown in Fig. 1. The generator consists of two cylinder stators and one cylinder mover. Two layers of cylinder quasi-Halbach arrays are installed on the external stator and the internal stator separately. Two PM arrays can generate magnetic flux closed-loop themselves. This PM topology can provide higher radial magnetic field density than traditional single PM topology. The air-cored mover is placed between the external stator and the internal stator. The windings are twined around the hollow resin axis, which make it has lower mover mass, lower iron loss and lower force ripple than slotted tubular generators. When the mover moves straight reciprocatingly, the windings on the mover will cut the flux line to generate electromotive force.

Construction of the DSTG.
In the DSTG, the two PM arrays always have the same thickness h m and same composition structure. In the quasi-Halbach PM arrays, the width of the radial-magnetized PM is τ mr , the width of the axial-magnetized PM is τ mz . τ mr + τ mz = τ, where τ is the pole pitch of the PM array. The thickness of the windings is h c . The width of one winding is τ c , τ c ≈ τ∕3. When the external diameter of the external PMs R 2 and the thickness of air-gap are determined, the main dimensions need to be optimized in the DSTG is the τ mr , h m and h c . With the three dimensions, the internal diameter of the internal PMs R 1 and the internal diameter of the windings R c1 both can be derived.
It is well known that FE models have high accuracy but are quite time-consuming in calculation. In order to save calculating time, analytical models are often used in optimization designs instead of FE models [8]. However, the hypothesis conditions of the analytical models cause the calculation errors. To improve the accuracy, machine learning (ML) algorithm is put into use in machine modeling recently with the development of artificial intelligent technology. The ML modeling method uses FE results as learning samples. To get the high accurate learning result, the more outputs, the more samples and the longer calculation time is needed.
Generally, at least three or four performances need to be calculated in the multi-objective optimization of the electrical machines. In order to guarantee the calculation accuracy and decrease the numbers of the leaning samples, a new integrated modeling method is proposed. The overall diagram of the proposed integrated modeling method is shown in Fig. 2.

Overall diagram of the integrated modelling method.
This modeling method is a method utilizing difference concept. Analytical models are used as knowledge based coarse models, FE models are used as fine models. The differences between the coarse models and the fine models are used as samples to train ML models. The analytical models and the ML models are integrated to generate the proposed model.
Analytical models of the three phase double-sided generators derived in [7] are based on the magnetic vector potential method with the following assumptions: (1) the relative permeability of PMs 𝜇
r
= 1; (2) the effects of eddy currents are neglected; and (3) the z-axis length of the PM array is infinite. When the position of the windings is z, the introduced voltage across one phase can be described as Eq. ((1)). The electromagnetic force of one phase can be described as Eq. ((2)).
Main dimensions of the DSTG (Unit: mm)

Variation of the parameters with width of radial magnetized PMs.
In order to analyze the accuracy of the analytical models, FE models of the DSTG with two pole pairs are built and compared with the analytical models. The main dimensions of the DSTG are shown in Table 1. With the variation of the main dimensions of the DSTG, differences between the analytical models and the FE models are systematically analyzed. Figure 3, Fig. 4 and Fig. 5 illustrate the variations of four important performances and their differences between two models, where blue solid lines are the FE simulation results, dashed lines are the analytical results, and dotted lines are the differences in the figures. Power density is the ratio of output power to PM volume. Force ripple is the ratio of thrust peak-to-peak value to thrust force mean value. V
thd
is total harmonic distortion of output voltage as Eq. (3), where V
1 is the amplitude of the fundamental wave in the output voltage, V
n
is the amplitude of the nth harmonic in the output voltage.
The comparison results show that the maximum difference of the power density between FE results and analytical results is smaller than 3.5%, and the maximum difference of the efficiency is smaller than 0.4%. The two performances calculated by analytical models are accurate enough for the optimization.

Variation of the parameters with thickness of PMs.

Variation of the parameters with thickness of windings.
By contrast, the analytical results of force ripple and the V thd show big difference with the FE results. The dotted line in Fig. 3(c), Fig. 4(c) and Fig. 5(c) show that the difference of the force ripple between two models changes from 10% to 170%, which reaches its maximum when τ mr is 36 mm. The dotted line in Fig. 3(d), Fig. 4(d) and Fig. 5(d) show that the difference of V thd between two models changes from −10% to 28%, which reaches its maximum when the thickness of PM is 4 mm. The differences are too big to be ignored. The accuracy of the force ripple model and the V thd model need to be improved. However, there is no regular relationship between the differences and the dimensions can be found.
In the new integrated modeling method, machine learning algorithm are used to build a compensate model to improve the calculation accuracy of the analytical models. As shown in Fig. 2, the differences between the FE results and the analytical results are used as sample sets to training the machine learning models.
Different from the mechanism modeling, machine learning is a method to devise data-driven prediction models based on data analytics. In the machine learning modeling method, the size and the structure of the dataset would influence the accuracy of the machine learning method. With plenty of the sample data and the appropriate algorithm, a machine-learning model can provide high accurate prediction results, which makes it suitable for identifying nonlinear models for complex systems, such as electromechanical systems. KNN algorithm is used in [9] to establish a two-output model of a PMSLM based on 243 groups of FEA results, and the model accuracy is about 98%. Extreme learning machine is used in [10] to establish a nine-output model for a similar PMSLM based on 625 groups of FEA results. The number of the sample data increases quickly with the increment of the output numbers and the complex degree of the systems.
For multi-objective optimization of the DSTG, five performances, such as force ripple, efficiency, copper loss, V thd and output power, should be calculated by the models. In order to simple the machine learning model, decrease the number of the sample data and maintain the accuracy of the calculation results, only parts of the performances are chosen to be calculated by machine learning models in the proposed new modeling method. The output power, the loss and the efficiency calculated by the analytical models are accurate enough as shown in the former section. Only the force ripple and V thd should be predicted by the machine learning model. With the variation of width of radial magnetized PMs, the thickness of PMs and the thickness of windings, 300 groups of difference data between the FE results and analytical results are prepared as samples, in which 240 groups of data are used as train samples, and 60 groups of data are used as cross-validation samples.
In order to make accurate predictions possible, three different machine learning algorithms have been attempted. Linear regression is firstly used to explore and map the relationships between the dimensions and the performances as one of the most well-known and well-understood algorithms in statistics and machine learning. However, the fitting results in Fig. 6 show that the score of the linear regression models decreases quickly with the increment of the numbers of the original data. The accuracy of the seventh degree polynomial regression with 200 groups of original data is only 0.86.

Learning curves of the linear regression algorithms.
The learning curves of the gradient boosting regressor, Ada boost regressor and decision tree regressor are shown in Fig. 7. The three machine learning models are all based on decision tree algorithm, but Ada boost regressor is obviously more suitable for the prediction of sample data, which accuracy is about 0.96 when the number of the data is 200.

Learning curves of the decision tree regression algorithms.
K-nearest neighbors (KNN) algorithm is a simple but an effective algorithm for prediction the data in this paper. In KNN, predictions are made for a new data point by searching through the entire training set for the K most similar instances (the neighbors) and summarizing the output variable for those K instances. The learning curves of the KNN algorithm in Fig. 8 show that the accuracy of the KNN prediction results increase with the increment of the number of the original data. With all the 240 original data, the final scores of three different algorithms are calculated and shown in Table 2. It can be found that the KNN algorithm with K = 3 has the highest accuracy. Thus, the proposed integrated models of the DSTG can be obtained by summarizing the KNN machine learning models and the analytical models together.

Learning curves of the KNN algorithms.
Scores of the machine learning algorithms
In order to verify the accuracy of the new model, a prototype is manufactured as shown in Fig. 9 are built. The prototype is driven by a tubular motor. The position of the mover is measured by an optical grating, and the force acted on the mover is measured by a force sensor. The output signals of the optical gating and the force sensor are collected by the NI data acquisition card and connected with the computer. When the resistance load is 303Ω, the output of one phase is measured. The experimental results and the results of the models are shown in Table 3. The force result of the experiment is not compared because of the influence of large frictional force in the end part of the mover. The comparison of the results shows that the integrated model results have higher accuracy than the analytical results. The differences between the experimental results and the integrated model results are smaller than 6.8%.

The prototype of DSTG.
The experimental results and the results of the models
Based on the new integrated models of the DSTG, a multi-objective optimization of the DSTG is carried out. The overall diagram of the multi-objective optimization is presented in Fig. 10. Firstly, the possibility of the optimization is analyzed and the dimension constrains are defined according to the FE and analytical results. Then, the multi-objective function is built according to the optimization goal, and PSO optimization algorithm is used to obtain an optimal solution.

Overall diagram of the proposed multi-objective optimization.
The external PM array and the internal PM array has the same magnetizing structure and the same thickness in the DSTG. With the outer dimension of the external PM remained constant, the main dimensions need to be optimized are the magnetizing composition of the Halbach PM array (τ mr ), the thickness of the PM array and the thickness of the windings.
The results shown in Fig. 3 present that the force ripple gets the minimum when τ mr is 36 mm, and the V thd gets the minimum when τ mr is 28 mm. The best τ mr must exist between 28 mm and 36 mm to satisfy the combination optimization for force ripple and the V thd . The results shown in Fig. 4 and Fig. 5 illustrate that the increment of the PM thickness would decrease the power density and enhance the efficiency. The increment of the winding thickness would enhance the power density and decrease the efficiency. Therefore, there is a tradeoff between the efficiency and the power density. According to the conclusions, the dimension constraint set as Eq. (4) can ensure that all the possible optimal dimensions are included in the optimization.
Since the force ripple and the V thd could not be minimized at the same time according to the FE results, the performance constraint is set as Eq. (5) to guarantee the stationarity and reliability of the DSTGs.
In this paper, the objective is to maximize the output power density and the efficiency while minimizing the force ripple and the total harmonics distortion in the output voltage. Aggregating all objective functions together, a composite single-objective function as Eq. (6) can be created, in which F
ripple
is the force ripple, P
cu
is the copper loss of the windings, 𝜂 is the efficiency, P is the output power and V
pm
is the PM volume.
Particle swarm optimization (PSO) algorithm is applied to optimize the construction of the DSTG based on the integrated models [11]. 30 sets of particles are searching for the optimum in the PSO algorithm. The particles update their velocities v
i
according to the best positions P
g
at each generation. For the s +1 generation, the velocity of the ith particle is:
For the s +1 generation, the positon of the ith particle is:
In the optimization, the PSO algorithm is completed after 47 iterations. The variation of the fitness is shown in Fig. 11. The corresponding positions of the particles, the variation of three dimensions, are shown in Fig. 12. It is clear that the PSO has an excellent convergence rate. The optimal dimensions are thus found to be τ mr = 35 mm, thickness of PMs h m = 10 mm, and thickness of windings h c = 6 mm. Compared with the original dimensions, the optimized DSTG has higher efficiency and much lower force ripple. The details of the comparison are listed in Table 4.

Variation of the fitness.

Variation of the dimensions.
In this paper, a new integrated modeling method is proposed, which integrates the analytical models and the machine learning models together. It takes advantage of the time-saving of the analytical model, simples the prediction algorithm of the machine learning models and is as accurate as the FE models.
Comparison of the performances
Based on the integrated model, a multi-objective optimization of the DSTG is carried out. The efficiency of the optimized design is 4% higher than that of the original one. The force ripple of the optimized design is 10% lower than that of the original one. The total harmonic distortion of the optimized design is 3.6% lower than that of the original one.
The proposed integrated model is quite timesaving especially in the optimization. In the multi-objective optimization, about 1400 conditions are totally calculated by the integrated model, because 30 particles are compared in each iteration. Each condition will cost about 600 seconds by the FE models, but only 5 seconds by the new model. The calculation time need by the optimization based on the new model is about 52 hours with account of the calculation time of the samples. However, the calculation time need by the optimization based on the FE model is about 233 hours. The calculation time of the optimization based on the new model is 78% shorter than that of the latter one.
Footnotes
Acknowledgements
This work was supported in part by the National Science Foundation of China under Grant 51677172, in part by the Zhejiang Provincial Natural Science Foundation of China under Grant LY19E070006, LY18E070006 and LY17E070002.
