Fast and Accurate Model of Interior Permanent-Magnet Machine for Dynamic Characterization

: A high-ﬁdelity two-axis model of an interior permanent-magnet synchronous machine (IPM) presents a convenient way for the characterization and validation of motor dynamic performance during the design stage. In order to consider a nonlinear IPM nature, the model is parameterized with a standard dataset calculated beforehand by ﬁnite-element analysis. From two possible model implementations, the current model (CM) seems to be preferable to the ﬂux-linkage model (FLM). A particular reason for this state of affairs is the rather complex and time-demanding parameterization of FLM in comparison with CM. For this reason, a procedure for the fast and reliable parameterization of FLM is presented. The proposed procedure is signiﬁcantly faster than comparable methods, hence providing considerable improvement in terms of computational time. Additionally, the execution time of FLM was demonstrated to be up to 20% shorter in comparison to CM. Therefore, the FLM should be used in computationally intensive simulation scenarios that have a signiﬁcant number of iterations, or excessive real-time time span.


Introduction
Permanent-magnet synchronous machines excel in high torque density and high efficiency, so they have been widely investigated in recent years [1][2][3].From the two permanent-magnet synchronous-machine topologies, i.e., surface permanent-magnet machines (SPM) and interior permanent-magnet machines (IPM), the latter are especially suitable for transport applications, where a wide speed range is a key requirement [4,5].The specific feature that enables such an operation is their pronounced flux-weakening capability.This is an immediate consequence of IPM design, where the magnetic field due to the armature current is considerable with respect to the permanent magnet field [6].Hence, IPMs are substantially more saturation-prone than their SPM counterparts, rendering any assumption of magnetic linearity at high flux levels untenable.
In modern electric-machine design, finite-element analysis (FEA) is widely used and has become an industry standard [7][8][9].By taking into account the specific geometry and material, FEA produces an accurate magnetic-field model, which is an excellent foundation for the reliable prediction of machine operational characteristics.In this way, the expensive and time-consuming prototype stage can be completely left out [10,11].This fact is especially important for any designer in the predevelopment design stage, who is daily faced with specific consumer demands that must be promptly served with fast and reliable design offers.An additional benefit of using FEA is that existent FEA results can be readily converted in state-space models, which are computationally much more efficient than FEA [12].These models can be used as a platform for the verification of various types of machine dynamics.An illustrative example is a symmetrical short circuit, which can be simulated within seconds.Otherwise, dynamic FEA would have to be employed, resulting in about 10 h of computation time on a typical workstation [7].Furthermore, the state-space model can be turned into a black box, which can directly be deployed to consumers for their system simulation.As an example, the state-space model of an IPM drive can serve as a high-fidelity real-time emulator in Hardware-in-the-Loop (HIL) tests [13], or as a platform for system-efficiency investigation [14].
Among the family of state-space models, a two-axis (dq) model, defined in synchronous (rotor) co-ordinates, is by far the most frequently used [15].Two basic modeling paradigms depending on chosen state variables ( i.e., currents or flux linkages) are possible, resulting in the current model (CM) and flux-linkage model (FLM).For linear models with constant parameters, both choices are equally suitable in terms of simplicity, even though the FLM is computationally slightly less demanding (one integrator instead of two), but this difference is negligible with today's computational power [16].In spite of that, practitioners in many subfields where a simulation model is essential (e.g., control design, system design) overwhelmingly prefer the CM over FLM.The reason for this is that CM-based computations directly yield quantities, some of which can be directly monitored, e.g., stator currents.
On the other hand, the dq-model can also reproduce various nonlinear phenomena, such as magnetic saturation, cross-coupling, spatial harmonics, and iron losses [12,[17][18][19][20][21][22][23][24].In this case, the parameters of the dq-model are estimated with FEA results.The merits of a state-space model and a magnetic-field model are thus advantageously combined [22,25].However, a fundamental distinction arises between CM and FLM in terms of model complexity.In CM, a nonlinear current-flux relation causes inductance to be split and reintroduced as apparent and incremental inductance [6].At least three consequences come to light: (a) the physical meaning of inductance is blurred, (b) the CM structure becomes involved, and (c) in order to preserve accuracy, an additional set of FEA with a special technique (e.g., the frozen permeability method [26]) should be made to separate the spatial effect of permanent magnets and the stator current.Nothing of the above applies to FLM, where the model structure stays the same and existent FEA results suffice [19].
Even though there are clear advantages for choosing FLM over CM, the practical application of FEA-parameterized FLM is still comparatively rare [18].The main reason probably lies in the standard static FEA setup.The stator current being an input, FEA produces flux-linkage maps where the stator current is treated as an independent variable (direct form).As FEA-parameterized FLM actually requires an inverse relation between current and flux linkage (inverse form), the designer is typically induced to rather follow CM paradigm [6].Nevertheless, few authors have recently tackled the subject of inverting flux-linkage maps [18][19][20][21].Various strategies were employed in order to find the inverse form, such as the interior-point method [18] and radial-basis function [20], but scarce implementation details were provided.In Reference [21], the lookup table-inversion process is outlined but too vaguely for easy third-party implementation.All procedures listed above are significantly more computationally demanding in comparison with the straightforward parameterization of CM.However, one should note that the principal objective of the aforementioned papers was to develop a high-fidelity state-space model per se, regardless of the possible increase in complexity of some sort (mathematical and/or computational).
This paper intends to fill this gap, and specifically proposes a straightforward parameterization procedure that adapts FEA results into a form suitable for FLM parameterization.Parameterization algorithm features are clear implementation, computational efficiency, and high reliability.Only a standard set of FEA results are considered as an input, ruling out any need for additional precomputation.
In this paper, spatial effects and and iron losses are not considered, because they are negligible for the studies we are performing, i.e., evaluation of motor performance in a certain drive cycle and a prediction of short-circuit currents, although they can be readily included by using effective and proven techniques [18,[27][28][29].However, readers should be aware that consideration of spatial effects is an integral part of a true high-fidelity IPM model [30].Namely, concentrated stator windings, different rotor geometries, or any other variation of magnetic permeance along the air gap are a common sight in modern practices.In this way, the effects of air-gap harmonics on voltages, currents, flux linkages, and torque can be properly described.This is essential for a user, if he intents to use the IPM model for, e.g., developing control (including sensorless and field-weakening operations) [22], analyzing torque ripple [31], and studying acoustic characteristics [19].

General Equations
Restricting the study to the case of perfect field orientation, the voltage equation of IPM is defined as where T are real vectors defined in the rotor reference frame, R s is stator resistance (scalar), ω r is rotor electrical speed, and J the matrix equivalent to complex unit j Electromagnetic torque T e is defined as a vector product of flux linkage and current where p p is the number of pole pairs.Dynamic equation links the electromagnetic and mechanical domains where T l is the load torque, Γ the moment of inertia, and ω M rotor mechanical speed.Equations ( 1)-(3) are globally valid for any working condition.In order to obtain a full set of IPM equations, the relation between flux linkage and current (flux-current relation, flux map) ψ s = f (i s ) needs to be defined.Specifically addressing two-axis IPM representation in the rotor reference frame, the model is linear only if saturation is not present.Therefore, function f : R 2 → R 2 is affine if the system is linear, and nonlinear if otherwise.

CM
If saturation is neglected, the system is linear, and the stator flux linkage may be expressed as an affine function of i s where ψ R = [ψ R 0] T is a constant real vector of the rotor flux linkage defined in the rotor reference frame, and L s inductance matrix with constant terms L s is a diagonal matrix that satisfies the fundamental assumption of the decoupled model.Plugging Equation (4) into Equation (1) and considering dψ R /dt = 0 gives voltage equation where I is the 2 × 2 identity matrix.In this way, IPM dynamics is fully described by Equations ( 6), ( 2), (3), and (4).As the stator current is state-variable in Equation ( 6), this particular model is called CM.

FLM
Note that L s in Equation ( 4) is invertible; hence, inverse relationship f −1 can be readily obtained where L −1 s is an inverse inductance matrix Plugging Equation (7) into Equation (1), we obtain Now, Equation ( 8) can be combined with Equations ( 2), (3), and (7) to form an FLM, with stator flux linkage as a state-variable.The particular form of Equation ( 8) clearly indicates that the parameterization of FLM is exactly the same as for a CM, as only four parameters, i.e., R s , L d , L q , and ψ R , are needed.Remark 1. Torque Equation (2) for either of linear models can be rewritten in familiar form 2.3.Nonlinear Model

CM
In the presence of saturation, the flux-current relation becomes nonlinear.Nevertheless, we can still write it in the form of Equation ( 4), provided that L s (i s ) and ψ R (i s ) alter to variables dependent on the stator current In this way, the stator current remains a state-space variable.The rotor flux-linkage vector in Equation ( 10) On the other hand, its amplitude is influenced by the stator current, by both current components i d and i q in general.The 2 × 2 matrix L s (i s ) has four nonzero elements: Each element is defined as a ratio of appropriate flux linkage and the current component; therefore, the following form is obtained [6] where explicit dependence of flux linkages on stator currents was dropped to avoid clutter.In a nonlinear context, L s is called an apparent inductance matrix.Elements of L s are not constant as they are all dependent on the stator current.In comparison with Equation ( 5), the matrix also has two nondiagonal terms, a clear indication of the cross-saturation phenomena.It is interesting to notice that coupling between direct and quadrature axes arises due to the effects of main-flux saturation.Substituting Equation (10) in Equation ( 1), but leaving the derivative dψ s /di s in its original form yields where L i is the incremental inductance matrix, defined as In general, apparent and incremental inductance matrices are not equal (L s = L i ) unless the machine is linear, which can easily be verified by plugging Equation (4) in Equation ( 13).The full CM set of equations is defined by Equations ( 2), ( 3), (10), and (12).

FLM
Because the model is nonlinear, there is no benefit in rewriting the inverse relation as in Equation ( 8).Instead, we simply define current-flux relation where F s is a generalized "reluctance" matrix obtained in an analogous way to Equation ( 11) Matrix F s is composed of elements that are strictly ratios of the stator-current and stator flux-linkage components.Note, that rotor flux linkage is explicitly left out.

Simulation Form
A digital simulation requires the state-space form of state equations ẋ = f (x).Even though rotor speed ω r is state-variable in both models as well, only the state variables in voltage equations are of interest.Voltage Equations ( 12) and ( 16) can be rearranged into Figures 1 and 2 depict the block diagrams of the CM and FLM, respectively.It is worth noting that CM diagram is clearly more complex.Comparison between the two diagrams shows that CM requires two matrices, L s and L −1 i , whereas the FLM only matrix F s .In addition, the simultaneous presence of two inductance matrices, L s and L −1 i , obscures the meaning of inductance. --

Static FEA Batch Simulation
Parameterization of a nonlinear model can be established in two distinct ways, by means of FEA or measurements [32,33].FEA is preferred when reasonably accurate information about geometry and magnetic characteristics of materials is close at hand, which is especially true for the predesign stage.However, if reliable input data are not at one's disposal, a systematic measurement procedure can provide fairly accurate parameterization as well [33,34].
Once the designer specifies the magnetostatic finite-element method (FEM) model of IPM, a series of simulations are performed in order to obtain the fundamental electromagnetic relations of the machine.Firstly, the dand q-axis stator-current vectors with N values over a reasonable range are specified Then, the batch process iterates over all possible combinations of the dand q-axis stator currents while performing FEA for each combination.Finally, the batch job returns three matrices ) Matrices and Ψ orig q are commonly known as flux-linkage maps, while T e is a torque map.The matrices share the same form with straightforward interpretation: it is a table of numbers that depend on two indices, i and j, which correspond to entries in vectors I orig d and I orig q , respectively.For example, element Ψ d24 gives the value of the d-axis stator flux linkage at specific stator current values I orig d (2) and I orig q (4). Figure 3 shows the original flux-linkage maps for an IPM with pronounced nonlinearity than can be visually checked from figures.For example, in case of the d-axis flux linkage (Figure 3a) the surface curvature along d-axis indicates the main saturation, whereas the curvature along the q-axis is indicative of cross-saturation (Figure 3b). Figure 4 shows the electromagnetic torque of the same IPM featuring a curved surface.As expected, the nonlinear effect is more pronounced with higher stator currents in the respective axes.
In this paper, an IPM with data in Table 1 was used as a case study.There are two reasons that all maps are defined for a full (symmetrical) range of currents.The short-circuit test (SCT), which is an important application of the model, is a specific operating state where stator current are not under control.Furthermore, our intention was to illustrate a complete treatment of flux-map inversion.Readers should be aware that, in general, there is no need for a positive i d current if only a normal IPM operation is considered.
Flux and torque maps are built for current values = [−1860 . . .1860] T A in 33 equidistant steps, which results in 33 × 33 = 1089 data points.The appropriate range of stator-current values used for flux-and torque-map calculation depends on the specific IPM.In the authors' experience, the limits should be at least 2.2 larger than IPM's maximal current I max = 778 A. However, if it turns out that the range is insufficient, reiteration is needed.We also found that further increase in grid density is not justified in light of increasing FE computational costs.An equidistant grid was chosen for convenience.

CM Parameterization
Once Ψ orig d , Ψ orig q , and T e are known for a specific design, it is possible to define their respective interpolation functions f d , f q , and f T : CM parameterization requires the calculation of matrices L s and L −1 i .Because L i is completely oblivious (see Equation ( 17)), L −1 i can be directly calculated using where an inversion formula for a 2 × 2 matrix was applied to Equation (13).
On the other hand, apparent inductance matrix L s defined in Equation (11) suffers from major drawback.For example, the first term in , which is not available from the original set of simulation results.A straightforward solution would be to define ψ R as a constant ψ R = f d (0, 0), but then singularity at i d = 0 is unavoidable.Namely, the cross-saturation effect of i q onto ψ d results in a slight reduction of ψ d .In consequence, numerator ψ d (0, i q ) − ψ R does not evaluate to 0, hence resulting in a singularity.A similar reasoning can be adopted for second term L dq (i d , i q ), where numerator A practical solution is twofold: neglecting cross-saturation terms in ( 11) and defining ψ R = f d (0, i q ) as an explicit function of q-axis current.Then, L dd can be calculated for all current combinations without incurring a singularity It is clear from the above argument that parameterization with the original set of FEA data requires CM simplification.Whether its impact is considerable or marginal depends on the grade of nonlinearity of the particular machine.Machines with pronounced nonlinearity, as is the case for IPMs, may therefore require a full inductance matrix.At this point, it should be mentioned that approaches that can overcome the limits in calculating original Equation (11) were reported, e.g., frozen-permeances method.However, this technique requires an additional FEA set, effectively doubling the computational burden.

FLM Parameterization
In comparison to CM, FLM simulation form Equation ( 18) is simpler, as only matrix F s has to be parameterized.Even though the four terms in F s are elementary ratios of the stator current and flux linkage, e.g., a first term in Equation ( 15) they cannot be readily calculated using previously defined functions f d and f q .The underlying reason is that the simulation flow of FLM treats flux linkage as the independent variable as far as current-flux relation is concerned.Therefore, an inverse relation between current and flux linkage must be determined beforehand.Drawing an analogy between CM and FLM, we define corresponding interpolating functions The relation between two sets of interpolating Functions ( 22) and ( 25) can be thought of as a mathematical inverse of two variate functions i q = g q ( f d (i d , i q ), f q (i d , i q )).
An important question to be answered is whether inverse functions g d and g q actually exist.Consider mapping f : R 2 → R 2 , defined by If the derivative of a mapping f is invertible at some point (i d0 , i q0 ), then mapping f is locally invertible in some neighborhood of point f (i d0 , i q0 ) [35].The derivative of f is just a Jacobian matrix which is invertible exactly when its determinant is nonzero: Mapping f is invertible over the domain of current vectors I orig d and I orig q only if the corresponding det(J f ) is strictly nonzero at every point in the domain.Figure 5 shows the Jacobian determinant for the IPM in question (see Table 1).For this particular machine, it is clear that the determinant is strictly positive; therefore, the IPM's flux maps are invertible over the whole domain.
It is interesting to inspect Equation (30) more closely in order to gain some insight in its behavior for a general machine.The first term is always strictly positive, as f d and f q are both monotone-increasing, which can easily be seen by inspection.This property is also physically sound because increasing the current always results in increased flux linkage in the respective axis.The inspection of the second term is more involved, but careful analysis shows that it is also strictly positive, as can be seen in Figure 6.For this reason, the first term must always be bigger than the second so as to maintain invertible mapping f .If we associate the two terms with main and cross magnetization, respectively, we can see that this is an entirely reasonable expectation for a practical machine.Typically, the level of main magnetization is about one order of magnitude higher than that of cross-magnetization.If interpolation functions g d and g q exist, they can be found in various ways.In accordance to Equation (19), we generate dand q-axis stator flux-linkage vectors with N-equidistant, monotone-increasing entries where their range is specified by the minimal and maximal value of original maps Ψ orig d and Ψ orig d , respectively.

Inversion via Minimization
One way to find inverse maps I new d and I new q is to minimize the residual between interpolation points and the value of interpolating function over whole set i, j = 1 . . .N. This translates to a multiobjective nonlinear least-squares problem with two objectives, one for each component For each iteration, a unique solution (i sol d , i sol q ) exists, which is interpreted as an entry in inverse maps I new d (i, j) = i sol d and I new q (i, j) = i sol q .Formally, we can express the idea as where the residual is defined as are first interpolated (functions f d and f q ) and then sliced into predefined number of contour isolines at flux-linkage levels Ψ new d (i) or Ψ new d (j).These lines can be interpreted as curves in the current co-ordinates, where each of these curves encodes all possible combinations (i d , i q ) for a particular flux-linkage level.Algorithm 1 then proceeds to find an intersection between curves at Ψ new d (i) and Ψ new q (j) for all combinations of the stator flux-linkage.If Condition (30) holds, then a unique intersection exists for each pair of Ψ new d (i) and Ψ new q (j).These solutions are not only more intuitive due to a clear geometrical interpretation, but also significantly faster.

Algorithm 1 Inverse flux map via intersection.
1: Define number of flux isolines n (levels) 2: Slice flux map ψ d = f d (i d , i q ) (3D) into n isolines (2D) 3: Slice flux map ψ q = f q (i d , i q ) (3D) into n isolines (2D) 4: Obtain 2n isolines ψ d,i and ψ q,j 5: Initialize empty n × n matrices Ψ new d , Ψ new q , I new d , and I new q 6: for i ← 1 . . .n do 7: for j ← 1 . . .n do 8: Find intersection (x d , x q ) between ψ d,i and ψ q,j 9: end for Figure 7 shows the resulting inverse flux maps using the intersection algorithm.In order to validate inversion accuracy, flux-linkage errors are checked for the whole range of flux-linkage values.For each flux-linkage pair (ψ d , ψ q ), their respective currents (i d , i q ) are calculated using interpolating functions g d and g q .Then, these currents are plugged into f d and f q , resulting in a new flux-linkage pair that should be as close as possible to the original.Figure 8 confirms that the maximum error did not exceed 0.1% in either axis.

Model Verification
First, we compare the performance of CM and FLM in a dynamic simulation.A three-phase short-circuit test (SCT), a well-established IPM test procedure in the industry [36], was chosen because high transient currents were expected to push the IPM deep into saturation.In this way, both models could conveniently be assessed in terms of nonlinearity.The chosen IPM (Table 1) is intended for small urban electric vehicles.As the IPM nominal voltage level was low (V dc = 48 V), the maximal current was rather large I max = 778 A. Both inductances were valid for a nominal operation point.During the SCT, the IPM rotor is driven by an external machine at a constant speed, when stator windings (at first open) are suddenly short-circuited.Figure 9 depicts the stator currents in dq co-ordinates for CM and FLM.There was practically a perfect match between currents, the sole difference being a slightly higher oscillation frequency for CM.One can conclude that CM and FLM are equivalent in terms of performance.Then, FLM simulation results of a three-phase SCT were compared to measurements on a prototype machine (Figure 10).The time-domain response of the phase currents to the sudden short circuit depends on the starting position of the rotor.In order to compare measurements with simulations, the time traces of phase currents must be synchronized.Unfortunately, the measurement setup did not allow to choose the exact instant of the short-circuit maneuver.Therefore, the measurement was performed first and the appropriate time instant of the short circuit in simulation was determined afterwards.It is noteworthy to observe that FLM is capable or forecasting true maximal phase current (in this case red signal at t = 0.013 s).
Nevertheless, a direct comparison of individual phase currents (Figure 11) reveals discrepancies between measurement and simulation.All three measured phase currents had smaller peak-to-peak values, which can be attributed to nonzero contact resistance.The DC component in measurements died out slower than predicted by the simulations.

Parameterization Time
CM and FLM were implemented in Matlab/Simulink and run on a typical workstation with 3.40 GHz and 16 GB RAM.Even though both models were parameterized with the same input data, the process itself differed.CM parameterization includes the calculation of interpolation functions for the inverse of incremental inductance, apparent inductance, and rotor flux linkage.On the other hand, the FLM requires an inversion of flux maps and subsequent determination of interpolation functions.Parameterization time denotes the computational time required for full-model parameterization before the simulation can be actually run.Table 2 shows that, in the case of FLM parameterization, the proposed intersection method is superior to the minimization method by an order of magnitude.The FLM parameterization time is thus comparable to CM, even though the latter still performs twice faster.However, the said differences fade completely, as execution time of simulation is nearly always significantly longer.

Execution Time
Next, we compared the performance of the CM and FLM in terms of their execution time.Two rather basic simulation tasks were chosen as examples: three-phase short-circuit and full acceleration from standstill to deep field weakening, where the motor model is part of the speed control loop.The real-time time frame of the latter task was set at 10 s.The results in Table 3 clearly show that the FLM was faster than CM in both cases.It is interesting to note that, in terms of the control loop simulation, the FLM has a considerable margin of almost 20% over CM.As there are numerous possible situations for which dynamical simulations are typically performed, we particularly focused on scenarios where significant computational effort is inevitable.We were interested in the question of whether time-consuming tasks could be significantly reduced by using the FLM instead of CM.Two computationally intensive simulation tasks with high practical value were chosen as representative scenarios: (a) assessment of demagnetization risk during a three-phase short circuit and (b) WLTC driving cycle.The computational effort of the former scenario stems from an excessive number of iterations.In contrast, the latter scenario demands comparatively a long real-time time frame of 30 min.It should be added that both scenarios require only one parameterization at the beginning.
The assessment of demagnetization risk during a three-phase short circuit requires many iterations of the basic three-phase short-circuit for different operating points (T, n) in the torque-speed diagram.Every steady-state operating point (T, n) is associated with the specific value of I d (Figure 12) and I q (not shown).Here, the torque-speed diagram contains 30 × 60 = 1800 operating points.Each current pair (I d , I q ) is fed as an initial value (I init d , I init q ) = (I d , I q ) into the space-state model, which calculates respective transient short-circuit currents i d (t) and i q (t).For example, Figure 13 depicts transient for 9 operation point (56 Nm, 5000 min −1 ).The critical time instant t crit , where d-axis current reaches its global negative peak, is determined by The negative peak value of d-axis current I crit d = i d (t crit ) and the coincidental q-axis current I trans q = i q (t crit ) are then identified and stored (Figure 13).In this way, a complete prediction of (I crit d , I crit q ) for the whole torque-speed diagram is obtained.The d-axis current I crit d is the worst-case instantaneous value for specific operating point (T, n) and is directly associated with demagnetization risk.Figure 14 depicts the predicted I crit d for the torque-speed diagram.We can observe that the highest negative values of I crit d are expected when the IPM is delivering peak power (big i q ).It is interesting to note that there is less of a demagnetization risk when the machine operates in deep flux weakening.Moreover, the I crit d in generating mode is larger than its counterpart in motoring mode.
Operating points, where values of I crit d are critically low, are identified as candidates for demagnetization.Therefore, precise re-evaluation of this operating point with FEA was performed.The corresponding current pair (I crit d , I crit q ) is fed into the magnetostatic simulation.Precise calculation of the magnetic field inside magnets enables reliable demagnetization risk assessment.
As this particular scenario is a simple iteration of the basic simulation task described above, we could estimate the execution time for both models.The FLM enabled 9.4% faster execution in comparison to CM, which can be considered a significant improvement (Table 3).
The torque-speed diagram in Figures 12 and 14 requires comment.The envelope of the diagram is not symmetrical for motoring (top) and generating (bottom), as the transition speed between a constant torque operation and flux-weakening operation differs for motoring and generating mode, which is mainly due to the 48 V car battery being used as a DC source.A significant relative difference in bus voltage for motoring (48 V) and generating (52 V) mode is further aggravated by the effect of losses and stator resistance, which explains the difference in the torque-speed envelope.Analogously, the WLTC driving cycle scenario is very similar to another basic simulation task described above, namely, control with field weakening.WLTC prescribes speed values for each second in the 30 min time frame.Consequently, the time series of speed values is treated as a reference for the control loop drive.As we can observe from Table 3, the FLM-based simulation model was 18.1% faster than its counterpart.

Conclusions
In this paper, an FEM-parameterized two-axis model of IPM was thoroughly analyzed, and its two implementations (i.e., CM and FLM) were compared from the point of view of accuracy and computational demand.Since parameterization of FLM involves the inversion of flux maps, it is mathematically more complex than analog CM tasks, thus resulting in significantly higher computational and, by extension, time demand.For this reason, a procedure for fast and reliable parameterization FLM was presented.The proposed procedure is one order of magnitude faster than the comparable methods, hence providing considerable improvement in terms of computational time.In this way, the major drawback of using FLM were overcome.It was established that the error of the inversion process was under 0.02%.
Additionally, we showed that the execution time of FLM was up to 20% shorter in comparison to CM.As the parameterization time of FLM is now comparable to CM, we strongly advocate the use of FLM in computationally intensive simulation scenarios, which include a significant number of iterations or have an excessive time span.This is why FLM should be used in the Hardware-in-the-Loop experiment platform as well, since the real-time computational burden should be as low as possible.

Figure 5 .Figure 6 .
Figure 5. Jacobian determinant J f over the domain of current vectors I orig d and I orig q .

Figure 7 .
Inverse flux map for (a) d-axis and (b) q-axis current.

Figure 9 .
Figure 9.Comparison of FLM and CM for a three-phase symmetric short circuit at (top) 3000 min −1 and (bottom) 15,000 min −1 .

Figure 12 .
Figure 12.Initial current I init d for a three-phase short circuit.

Table 2 .
Comparison of parameterization times.

Table 3 .
Comparison of execution times.