A Multi-Objective Design Optimization for a Permanent Magnet Synchronous Machine with Hairpin Winding Intended for Transport Applications

: Nowadays, interest in electric propulsion is increasing due to the need to decarbonize society. Electric drives and their components play a key role in this electriﬁcation trend. The electrical machine, in particular, is seeing an ever-increasing development and extensive research is currently being dedicated to the improvement of its efﬁciency and torque/power density. Among the winding methods, hairpin technologies are gaining extensive attention due to their inherently high slot ﬁll factor, good heat dissipation, strong rigidity, and short end-winding length. These features make hairpin windings a potential candidate for some traction applications which require high power and/or torque densities. However, they also have some drawbacks, such as high losses at high frequency operations due to skin and proximity effects. In this paper, a multi-objective design optimization is proposed aiming to provide a fast and useful tool to enhance the exploitation of the hairpin technology in electrical machines. Efﬁciency and volume power density are considered as main design objectives. Analytical and ﬁnite element evaluations are performed to support the proposed methodology.


Introduction
Due to the ever-more stringent emission and efficiency requirements, there is currently a wide interest in the research and development of more electric vehicles.Traction applications are pushing the boundaries for high speed and power density with innovations in cores, magnets, and winding designs [1].However, while higher speeds mean higher power for a given torque, they also result in additional losses in cores and windings, thus lowering the overall efficiency, and in structural challenges relative to the rotating components.Additionally, the relative distribution of these losses highly depends on the type of converter used to supply the machine.
In high power density traction applications, hairpin windings are widely spreading and currently seeing an ever-increasing interest in several documents [2][3][4][5].In comparison to windings with round conductors, the end-winding length is shortened and, consequently, the DC copper loss is reduced [6].Besides this end winding feature, the flat and "massive" shape of each hairpin leg reduces the DC copper loss compared to their round-wound counterpart.Hairpin windings achieve a higher fill factor compared to the round winding, thus obtaining higher current density and peak torque.In addition, in a series production context, a fully automated manufacturing process is possible, potentially reducing the associated costs [7].
On the other hand, being a recent technology, not much research is available on the design optimization of machines equipping this type of winding, whereas several studies focusing on optimization techniques have been proposed for electrical machines featuring random windings.For example, in [8], the analysis, design, and optimization of a permanent magnet synchronous motor (PMSM) intended for a campus patrol electric vehicle were presented.Its optimization objectives included minimization of voltage harmonic content and torque ripple.The optimum stator inductances and resistance of a PMSM were calculated in [9] using a particle swarm optimization (PSO) method.Furthermore, the maximization of the flux-weakening region was pursued in [10], where a surface-mounted PMSM was optimized.In [11], the torque ripple of a PMSM under both transient state and steady-state conditions was minimized through an analytical solution.A multi-physics optimization program based on a multi-objective genetic algorithm was developed in [12], to achieve a trade-off solution among the electromagnetic, mechanical, and thermal aspects.
Regarding hairpin windings, a design optimization was carried out in [13], where the aim of the optimization study was that of reducing the torque ripple, while little attention was given to the most critical challenge of hairpin windings, i.e., the high copper losses at high-frequency operation.This is due to skin and proximity effects, where the feeding alternating current flows in a fraction of the conductor's cross section.These phenomena exacerbate at high frequency operations and result in an increase of the effective conductor resistance (and, thus, of losses) [3].
A simple motor design for traction applications was introduced in [14], but with no optimization strategy being implemented.In [15], an induction motor equipping hairpin winding was optimized aiming at a low cost, rare-earth free design.However, the number of hairpin layers in the slot was kept fixed, thus limiting the degrees of freedom of the design optimization.Additional work has been recently published on hairpin windings, but they focus either on modelling aspects (e.g., AC loss estimation [2]) or preliminary calculations [6] or sensitivity analyses [16].
Considering all the above, in this paper, the aim is to use dedicated optimization strategies for the design of an electrical machine with hairpin windings intended for a race car application.As a case study to investigate the above concepts, the surface mounted PMSM "roughly" designed in [17] is considered.The design achieved in [17] is based on a random winding stator, thus the initial aim of this work is to transform the random winding into a hairpin one, while the second step is to move from a "rough" machine design to an optimal one.To this purpose, two objective functions were selected: maximization of the volume power density and minimization of the power losses.These are indeed the most critical and conflicting figures to achieve when hairpin windings are involved.Before implementing the optimization process, first a sensitivity analytical study is carried out on the number of poles and slots per pole per phase.This led to define a starting machine design which is used to validate the analytical sizing approach through the finite element (FE) methodology.Once validated, the analytical tool is firstly used to perform a study on the parameters mostly affecting the selected objectives, and then to run the optimization to achieve an optimal solution.The use of the analytical sizing equations ensures a limited computation burden compared to numerical-based (e.g., FE) approaches.

Assumptions and Constraints
In [17], the whole propulsion system of a Formula SAE [18] car was designed, with a detailed focus on the propulsion motor being the case study of this paper.The selection of the system architecture, i.e., a two-motor layout implemented onto the rear non-steering axle, was based upon budget considerations.Additional constraints, such as the overall dimensions of the chassis and those imposed by the race regulations were accounted for.When it came to the motor torque-speed usage during an endurance event, the resulting reduced flux-weakening region led to select the popular surface-mounted PMSM layout as the most suitable for this application, also considering lower production costs in a customized case, compared to interior PM or synchronous reluctance machine layouts.
The Formula SAE car project must meet a series of technical constraints imposed by the regulation.These are summarized as follows:

•
The diameter of the wheels must be ≥203.2mm.

•
The maximum power P required from the battery must not exceed 80 kW.

•
The maximum allowed DC-link voltage V DC must not exceed 600 V.

•
There are no limitations concerning the number and the type of electric motors.
A summary of the choices done in [17] is listed in Table 1.These are used as starting points for re-designing the motor with hairpin conductors and applying an optimization strategy on it.The main design parameters of the machine obtained in [17], used as a benchmark here, are listed in Table 2.These are used as starting conditions for the analytical sizing tool implemented as the basis for the multi-objective optimization, and whose equations are reported in the next subsection.

Machine Sizing Equations
The design process is initialized by defining some basic machine performance requirements, such as output power, speed, voltage, and desired efficiency [19].The values of such input parameters are listed in Table 2.The second step is that of making some assumptions on the core materials and the cooling system, which are listed in Table 3, where also the main parameters used during the design process are described.Core materials and cooling system allow defining magnetic and electric loadings and the maximum flux density values allowed in the various parts of the motor.Assuming a number of phases m equal to 3, the slot number is calculated as Q = q•m•2p, and the number of turns per phase as N = z q •q•p.Given the type of winding structure initially assumed, short pitch factor k cp is equal to 1, while the distribution factor k d is calculated using (1), where β is the slot pitch angle.The winding factor k w is given by the product of k cp and k d [19].
Having preliminarily selected the D/L ratio, the starting point for the motor sizing is the torque expression given in (2).In (2) B is the RMS value of the fundamental harmonic B max of the airgap flux density, which is obtained from (3) using the Fourier series decomposition of a square wave waveform that has amplitude B ag .A is the RMS value of the linear current density.Equation (2) permits to find the values of D and L.Then, hypothesizing in the PMs the same flux density as in the airgap leveraging on Gauss' law, (4) can be used to determine the thickness l m of the PMs.This means that the PMs are initially sized to meet the no-load requirements.In (4), B r and µ r are the residual flux density and relative permeability of the PMs [19].
The total area S all slots to be dedicated to the three machine phases can be calculated using (5).Yoke thickness W y and tooth width W t can be calculated using ( 6) and ( 7), respectively.In (6), Φ p is the physical flux per pole and B y the maximum yoke flux density, whereas in (7) B avg is the average airgap flux density, λ s is the stator slot pitch and B t is the maximum yoke flux density [19].

Power Losses
Besides these design aspects, the most crucial factor to consider when designing an electrical machine with hairpin windings is the AC Joule losses.In random windings with stranded conductors, the AC losses can be neglected in the first approximation.In contrast, in hairpin windings, AC losses need to be carefully considered and determined.The DC resistance R DC of a machine phase depends on the total length of one coil L c , the number of turns in series N and parallel paths per phase, the cross-sectional area of the conductor S c and the conductivity of the conductive material σ c .Considering a uniform current distribution at any frequency in stranded conductors, the losses associated with the DC resistance are the only contribution to Joule losses.On the other hand, in hairpin conductors, skin and proximity effects and the ensuing AC losses are usually determined through the ratio between R AC and R DC [6] .For each layer k in the slot, this ratio (k Rk ) is determined using (8), where ϕ, ψ and ξ are expressed as in ( 9)- (11).In (11), h c0 and b c are the height and width of the conductors, respectively, while b is the slot width, ω is the supply frequency, and µ 0 is the permeability of vacuum.
ϕ(ξ) = ξ sinh2ξ + sin 2ξ cosh 2ξ − cos 2ξ ( 9) Regarding iron losses, materials' suppliers usually give the loss density in W/kg, at specific frequency and flux density values.This includes both eddy current and hysteresis losses.Analytically, iron losses can be found by dividing the magnetic circuit of the machine into n sections, in which the flux density is constant.Once the masses m Fe,n of the different n sections are calculated from the volume density, the losses P Fe,n in these parts can be approximated as in (12).Here, k Fe,n are "loss" coefficients that, for a synchronous machine, can be imposed equal to 2 in the teeth and 1.6 in the yoke; P 10 is the loss density at 1 T; B n is the maximum flux density in the n-th section [19].The total power losses are determined using (13), where P Cu DC and P Cu AC are the DC and AC copper losses, respectively.

Power Density
For the sake of completeness, the formula for the calculation of the volume power density is reported in (14).This is found through the ratio between the output power P and the machine volume Vol, which is defined once the main dimensions are all calculated.

Optimization Process
As mentioned in Section 1, there are two objectives, i.e., the maximization of the volume power density (see (14)) and minimization of power losses (see (13)), which is equivalent to maximizing the efficiency.There are four input variable parameters, i.e., pole pair number, slot per pole per phase number, conductors' number in the slots (N), and motor's axial length.Additionally, several constraints must be met for the optimization process.Therefore, a Multi-Objective Evolutionary Algorithm (MOEA) could be used, which needs to set the weight of the input parameters based on their effect on the two objectives, and a starting point for initializing the first population.Using the equations introduced in Section 2, a sensitivity analysis is first carried out to understand the dependence of the two objectives on the four variable parameters.
The MOEA expects a single fitness value with which to perform the selection.Additional processing is sometimes required to transform MOEA solutions' fitness vectors into a scalar.Its sequential task decomposition includes initialized population, fitness evaluation, which has a sub-level as vector transformation, recombination, mutation, and selection [20].Figure 1 shows these decomposition tasks in five sections which has the main loop for selecting the data between the third and fifth levels.Regarding the constraints, first, the tooth width is imposed greater than 1.6 mm for structural reasons.Secondly, the loss density B 10 at 1 T used in (12) for iron loss calculation is updated during optimization as it depends on frequency.Thirdly, to make the evaluation of the optimization objectives consistent, the inverse of the power density is considered, so that both the objectives must be minimized.Assuming to keep the frequency lower than 1 kHz as per [17], the maximum pole number should not exceed 8. Due to the dimensional limitations in terms of length and axial diameter, as well as the constraint on the tooth width, the maximum q is kept lower than 8.The axial length is varied between 10 mm and 100 mm.With an axial length higher than 100 mm the motor's diameter becomes less than 325 mm, resulting in a tooth width < 1.6 mm even with q = 1.The last constraint is on the maximum RMS value of the line-to-line voltage (see Table 2), which is limited by the maximum battery voltage (see Section 2.1).Another constrained value is the number of conductors per slot, which must be necessarily even due to the hairpin winding characteristics.A summary of the constraints is listed in ( 15)- (18).

Preliminary Sensitivity Analysis and Validation of the Analytical Model
Before using the analytical model for optimization purposes, it needs to be validated against the more accurate FE method.Once validated, it can be safely used for optimizations, thus saving computation time as opposed to FE.An initial sensitivity analysis could be carried out varying the number of poles and slots per pole per phase while keeping the other parameters constant.The sensitivity analysis results are illustrated in Figure 2, where power losses and volume power density are taken as indicators to suitably select q and p.The best solution is achieved with p = 4 and q = 2.The selected p-q combination represents the best trade-off in terms of maximum power density and minimum power losses.In fact, only two machines (referred to as "A" and "B" in the figure) achieve higher power density values, but these feature much larger losses (by 8.9% and 23.9%, respectively).
10mm ≤  ≤ 100mm  − ≤ 540V "A" and "B" in the The dimensions analytically obtained are used to build the machine geometry and a corresponding model within the FE-based software MagNet.Figure 3 shows the FE model of the motor, enriched with a flux density map and field lines distribution.Figure 4 plots the output torque obtained with the currents in phase with the corresponding back electromotive forces, with an average value equal to 30.1 Nm being obtained.This matches well the torque value of 30 Nm assumed in the analytical sizing.Besides the torque, the analytical and FE no-load voltage and flux density values in the various parts of the motor are compared.Figure 5 shows a comparison between the fundamental harmonic of the lineto-line voltage (red line) obtained from FE simulations and the corresponding sinusoidal waveform assumed for the analytical sizing (in green), with an error lower than 1% being achieved.For completeness, the FE voltage waveform evaluated via FE is also observed in Figure 5.In addition, Figure 6 illustrates the flux densities in the airgap and the main iron parts of the motor, with the blue lines referring to FE results and the red text relative to the analytical assumptions (see Table 2).Good matching is observed, with an error ranging from 3% to 8%, thus allowing to conclude that the analytical sizing equations, although suitable for preliminary sizing only, can be safely used for optimization purposes.
In the next subsection, the effect of some machine parameters on power density and power losses are investigated before proceeding with the optimization.This study allows weighting any of the input parameters in the multi-objective optimization process which will be the focus of Section 4.3.

Effective Parameters
Considering the analytical equations reported in Section 2.2, it is clear that several parameters can be utilized to achieve the main design objectives of this work, i.e., power density maximization and power losses minimization.Thus, a sensitivity analysis is performed.While the results of this study can vary depending on the power range, the geometrical and magnetic features, the airgap thickness, etc., of the PMSM motor under analysis, for the case study considered in this paper the sensitivity study can provide useful information for a first exploration of weight allocation during optimization.Assuming the hairpin motor of the previous section as the benchmark, the parameters used for the sensitivity study are normalized over the corresponding values of the benchmark machine.Figures 7 and 8 show the total power losses and volume power density for the four input parameters, i.e., pole pair number, slot per pole per phase number, conductor per slot number, and axial length.These parameters are changed "1-by-1" in this first exploration.All the curves meet at 1 p.u., corresponding to the benchmark machine.All the parameters have a non-negligible effect on both power losses (Figure 7) and power density (Figure 8).According to the methodology described in [20], the weight of each input parameter to be imposed in the optimization can be found through these figures.Using a coefficient equal to 1 for N, the pole pair number, the slot per pole per phase number and the axial length feature coefficients equal to 1.38, 1.1 and 1.15, respectively.

MOEA Results and Comparison
Regarding the mentioned sequential task decomposition of the optimization method (see Figure 1), before any mutation, the constraints ( 15)-( 18) should be carefully considered.After running the optimization algorithm using 500 generations and 50 individuals per generation, the Pareto front shown in Figure 9 is finally obtained, where the last 50 designs are observed.Every sequential task of the optimization process shown in Figure 1 has been implemented in Matlab environment.
h.These parameters are changed "1 1" in this first -  The optimal machine design is also highlighted in Figure 9, and its geometry is illustrated in Figure 10b, whereas in Figure 10a the machine design resulting from the first sensitivity analysis is shown for the sake of comparison.Table 4 compares the analytical results obtained for the motor with round winding designed in [17], the motor with hairpin winding resulting from the first sensitivity analysis, and the optimum one.With a focus on the motors with hairpin windings, the main indexes such as efficiency, volume power density, volume torque density, and power losses have been improved by 0.15%, 10.55%, 12.3%, and 3.4%, respectively.For completeness, the full-load output torque of the optimum motor obtained using FE is reported in Figure 11, with the mean value being highlighted in red and equal to 30.2 Nm.  on a "one one" sensitivity study and then on the application of a multi ≈

Conclusions
In this paper, a fast and accurate optimization tool was introduced for optimal exploitation of hairpin technologies in electrical machines intended for traction applications.The optimization tool is aimed at maximizing power density and efficiency, which are key figures for the application at hand.In addition, given the challenges featured by hairpin conductors at high-frequency operations, these two objectives are rather conflicting, thus making the machine design complex.The optimization strategy, based first on a "oneby-one" sensitivity study and then on the application of a multi-objective evolutionary algorithm, proved that these two objectives can be pursued and achieved simultaneously, with excellent performance enhancement being obtained.
As a benchmark case study, a surface-mounted PMSM equipping random windings and previously designed for a Formula SAE car was considered.Therefore, the first exercise consisted of replacing the random winding with hairpin conductors.A preliminary sizing was first carried out based on the requirements of the application at hand.Then, the analytical sizing tool was validated against FE evaluations, with a maximum error of ≈8%, thus making the analytical equations a safe means for the optimization procedure.A sensitivity analysis was performed to suitably weight the optimization input parameters and, finally, the optimization algorithm was run.The optimal motor, which was selected for comparative purposes against the benchmark motor with random windings and a non-optimal hairpin motor, showed very promising results and significant performance improvements.In particular, the main indexes such as efficiency, volume power density, and power losses, were improved by 0.15%, 10.55%, and 3.4%, respectively.

Figure 3 .
Figure 3. FE one pole pair model of the motor with the hairpin winding, highlighting flux density map (T) and field lines distribution at full-load operation.

Figure 4 .
Figure 4. Output torque (in blue) and its average value (in red) obtained via FE analysis.

Figure 5 .
Figure 5. FE no-load line-to-line voltage (in blue) and its fundamental harmonic (in red) vs. analytical no-load line-to-line voltage (in green).

Figure 6 .
Figure 6.Comparison in terms of flux density in the airgap, teeth, and yoke.

Figure 7 .-Figure 8 .
Figure 7. Effect of the input parameters on the total power losses.

Figure 9 .
Figure 9.The final Pareto front with the final optimum point.

Figure 10 .
Figure 10.Comparison between the geometries of (a) the first analyzed motor and (b) the optimal motor.

Figure 11 .
Figure 11.Output torque of the optimum motor.

Table 1 .
Design choices and requirements.

Table 3 .
Design choices and symbols.

Table 4 .
[17]arizing comparison among the benchmark motor[17], the hairpin motor obtained through the first sensitivity analysis and the optimum hairpin motor.