Abstract
This paper proposes a coupled finite element analysis of magnetic-thermal fields using an adaptive single-mesh method. To avoid errors from the data transfer and the mesh reconstruction due to different mesh requirements for the magnetic and thermal analysis, this proposed method built single mesh for both analyses. The results of the coupled parameters were transmitted through the single mesh between magnetic and thermal fields. According to the characteristics of the magnetic and the thermal distribution, the master-slave node method was employed to simplify the original element matrix into the magnetic and the thermal matrices, where slave nodes were no longer solved in the solving process. Results of the slave nodes were expressed by their mater nodes using weight coefficients to regain the results of the original element matrix. A permanent magnet machine was introduced to validate the proposed method with both the commercial software and the experimental tests. Compared to the commercial software, the time cost was reduced by more than 8.0% when a higher accuracy of the thermal analysis was obtained.
Introduction
Recently, requirements of miniaturization, energy efficiency, and cost reduction have been claimed for electric machines with extensive applications of the military, transportation, aeronautics, and astronautics, etc. Taking advantages of superior power density and efficiency, low noise, and low maintenance costs [1–3], permanent magnet (PM) machines have been widely used for these applications, where the electromagnetic performance of electrical machines has been pushed to the extreme. While the materials, such as winding insulation and permanent magnets, are subjected to their temperature limits, it is necessary to analyze the thermal field to the same extent as the electromagnetic design [4]. The thermal analysis for electrical machines needs comprehensive consideration of magnetic, fluid, and thermal fields. Moreover, the problems of iron losses and thermal coefficients calculation remain unresolved. Lumped parameters (LP) [5–7], finite element analysis (FEA) [8,9], and computational fluid dynamics (CFD) [2] have been widely used for the thermal analysis in electrical machines. Normally, losses of each component in machines are calculated by the magnetic analysis and then imported as heat sources into the foregoing thermal analysis models [10,11]. The LP method is preferred for the preliminary and optimization designs due to its low computation need and incapability of field distribution calculation. Although the CFD method improves the thermal analysis by considering the influence of fluid dynamics, the demand of the computing effort is quite large with the fluid domain modeling, especially for the transient analysis. Various researches have proved that the FEA method can achieve reasonable results for both the magnetic and the thermal analysis with an acceptable efficiency using an adaptive method, shape optimization, etc. [10–15]. However, there are still lots of problems during the coupled analysis using commercial FEA software, such as massive computing effort, customized settings, iron loss calculation under non-sinusoidal magnetization, errors from the data transfer and the mesh reconstruction, etc. [16,17]. The meshing requirements of the magnetic and thermal analysis can be quite different according to the characteristics of the field distribution. For electrical machines, iron losses account for a large proportion of the total losses. Despite the heat sources from the iron losses are closely related to the flux density distribution, the thermal gradient is quite different from the magnetic gradient with specific cooling conditions. The emphasis of the mesh subdivision for the magnetic and thermal analysis is quite different. In many researches works, two meshes are separately built for the magnetic and thermal analysis, which results in errors from the data transfer and the mesh reconstruction.
This paper proposes an adaptive single-mesh method for the coupled magnetic-thermal fields analysis in machines. Firstly, a fine mesh is built for both the initial magnetic and the initial thermal analysis to avoid errors from the data transfer and the mesh reconstruction. Then, an adaptive meshing based on the master-slave method is employed to reduce the matrix order for the non-linear calculation process. Moreover, the object-oriented method is applied to optimize the programming architecture for a flexible customization in the coupled analysis [18]. Finally, a classical surface-mounted permanent magnet (PM) machine is implemented to compare the performance of the proposed method with ANSYS Workbench. Both the magnetic and the thermal results are validated by experimental tests.
Adaptive single-mesh method for coupled FEA
Thermal equations based on Galerkin method
According to the principle of heat transfers, the differential equation of the transient heat conduction with an internal heat source can be deduced as Eq. ((1)).
The first-class boundary condition, where the temperature is a constant value or a function of the position and time, can be treated as Eq. ((2)). The second-class boundary condition, where the heat flux is specific, is expressed as Eq. ((3)). For third-class boundary condition, where the temperature and heat convection coefficient is known, the formula is established as Eq. ((4)).
To simplify the problem of solving differential equations into the problem of solving linear algebraic equations, the Galerkin method is employed. The weight function can be written as Eq. (5), so Eq. (1) can be deduced as Eq. (6).
According to Green’s theorem and the differential relation between coordinates and boundary elements on the boundary in Eq. (7), Eq. (6) can be deduced as Eq. (8).
For the thermal FEA with triangular elements, the three-vertex linear interpolation method is employed like the magnetic analysis. The assembled algebraic equations can be deduced as Eq. (9), where the coefficient matrices [K], [N], and [P] are listed in the Appendix.
To avoid errors from the data transfer and the mesh reconstruction in the coupling process, a fine mesh was built considering the characteristics of both the magnetic and the thermal field distribution. By applying an adaptive meshing method, the order of the original element matrix (OEM) was reduced into the magnetic element matrix (MEM) and thermal element matrix (TEM) by eliminating certain nodes according to characteristics of the magnetic and thermal fields, respectively. The magnetic and thermal problems were individually solved by the MEM and TEM, while results could be mutually exchanged through OEM by expressing slave nodes with their master nodes.
The realization of the adaptive meshing method was illustrated by taking a solution of a non-linear field as an example. According to the OEM, the zero-order approximate solution was calculated and posterior errors were then estimated according to the distribution. A diagram of the master-slave definition is illustrated in Fig. 1. Node 5 could be defined as a slave node when

Diagram of the master-slave definition.
Since node 5 was a slave node to node 2 and 3, the solution of node 5 could be expressed as
To achieve the programming design of the adaptive mesh method, the reassembled coefficients of each slave node should be correspondingly applied to the original coefficient matrix and the source matrix. Thus, the definition and weight coefficients of master-slave nodes were added into the original node classes, as shown in Table 1.
Structure of the node classes for the adaptive meshing method
M-S flag denotes Master-Slave flag.
The data to be exchanged in the coupling process included losses and material properties, which were sensitive to the temperature. The material properties varied with the temperature, such as the copper resistivity, the coercivity of the PMs, and the B-H curves of the silicon steels. The variations of the material properties affected both the magnetic and the thermal performance. In this paper, the thermal modification of the copper resistivity and the coercivity of the PMs were considered in the coupling process. The heat sources for the thermal analysis were calculated according to the results of the magnetic analysis, especially the iron and copper losses. The process of the proposed coupled FEA was achieved as follows.
The zero-order approximate solution of the magnetic field was calculated according to the OEM. By applying the adaptive meshing method, the MEM was obtained by eliminating magnetic slave nodes from the OEM.
Results of magnetic master nodes along with the normal nodes were solved according to the MEM, and then applied for calculating results of magnetic slave nodes using the corresponding weight coefficients.
Heat sources were calculated in elements of the OEM. The zero-order approximate solution of the thermal field was solved to gain the TEM using the adaptive meshing method.
Results of the thermal field were obtained in the same way of Step 2.
The material properties, which were sensitive to the temperature, were re-defined according to the thermal results and imported to the magnetic analysis back to Step 2 until convergent results were achieved for both the magnetic and the thermal fields.
The diagram of the coupling process is illustrated in Fig. 2. The computation requirements were reduced by applying the simplified MEM and TEM, while the accuracy was improved by exchanging the coupled parameters in the single mesh OEM.

Process of coupled FEA, where 𝜌cu_0 is the initial value of the copper resistivity, and ϵ T is the residual of the copper resistivity.
Design specification of the PMSM
A classical three-phase 4-pole surface-mounted PM machine, as given in Table 2, was introduced to validate the proposed coupled FEA method. Software GID was employed for pre- and post- process during the coupled FEA. Triangular element type (maximum length of elements 2 mm) was applied to build the original fine mesh with 5907 nodes. For the transient magnetic analysis, the stop time and time step were set to 0.1 s and 0.002 s respectively, while the thermal problem was solved in the steady-state. The residual was set at 0.0001 and 0.01 for the magnetic and thermal analysis. Same simulation setup was used in the commercial software ANSYS. The thermal coefficient of the copper resistivity was considered in the later calculation of the copper loss, while the remanence and the coercivity of the PMs at different temperatures were obtained by the fitting curves given in Fig. 3. The remanence, shown in Fig. 3a, was a linear function the temperature. The relation between the coercivity and the temperature, shown in Fig. 3b, was non-linear. The thermal modification of the coercivity was achieved by piecewise linear fitting formulas. Both the remanence and the coercivity decreased with increasing temperature resulting in lower flux density as well as lower iron losses.

Remanence and coercivity of NdFeB_30SH at different temperatures.
Heat sources were considered as the sum of copper losses, iron losses, and mechanical losses. The mechanical loss was composed of the bearing and the windage losses. Since the bearing losses could not be considered by 2-D analysis, only the windage loss, which was 1.5% of the rated power according to machine design experience from the manufacturer, was assumed in the following analysis. The copper losses P
cu were expressed by Eq. (13).

Equivalent model for thermal conductivity calculation in slots.
Meanwhile, the iron losses were predicted according to Eq. (15).
In the thermal analysis, heat transfers by conduction and convection were discussed while the heat transfer by radiation was neglected. Thermal conductivities of the windings and silicon steels were calculated by Eqs ((17))–((19)), while convection coefficients of the air-gap and the housing were calculated by Eqs ((21)) and ((22)). The winding in each slot was equivalent to a concentrated winding enwrapped by the uniformly distributed insulation in the middle, shown in Fig. 4. The thermal conductivity of the windings was calculated as Eq. ((17)).
For thermal conductivity calculation in silicon steels, the axial thermal conduction was equivalent to a series connection of multi-layered flat walls while the radial and circumferential ones were equivalent to parallel connections of multi-layered flat walls. The thermal conductivities of the silicon steels were calculated as Eqs ((18))–((19)).
The heat transfers between the stator and the rotor were accomplished through conduction and convection in the air-gap, which could not be fully considered by the third-class boundary. An equivalent convection coefficient 𝜆
e
was introduced to the air-gap treatment [19]. The calculation of 𝜆
e
was relevant to the fluid dynamics in the air-gap region. When the fluid in the air-gap was laminar flow, 𝜆
e
was equal to the thermal conductivity of air. When the Taylor number, expressed by Eq. (20), in the air-gap was greater than the critical value 41.2, Taylor–Couette vortices were found in the air-gap region.
The convection coefficient of the housing was expressed by the empirical formula as Eq. ((22)).
The time costs of the uncoupled magnetic and thermal analysis were 264.2 and 12.4 seconds. By applying the adaptive meshing method, 109 nodes (1.8%) and 121 nodes (2.0%) were defined as slave nodes for the magnetic and thermal analysis, respectively. Despite the massive computing efforts of the zero-order solution according to the OEM, the time costs of the non-linear process were correspondingly reduced by 21.1 s (8.0%) and 1.2 s (9.7%). The time cost of the coupled analysis with the proposed method was 51 minutes, 18 seconds, while the one with the commercial software ANSYS Workbench was 55 minutes, 52 seconds. The time cost was reduced by 274 s (8.2%) because of the matrix reduction and the lack of the mesh reconstruction by applying the adaptive single-mesh method. In addition, experimental tests were carried out to validate the proposed method. The magnetic and thermal analysis was verified under no-load and rated on-load operation. The test-rig shown in Fig. 5a was mainly composed of the PM machine, a companion machine, an inverter, and the temperature monitor. The temperatures of key components were measured by thermocouples, which were mounted in the surface of the stator, the middle of the stator yoke, and the winding in slots. The installation diagram of the thermocouples is shown in Fig. 5b, in which each Arabic numeral indicates four circumferential uniformly mounted thermocouples.

Experimental test setup. (a) Test-rig. (b) Installation diagram of the thermocouples.
Figure 6 compares the magnetic results from the proposed method and ANSYS Workbench. In Fig. 6, the distribution results of the magnetic flux lines, including the magnitudes, the tendencies, and the gradients, achieve a good correlation. Compared to the results from ANSYS, the main difference occurs in the four stator teeth between adjacent PMs marked by four eclipses in dash lines, which is the result that the proposed method lacks mesh refinement to consider the magnetic flux leakages near the edges of PMs. Figure 7 and Table 3 compare the simulation and experimental results of the no-load electromotive force (EMF) to validate the magnetic analysis. Partial data of the EMF waveform was chosen from the experimental test in steady operation to validate the simulation results. In Fig. 6, the values of the EMF from the proposed method and ANSYS are barely the same. Moreover, the simulation results achieve a good correlation with the experimental results. Since no skewing design was applied for the electromagnetic design, the EMF waveform had a slight distortion and noise. In Table 3, the simulation results of the no-load EMF are very similar, and the errors of the simulation results relative to the experimental results are less than 3%.

Transient magnetic results at 0.002 s. (a) Proposed method. (b) ANSYS Workbench.

Transient results of the proposed method, ANSYS, and the experimental test under no-load operation.
Comparison of the reuslts of on-load EMF

Steady-state thermal results. (a) Proposed method. (b) ANSYS Workbench.
Figure 8 compare the thermal results obtained by the proposed method and ANSYS Workbench. In Fig. 8, the temperature of both FEA mainly varies in the radial direction and achieves a good correlation, while the temperature distribution from the proposed method has more details in the PM zones. Since the main heat transfers between the machine and the ambient air were realized by the convection between the housing surface and the ambient air, the temperature distribution decreased gradually along the radial direction towards the housing. The copper losses from the windings and the iron losses from the stator and the rotor accounted for a large proportion to the total loss. Since the heat generation density in the windings were greater than the one in the iron cores, the maximum temperatures were found in the slots with the values 415.85 K and 413.25 K using the proposed method and ANSYS, respectively. Table 4 gives the thermal results from the FEA methods and the experimental test at an ambient temperature of 25 °C. The experimental results are the maximum values from the thermocouples for each machine part except for the end-windings, whose temperature rises cannot be simulated by the 2-D analysis. It can be found in Table 4 that the maximum temperatures are measured from the winding thermocouples referred as Arabic number 3 in Fig. 5b. The errors of the ANSYS results are less than 8%, while the proposed method achieves more accurate results with errors less than 5%. According to the foregoing results, the adaptive single-mesh method for the coupled magnetic-thermal fields analysis was proved to achieve a more accurate simulation with lower computing efforts.
Temperature rises of key components
In this paper, an adaptive single-mesh method is proposed for the coupled FEA of magnetic-thermal fields in electrical machines. Both fields are initially solved according to the same single fine triangular mesh while the order of computing element matrices is reduced by eliminating certain nodes with the master-slave definition according to the magnetic and thermal field characteristics, respectively. The thermal modification for the temperature sensitive materials is considered in the coupling process. By the experimental tests of a PM machine, the proposed method is validated to improve the accuracy of the thermal analysis in the commercial software ANSYS with the time cost reduced by more than 8.0%. Further research will focus on the influence of the temperature on the heat transfer coefficients and the applications of 3-D analysis.
Footnotes
Acknowledgements
This work was supported by the National Natural Science Foundation of China (No. 51607123 and 51577166) and the Fund of Wenzhou Municipal Science and Technology Bureau, China (No. ZG2017002).
