1. Introduction
Permanent magnet (PM) synchronous machines are widely used in various applications due to their high-performance character. To protect the vulnerable machine winding, avoid overheating, and enable thermal management, temperature information is usually indispensable [
1] and can be acquired through thermal sensors or thermal models [
2]. The thermal sensor can provide the most reliable real-time temperature information. However, the long-term variation cannot be effectively predicted. On the other hand, thermal models are widely used for electrical machine thermal performance prediction [
3,
4,
5,
6,
7], whereas the development of a proper thermal model for PM machines is not an easy task [
8,
9].
Currently, three thermal-modeling methods are widely used, i.e., the finite element method (FEM), computational fluid dynamics (CFD), and lumped-parameter thermal network (LPTN) [
10]. The CFD method and FEM enjoy high precision, whereas the computation costs make them inappropriate for online applications. The LPTN models can provide decent results with much less calculation effort, which makes them widely used in online thermal prediction for electrical machines [
11,
12] and power electronic devices [
13,
14]. Due to the complicated structure and the involvement of various materials, the criteria of the PM machine LPTN model are not well defined and are highly dependent on the experience of developers [
15]. Furthermore, some equivalent model parameters representing the heat transfer effect of a complicated process cannot be easily analytically determined [
6]. To solve this problem, the experimental data are usually combined with machine prior knowledge to calibrate LPTN model parameters [
16]. In practice, the resources and time are limited, and the experimental data cannot cover a machine’s full working conditions. The aging of the machine also influences its thermal properties [
17]. At the same time, due to the uncertainty of the manufacturing process and randomness of the winding arrangement, machines with the same design parameters may possess varied thermal performance. All these restrict the application scope of an LPTN model developed in the lab. Thus, conventional LPTN models may not be robust enough for mass-produced PM machine long-term thermal prediction.
Some researchers have been trying to solve this problem. In [
18], the Kalman Filter (KF) was used to adaptively tune the thermal elastic error model for a three-axis CNC machine. A kind of LPTN model and flux observer were fused in [
19] and combined with KF to improve the estimated PM temperature of a PM machine. The widely used KF method can improve the LPTN model output by manipulating the model states, while the model parameters are kept unchanged. In other words, although the instant model output has been improved, the model itself is not modified. As the parameters of the LPTN model are nonlinear with model output, some researchers used the Extended Kalman Filter (EKF) to adaptively estimate model parameters online [
20,
21]. In this process, the model parameters are merged into the state, so the parameters and states can be tuned together. However, directly modifying model states may deteriorate the precision of the estimated parameters. In addition, the model parameters may have different magnitude ranges, which could lead the local numerical model used in the EKF to diverge.
In this paper, a method to adaptively update the LPTN model parameters online is proposed. Based on the mathematical description of the LPTN model, a fast calculation method for the model prediction error Jacobian matrix is proposed. And this makes it so that the gradient-based optimization calculation can be efficiently realized online. Thus, the robustness of the LPTN model can be adaptively improved.
Notably, standard mass-produced PM motors are rarely equipped with full sets of embedded temperature sensors, unlike the prototype in this study, due to cost constraints. In practice, after the LPTN model is developed and validated in the laboratory, the proposed method can be directly applied to online operation and parameter optimization. The proposed method does not impose any restrictions on the number of measured feedback temperatures during online optimization, meaning that full temperature feedback is not a prerequisite for its implementation. Instead, online optimization can be achieved using limited temperature sensors that are easy to install, such as those mounted on the stator winding ends and motor housing. On the other hand, some sensorless methods (stator winding resistance detection) can also be adopted to indirectly obtain the winding temperature when physical sensors are unavailable. This helps improve the adaptability to standard production motors without additional hardware costs
The structure of this paper is as follows. In
Section 2, the LPTN model is established, and the mathematical description is derived. The offline parameter identification process is given in
Section 3. After that,
Section 4 explains the basic algorithm of the proposed model parameter adaptation method. The experimental verification and comparison with the numerical and EKF methods are demonstrated in
Section 5. Finally,
Section 6 concludes the paper.
2. The Establishment of the LPTN Model
A three-dimensional LPTN model is established and shown in
Figure 1. The definition of each node is given in
Table 1.
In this LPTN model, each node comprises several thermal resistances and one thermal capacitance. Nodes 1–28 are established through the T-modeling method [
20]. The corresponding machine components of these nodes are meshed into basic arc elements [
21], as shown in
Figure 2. Thermal resistances in these nodes can be calculated based on machine structural and material properties, as summarized in
Table 2 [
20,
21].
,
, and
are the thermal conductances in the radial, axial, and circumferential directions.
and
are the loss and thermal capacitance of the kth node.
denotes the
th thermal resistance in the
i direction (1, 2, and 3 denote radial, circumferential, and axial) of the kth node. The thermal capacitance of the
th node can be calculated through
where
,
are the specific thermal capacitance and density.
Nodes 29–38 represent complicated structures. Thus, they are modeled through equivalent thermal resistance and capacitance. Detailed modeling ideas and techniques can be found in [
22,
23,
24]. The mathematical description of the established LPTN model can be explicitly derived as
where
where
represents the temperature of the
th node;
denotes the temperature of the
point in the
th T node, as illustrated in
Figure 2b;
is the ambient temperature vector; and
is the resistance between the
i and
k node.
equals zero. Subscript
denotes the
point and
represents the ambient. With (2) and (3), the mathematical description of the established LPTN model can be derived
The corresponding discrete model can be obtained through the one-step Euler method.
where
It should be noted that the one-step Euler method is selected for discretization primarily to balance computational efficiency and real-time performance. While the trapezoid method offers higher accuracy, it requires solving implicit equations, which increases the computational burden and is not suitable for this specific requirement.
The LPTN model established above can be used to predict the spatial temperature distribution of the electrical machine, provided all the parameters are appropriately defined. Based on the results presented in
Table 2, it can be found that the model thermal resistances are related to both machine physical parameters and material thermal properties. Explicitly and analytically determining all the thermal parameters is very demanding, if not impossible. To obtain reasonable initial thermal parameters, offline parameter estimation is used and is demonstrated in the following section.
3. Offline Parameter Estimation Process
To estimate difficult to determine thermal parameters, experimental data-based offline parameter estimation is processed in this section.
The test machine is a 10 kW PM machine with thermal sensors, PT100s, embedded in different parts. The distribution of these sensors is demonstrated in
Figure 3. The main parameters are tabulated in
Table 3. The topology of the machine and the experimental setup can be seen in
Figure 4 and
Figure 5, respectively. The load machine provides various loads, and the test machine is controlled through the inverter and double-closed loop method. The signal of these PT100 sensors is transferred to PC and processed in Labview. The temperature signal is sampled at about 1 Hz.
The parameter estimation is based on the mathematical description of the LPTN model derived in
Section 2. The losses
comprise copper loss, iron loss, PM loss, and mechanical loss. The copper loss is derived from measured stator current and temperature-dependent resistance. Iron and PM losses are simulated via the FEM. Mechanical loss is neglected in this process. And the total loss is verified using the efficiency data obtained from experiments. Once the initial temperature
, environmental temperature
, and losses
are determined, the LPTN model-predicted results under a set of thermal parameters could be acquired through (25). As not all node temperatures defined in the LPTN model are measured, the model output that corresponds to measured points can be expressed as
where
is the selection matrix. Thus, the target is to obtain a set of thermal parameters
that minimize the sum squared error (SSE) of the prediction
where
is the measured temperature data,
denotes the vector of thermal parameters to be optimized, and
is the LPTN model-predicted results under the thermal parameters
:
where
is the model-predicted result at time
.
A kind of two-step optimization method was adopted here. First, the genetic algorithm (GA) was utilized to search for the optimal parameters in a wide variation range. When the GA stops, the sequential quadratic programming (SQP) method continues pursuing the optimal value and generates the final estimated parameter. The estimation process was realized in Matlab R2023a (The MathWorks, Inc., Natick, MA, USA) and based on various DC and AC experimental data. To consider the temperature effect, the copper loss under temperature
was updated through
where
is the copper loss calculated under
and α is the copper temperature coefficient, adopted as
. The core loss and PM loss were obtained through the FEM. Most LPTN model parameters were estimated based on DC experimental data. The speed-sensitive equivalent parameters, e.g., those connected with the shaft, airgap, and end region were estimated based on the data obtained under different speeds and interpolated with respect to speed. These parameters are closely tied to rotational conditions. Theoretically, the rotation of the motor rotor affects the heat transfer between the stator and rotor, as variations in rotational speed directly alter the convective heat exchange within the airgap. To validate both the effectiveness of these offline-estimated parameters and the applicability of the model across different working conditions, the model performance is demonstrated in
Figure 6. The results indicate that the LPTN model incorporating these estimated parameters achieves satisfactory prediction accuracy under various working conditions. These parameters will subsequently serve as the initial values for the adaptation process presented hereafter.
4. Methodology of the Proposed LPTN Model Adapta-Tion Method
In this section, an algorithm to adaptively update the LPTN model parameters online will be introduced. The basic idea lies in reducing the calculation burden of the gradient-based optimization method and enabling the corresponding computation to be efficiently realized. Thus, based on the measured data, the LPTN model parameters can be tuned online. For parameter changes induced by aging in a single electrical machine, the key thermal parameters can be updated in real time based on measured temperature feedback, compensating for gradual performance degradation. For manufacturing-related parameter inconsistency, the parameters estimated offline are chosen as initial values and tuned online based on unique measured data, thus calibrating the model to match individual thermal characteristics. The basic algorithm will be introduced here, and the experimental verification will be demonstrated in the next section.
The whole process is illustrated in
Figure 7. Every
time, the measured temperatures will be compared with the LPTN model predicted results. If the prediction error becomes large, it is supposed that the LPTN model needs to be updated. Then, the prominent inappropriate LPTN model thermal parameters are screened out and updated through the optimization algorithm. As with the offline parameter estimation process, the target here is still to find the proper parameter value that minimizes the prediction error. However, a time-consuming stochastic optimization method, like GA, is not appropriate for online realization. So a kind of gradient-based modified SQP algorithm is adopted here.
The modified SQP algorithm used in this paper is illustrated in
Figure 8 [
25]. One of the main calculation burdens of these gradient-based algorithms lies in acquiring the Jacobian matrix of the target
. Conventional numerical methods that approximate derivatives by differences are usually adopted for nonlinear models, while the heavy computational burden prevents them from online realization. In addition, with parameters that have different magnitude ranges, the corresponding discretization error may be great and can lead to the divergence of the model. To solve this problem, a kind of fast calculation method for the Jacobian matrix
is presented, which helps alleviate the computation burden and improves the optimization efficiency.
The LPTN model prediction error can be assessed as
where
denotes the model-predicted temperature output corresponding to the parameter vector
,
is the measured temperature vector, and
is the weighting matrix. The weighting matrix is introduced to assign different importance to different temperature samples, allowing recent or more reliable measurements to have stronger influence on the optimization process. Thus,
represents a weighted quadratic error index that quantifies the discrepancy between predicted and measured temperatures. Accordingly, the gradient of the
with respect to
can be calculated through [
25]
where
is an operator that transforms a matrix into a vector by stacking the columns. This expression indicates that the gradient of the objective function is determined by the sensitivity of the model output
with respect to the parameter vector
. Therefore, the key task becomes the efficient computation of
. Based on (25)–(29),
can be derived through the sensitivity propagation of the state variables. The recursive formulation is given as
where
is the Kronecker tensor product,
is the column number of
, and m is the row number of
. Based on the modeling process presented in
Section 2,
can be calculated offline with the help of the symbol calculation technique and written in the program. It can be observed from (35) and (36) that the sensitivity propagation can also be expressed in a state-space form. In this interpretation,
acts as the state variable describing how node temperatures change with respect to parameter variations,
serves as the input representing parameter-induced excitation, and
is the output representing the sensitivity of the measured temperatures. Thus,
can be iteratively calculated through (35) and (36). Once
is obtained,
can be computed directly from (34). With Jacobian matrix
determined analytically, the gradient-based optimization can be realized efficiently.
To further reduce the computational burden, the key parameters are screened before each optimization process. Based on the definition of
, the objective function
can be locally approximated around the current operating point
using a first-order expansion. This approximation provides a direct way to evaluate how each parameter variation contributes to the change in prediction error:
Equation (38) shows that the variation in the objective function can be approximated as the weighted summation of the contributions from each parameter. Each term
represents the local influence of the
th parameter on the prediction error when it changes by
:
According to the basic idea of parameter sensitivity analysis, factor
represents the local contribution of parameter
to the variation in the objective function when it changes by
. In other words,
quantifies how strongly a small adjustment of a specific parameter influences the prediction error around the current operating point
. A larger absolute value of
indicates that the corresponding parameter has a stronger impact on the objective function and is therefore more relevant for optimization. Thus, within the limitation [
, the impact of manipulating
can be assessed through
where
is a constant scaling factor. When
is positive, decreasing
can reduce the value of
. When Λ(k) is negative, an increase in
leads to a reduction in
. So,
can be interpreted as a practical optimization potential index that measures the ability of parameter
to reduce the objective function within its allowable constraint range [
. Thus, the parameters that have larger
are expected to possess stronger potential in reducing the prediction error and are selected as the key parameters to be tuned in the following optimization algorithm. This parameter screening process allows the optimization to focus only on the most influential parameters, which significantly reduces the computational burden and improves efficiency for online implementation. It is worth pointing out that this parameter selection procedure is repeated before every optimization calculation to ensure that the most relevant parameters are always identified under changing operating conditions.
With the derived calculation method of and the parameter selection process, the LPTN model parameters can be optimized efficiently online. The effectiveness of the proposed method will be demonstrated in the following section.
6. Conclusions
In this paper, a PM machine LPTN model and online parameter estimation technique were integrated. The key point lies in reducing the calculation burden of the Jacobian matrix and enabling online realization.
Once the model prediction error exceeds the threshold, the LPTN thermal parameters are estimated and updated through the gradient-based optimization method SQP. Based on the basic structure of the LPTN model, a fast-calculation method for the Jacobian matrix of the prediction error was proposed. Thus, the conventional numerical calculation is avoided, and the corresponding calculation burden is alleviated. This enables the online realization of the gradient-based optimization method.
The proposed method is verified based on a 10 kW PM machine. And the comparison with the widely used numerical method demonstrates that the proposed method can be realized more efficiently and acquire more accurate results. On the other hand, compared to the EKF method, the parameters tuned through the proposed method can lead to a more precise model. Thus, it can be concluded that the proposed method can be realized efficiently online and is suitable for online LPTN model adaptation purposes.