# Piecewise Affine Magnetic Modeling of Permanent-Magnet Synchronous Machines for Virtual-Flux Control

^{1}

^{2}

^{*}

## Abstract

**:**

## 1. Introduction

## 2. PMSM Model

## 3. Piecewise Affine Magnetic Model

#### 3.1. Choosing ${\mathcal{I}}_{P}$

#### 3.2. Subdomains and the Delaunay Triangulation

#### 3.3. Subdomain Coefficients

#### 3.4. Assign Coefficients to Simplices

## 4. Magnetic Model Optimization

## 5. Experimental Results

#### Flux Error Analysis

## 6. Conclusions

## Author Contributions

## Funding

## Data Availability Statement

## Acknowledgments

## Conflicts of Interest

## Abbreviations

DSP | Digital signal processor |

FEA | Finite element analysis |

IPMSM | Interior permanent-magnet synchronous machine |

MCU | Microcontroller |

MM | Magnetic model |

MPC | Model predictive control |

MTPA | Maximum torque per ampere |

PM | Permanent magnet |

PMSM | Permanent-magnet synchronous machine |

PWA | Piecewise affine |

SPMSM | Surface-mounted permanent-magnet synchronous machine |

THD | Total harmonic distortion |

pu | Per unit |

VF-MPC | Virtual-flux model predictive control |

## References

- Bilgin, B.; Magne, P.; Malysz, P.; Yang, Y.; Pantelic, V.; Preindl, M.; Korobkine, A.; Jiang, W.; Lawford, M.; Emadi, A. Making the Case for Electrified Transportation. IEEE Trans. Transp. Electrif.
**2015**, 1, 4–17. [Google Scholar] [CrossRef] - Dai, Y.; Song, L.; Cui, S. Development of PMSM Drives for Hybrid Electric Car Applications. IEEE Trans. Magn.
**2007**, 43, 434–437. [Google Scholar] [CrossRef] - Brelje, B.J.; Martins, J.R. Electric, hybrid, and turboelectric fixed-wing aircraft: A review of concepts, models, and design approaches. Prog. Aerosp. Sci.
**2019**, 104, 1–19. [Google Scholar] [CrossRef] - Sayed, E.; Abdalmagid, M.; Pietrini, G.; Sa’adeh, N.M.; Callegaro, A.D.; Goldstein, C.; Emadi, A. Review of Electric Machines in More-/Hybrid-/Turbo-Electric Aircraft. IEEE Trans. Transp. Electrif.
**2021**, 7, 2976–3005. [Google Scholar] [CrossRef] - Fernandez, D.; Hyun, D.; Park, Y.; Reigosa, D.D.; Lee, S.B.; Lee, D.M.; Briz, F. Permanent Magnet Temperature Estimation in PM Synchronous Motors Using Low-Cost Hall Effect Sensors. IEEE Trans. Ind. Appl.
**2017**, 53, 4515–4525. [Google Scholar] [CrossRef] - Kang, G.H.; Hur, J.; Nam, H.; Hong, J.P.; Kim, G.T. Analysis of irreversible magnet demagnetization in line-start motors based on the finite-element method. IEEE Trans. Magn.
**2003**, 39, 1488–1491. [Google Scholar] [CrossRef] - Fernández, D.; Martínez, M.; Reigosa, D.; Guerrero, J.M.; Suárez Alvarez, C.M.; Briz, F. Impact of Machine Magnetization State on Permanent Magnet Losses in Permanent Magnet Synchronous Machines. IEEE Trans. Ind. Appl.
**2019**, 55, 344–353. [Google Scholar] [CrossRef] - Alessandri, A.; Baglietto, M.; Battistelli, G. Receding-horizon estimation for switching discrete-time linear systems. IEEE Trans. Autom. Control
**2005**, 50, 1736–1748. [Google Scholar] [CrossRef] - Brosch, A.; Hanke, S.; Wallscheid, O.; Böcker, J. Data-Driven Recursive Least Squares Estimation for Model Predictive Current Control of Permanent Magnet Synchronous Motors. IEEE Trans. Power Electron.
**2021**, 36, 2179–2190. [Google Scholar] [CrossRef] - Wlas, M.; Krzeminski, Z.; Toliyat, H.A. Neural-Network-Based Parameter Estimations of Induction Motors. IEEE Trans. Ind. Electron.
**2008**, 55, 1783–1794. [Google Scholar] [CrossRef] - Li, X.; Kennel, R. General Formulation of Kalman-Filter-Based Online Parameter Identification Methods for VSI-Fed PMSM. IEEE Trans. Ind. Electron.
**2021**, 68, 2856–2864. [Google Scholar] [CrossRef] - Chen, H.; Yan, W.; Wang, Q. Electromagnetic Analysis of Flux Characteristics of Double-Sided Switched Reluctance Linear Machine. IEEE Trans. Appl. Supercond.
**2016**, 26, 1–7. [Google Scholar] [CrossRef] - Liu, K.; Feng, J.; Guo, S.; Xiao, L.; Zhu, Z.Q. Identification of Flux Linkage Map of Permanent Magnet Synchronous Machines Under Uncertain Circuit Resistance and Inverter Nonlinearity. IEEE Trans. Industr. Inform.
**2018**, 14, 556–568. [Google Scholar] [CrossRef] - Bedetti, N.; Calligaro, S.; Petrella, R. Stand-Still Self-Identification of Flux Characteristics for Synchronous Reluctance Machines Using Novel Saturation Approximating Function and Multiple Linear Regression. IEEE Trans. Ind. Appl.
**2016**, 52, 3083–3092. [Google Scholar] [CrossRef] - Armando, E.; Guglielmi, P.; Pellegrino, G.; Bojoi, R. Flux linkage maps identification of synchronous AC motors under controlled thermal conditions. In Proceedings of the 2017 IEEE International Electric Machines and Drives Conference (IEMDC), Miami, FL, USA, 21–24 May 2017; pp. 1–8. [Google Scholar]
- Ichikawa, S.; Tomita, M.; Doki, S.; Okuma, S. Sensorless control of permanent-magnet synchronous motors using online parameter identification based on system identification theory. IEEE Trans. Ind. Electron.
**2006**, 53, 363–372. [Google Scholar] [CrossRef] - Wang, Q.; Zhang, G.; Wang, G.; Li, C.; Xu, D. Offline Parameter Self-Learning Method for General-Purpose PMSM Drives with Estimation Error Compensation. IEEE Trans. Power Electron.
**2019**, 34, 11103–11115. [Google Scholar] [CrossRef] - Armando, E.; Bojoi, R.I.; Guglielmi, P.; Pellegrino, G.; Pastorelli, M. Experimental Identification of the Magnetic Model of Synchronous Machines. IEEE Trans. Ind. Appl.
**2013**, 49, 2116–2125. [Google Scholar] [CrossRef] - Seilmeier, M.; Piepenbreier, B. Identification of steady-state inductances of PMSM using polynomial representations of the flux surfaces. In Proceedings of the IECON 2013—39th Annual Conference of the IEEE Industrial Electronics Society, Vienna, Austria, 10–13 November 2013; pp. 2899–2904, ISSN 1553-572X. [Google Scholar]
- Chen, H.; Sun, C.; Wang, Q. Analysis of Flux-Linkage Characteristics of Switched Reluctance Linear Generator. IEEE Trans. Appl. Supercond.
**2014**, 24, 1–5. [Google Scholar] [CrossRef] - Steyaert, B.; Swint, E.; Pennington, W.W.; Preindl, M. Piecewise Affine Modelling of Wound-Rotor Synchronous Machines for Real-Time Motor Control. IEEE Trans. Ind. Electron.
**2022**, 1–10. [Google Scholar] [CrossRef] - Preindl, M. Robust Control Invariant Sets and Lyapunov-Based MPC for IPM Synchronous Motor Drives. IEEE Trans. Ind. Electron.
**2016**, 63, 3925–3933. [Google Scholar] [CrossRef] - Preindl, M.; Bolognani, S. Optimal State Reference Computation With Constrained MTPA Criterion for PM Motor Drives. IEEE Trans. Power Electron.
**2015**, 30, 4524–4535. [Google Scholar] [CrossRef] - Samuel, P.; Levy, S. Projective Geometry; Undergraduate Texts in Mathematics; Springer: New York, NY, USA, 1988. [Google Scholar]
- Aurenhammer, F. Voronoi Diagrams, a Survey of a Fundamental Geometric Data Structure. ACM Comput. Surv.
**1991**, 23, 345–405. [Google Scholar] [CrossRef] - Borrelli, F.; Bemporad, A.; Morari, M. Predictive Control for Linear and Hybrid Systems; Cambridge University Press: Cambridge, UK, 2017. [Google Scholar]

**Figure 1.**Example motor drive system (gray) and virtual flux controller architecture (white) demonstrating the use of the PWA MM flux linkage map.

**Figure 2.**(

**top**) (

**left**) The d-axis flux linkage map, (

**middle**) q-axis flux linkage map, and (

**right**) torque function. (

**bottom**) (

**left**) The d-axis iso-flux lines, (

**middle**) q-axis iso-flux lines, and (

**right**) iso-torque lines.

**Figure 4.**(

**left**) Mesh of simplices ${\mathcal{I}}_{j}\in {\mathcal{I}}_{M}$ created using a 13-by-13 regularly gridded ${\mathcal{I}}_{P}$ in current space. (

**right**) Corresponding mesh of simplices ${\Lambda}_{j}\in {\Lambda}_{M}$ in flux space.

**Figure 5.**Voronoi diagram (

**left**) of a seven-point irregular current grid and the corresponding eight-simplex Delaunay triangulation (

**right**).

**Figure 6.**Visualization of ${f}_{\mathrm{pwa}}$: (

**left**) current simplex (triangle) $\overline{{\mathcal{I}}_{j}}$ shifted by ${i}_{j0}$ vector and (

**right**) corresponding flux simplex (triangle) ${\overline{\Lambda}}_{j}$ shifted by ${\lambda}_{j0}$ vector.

**Figure 7.**PWA MM functions at various resolutions using regularly gridded ${\mathcal{I}}_{P}$: (left) d-axis flux ${\lambda}_{d}$ from ${f}_{\mathrm{PWA}}$ and (right) q-axis flux ${\lambda}_{d}$.

**Figure 8.**Two-norm flux error distribution between ${f}_{\mathrm{PWA}}\left(i\right)$ and ${f}_{S}\left(i\right)$, ${f}_{\mathrm{PWA}}\left(i\right)$ constructed using regularly gridded $13\times 13$${\mathcal{I}}_{P}$, where ${f}_{S}\left(i\right)$ uses high-fidelity spline-interpolated FEA data points.

**Figure 9.**PWA MM optimization algorithm to minimize the maximum two-norm flux error in ${f}_{\mathrm{PWA}}$ given an allotted N number of of points to use ($|{\mathcal{I}}_{P}|=N$).

**Figure 10.**Visualization of three regions of current to optimize ${f}_{\mathrm{PWA}}$: $\mathcal{I}$, ${\mathcal{I}}_{\mathrm{MTPA}}$, and ${\mathcal{I}}_{\mathrm{derated}}$.

**Figure 11.**(

**left**) Average and (

**right**) maximum two-norm flux error vs. N points in various magnetic models (MMs): PWA ${f}_{\mathrm{PWA}\left(i\right)}$ (targeting error reduction in specific regions), linearized inductance model ${f}_{l}\left(i\right)$, and spline model ${f}_{s}\left(i\right)$ (targeting error reduction in MTPA region).

**Figure 12.**(

**top**row) Simplical mesh ${\mathcal{I}}_{M}$ comprising all simplices ${\mathcal{I}}_{j}$. (

**middle**row) Placement of points in ${\mathcal{I}}_{P}$ by the optimization algorithm. (

**bottom**row) Two-norm flux error distribution. (first column) ${f}_{\mathrm{PWA}}$ using regularly gridded current points covering $\mathcal{I}$. (second column) ${f}_{\mathrm{PWA}}$ using irregularly gridded current points optimizing $\mathcal{I}$. (third column) ${f}_{\mathrm{PWA}}$ using irregularly gridded current points optimizing ${\mathcal{I}}_{\mathrm{MTPA}}$. (fourth column) ${f}_{\mathrm{PWA}}$ using irregularly gridded current points optimizing ${\mathcal{I}}_{\mathrm{derated}}$.

Type of Link | Lin. | Bidir. | Cont. | Diff. | Sat. | Cross-Sat. ${}^{1}$ |
---|---|---|---|---|---|---|

Linearized Inductance [22,23] | • | • | • | • | ||

Linearly Interpolated LUT | • | • | • | |||

Spline-Interpolated LUT [15,17,18] | • | • | • | • | ||

Polynomial Functions [13,19] | • | • | • | • | ||

Piecewise Nonlinear Function [14] | • | • | • | • | ||

Other Nonlinear Function [12,20] | • | • | • | • | ||

Piecewise Linear (PWA) [21] | • | • | • | • | • |

^{1}Linear, bidirectional, continuous, differentiable, saturation, and cross-saturation, respectively.

Parameter | Value |
---|---|

Type | Interior PM synchronous machine (IPMSM) |

Rated current ${i}_{\mathrm{rated}}$ | 10 A |

Rated torque ${T}_{\mathrm{rated}}$ | 8.0 Nm |

Rated flux ${\lambda}_{\mathrm{rated}}$ | 142.5 mWb |

Inductance (d-axis) ${L}_{d}$ | 9.1 mH |

Inductance (q-axis) ${L}_{q}$ | 14.6 mH |

Stator Resistance ${R}_{s}$ (@ 20C) | 636 m$\Omega $ |

PM rotor flux $\psi $ | 88.3 mWb |

Pole pair p | 5 |

Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |

© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).

## Share and Cite

**MDPI and ACS Style**

Steyaert, B.; Swint, E.; Pennington, W.W.; Preindl, M. Piecewise Affine Magnetic Modeling of Permanent-Magnet Synchronous Machines for Virtual-Flux Control. *Energies* **2022**, *15*, 7259.
https://doi.org/10.3390/en15197259

**AMA Style**

Steyaert B, Swint E, Pennington WW, Preindl M. Piecewise Affine Magnetic Modeling of Permanent-Magnet Synchronous Machines for Virtual-Flux Control. *Energies*. 2022; 15(19):7259.
https://doi.org/10.3390/en15197259

**Chicago/Turabian Style**

Steyaert, Bernard, Ethan Swint, W. Wesley Pennington, and Matthias Preindl. 2022. "Piecewise Affine Magnetic Modeling of Permanent-Magnet Synchronous Machines for Virtual-Flux Control" *Energies* 15, no. 19: 7259.
https://doi.org/10.3390/en15197259