This invention relates to a method of characterizing a permanent magnet synchronous motor by determining a set of parameters that define the motor. Variations of the method of the invention may be used in real time or offline after acquisition of data.
Permanent magnet synchronous motors are well known for use in a wide range of applications. They have proven especially suitable for use in electric power steering systems due to their ability to operate precisely over a wide range of torques as well as being robust and cost effective. In an electric power steering system the motor is driven in response to a torque demand signal to apply a torque to a steering shaft or other part of the steering mechanism that helps the driver to turn the wheel. In a fully steer by wire system, the motor may be the sole means of turning the steered wheels of the vehicle, but generally it will apply a torque alongside a driver applied torque.
For online parameter estimation it is important to have a detailed characterization of the motor parameters that are not changing, or that are being used as starting values for the estimation. Accurate control of the motor in a range of conditions requires good knowledge of the motor parameters. In a simple, widely used, linear model of the motor the q axis and d axis inductances may be defined as constant values. The currents in the d- and q-axes are related to the d- and q-axis voltages using the following relationships:
Where the letters with the suffixes d or q represent quantities in the d-q frame such as voltage (u), current (i) and inductances (L). Rs is the winding resistance, wr is the electrical velocity and ψm the permanent magnet flux-linkage.
This classical model is robust but the applicant has appreciated that is over simplistic because it ignores the effects of magnetic saturation and cross coupling. When modelling permanent magnet synchronous machines magnetic saturation and cross-coupling effects gain relevance when accuracy is needed. Identification of these parameters becomes a challenging task.
An object of the present invention is to provide an improved method to identify the parameters of the model of a motor.
According to a first aspect the invention provides a method suitable for characterizing a motor, such as a permanent magnet synchronous motor, comprising the steps of:
The method may use a flux linkage model that includes the effects of saturation for the fitting of the values.
In particular, the method may use a flux linkage model that includes the effects of cross-coupling between d- and q-axes instead of, or in addition to, the effects of saturation. Prior art models general are linear models that do not allow for these effects, making them unsuitable for applications were accurate determination of the parameters is required.
In a particularly advantageous arrangement the flux linkage model utilises a power series based upon Taylor's theorem for multivariable functions. This enables the power series to be valid for all infinite differentiable functions.
The parameters determined from the model may include one or more or all of the following parameters:
The method may optimise the model coefficients to determine values for the following parameters of the motor:
The step of obtaining the plurality of winding flux linkage values may comprise obtaining the values through a finite element simulation of the motor.
An electromagnetic finite element simulation of a three phase motor may directly provide the fluxes in the three phases and the invention may then transform these into the dq-frame.
The step of fitting the model to the linked values may comprise a step of using the transformed values to generate at least one map for the d-axis and q-axis flux-linkages, each map grouping together flux linkage values or terminal voltages having a common phase advance, and
Fitting the flux linkage model to the one or more dq-axis flux-linkage maps using a process of parametric optimisation.
The step of fitting the model to the flux linkage values or terminal voltages may comprise a step of forming one or more 2D or 3D maps using the flux linkage values or terminal voltages where each map corresponds to a different phase advance or phase current, the model being parameters being selected to give the best fit of the model to each map.
The at least one map may comprise a plot of the dq-fluxes against the dq-current.
In an alternative the map may comprise a plot of the dq-fluxes as a function of both the phase advance and the current magnitude
These maps may be used by the method of the invention for the parameter identification.
In an alternative the method may use the dq-voltages as the basis for the maps as these voltages are known to be a function of the flux-linkages:
The step of fitting of the model to the map or maps may comprise a quadratic parameterisation process whereby the parameters of the flux-model are determined using a gradient based method to minimize the sum of the square of the squared errors.
The method may fit the coefficients of a power series that represents the d-axis and q-axis flux linkages to the d-axis and q-axis flux-linkage maps. The method may comprise selecting a power of the series according to the required accuracy which must be traded against the number of computations required to determine the parameters. A higher power will provide a higher accuracy but at greater computational cost.
The method may optimise the parameters of a model that comprises two equations for d-axis and q-axis flux linkages respectively of the form:
Where n is the model order, ldq
The method may optimise the model coefficients to determine values for the following parameters of the motor:
The plurality of flux linkage values may be obtained by the method by measurement of the flux linkage values directly, by measuring operational parameters from which the flux linkage values can be calculated or which are known to be a function of the flux linkage values, or by finite element modelling of the motor. The method may use a combination of these three alternatives.
Where FE modelling is used the step of obtaining a plurality of winding flux linkage values may comprise obtaining operational values from which the flux linkage values can be derived, the operational values including one or more of the following:
Computer software using finite element methods is readily available to solve Maxwell's equations. Those skilled in the use of such software define the mechanical geometry of the motor being analysed, assign appropriate magnetic permeability to the materials using values taken from data sheets or measurement, assign the remenance and demagnetisation characteristic to any permanent magnet materials present in the motor again using values taken from data sheet or measurement, define the electrical conductivity of any materials, and define the number of turns and location of windings present within the motor. These finite element models can be in either two or three dimensions. Three dimensional problems take longer to solve, but yield more accurate results as end effects are accounted for. Depending upon the software being used, the rotor can be set to rotate whilst the currents within the windings are varied, or the currents varied whilst the rotor is held in place. The former allows time transient simulations to be utilised that include the effects of eddy currents within electrically conductive materials within the motor. If the effects of eddy currents are known to be low, magnetostatic simulations can be used. In either case, the simulation needs to be conducted for a range of winding currents at different phasing to the back-emf of the motor and at various current amplitudes. The flux linkage is calculated as a post-processing step from the magnetic field solution. Usually the flux linkage values are calculated for each winding, and therefore represent phase quantities. These flux linkage values, along with the phase currents used in the simulation are transformed in to the dq axes using the following equation:
Where θ represents the electrical angle between the rotor direct axis and the stator phase-a axis. The letter S represents the quantity to be transformed, such as flux-linkages, phase currents or phase voltages.
It should be noted that whilst finite element analysis provides a ready approach to obtaining the flux linkages, other more traditional approaches using magnetic equivalent circuits could be utilised. Although quicker to compute their accuracy is far lower than the finite element method.
The method may involve finite element simulations at rotor mechanical positions corresponding to every 10 degrees electrically. The choice of the number of simulations being dependent upon accuracy and time available. To characterise a motor over a wide operating range, those skilled in the art appreciate the need to repeat the simulations for a range of phase current amplitudes.
Having obtained the d- and q-axis currents, rotor position, and corresponding flux linkages the flux model coefficients may be optimized using the quadratic parameterisation to fit the flux linkage curves obtained from the operational values.
In one implementation of the method, the objective function for the optimization may be the sum of the squared errors of the dq-axes flux linkages.
Where the operational values are modelled by finite element analysis, rather than real measured values, the optimisation of the model parameters may be performed individually using the following functions where the letters with a hat notation represent estimated values and the letters with no hat notation are the finite element values of the simulation.
The identification of the model parameters that gives minimal least squares error may be implemented using a quadratic parameter modeller within an off the shelf computer program such as MATLAB.
A further object of the present invention is to provide an improved method to identify the parameters of the model of a motor in a laboratory or other non-operational, offline, setting using actual measurements.
In embodiments of the method where actual measurements are made rather than FE modelling the step of obtaining a plurality of winding flux linkage values may comprise obtaining operational values from which the flux linkage values can be derived, the operational values including one or more of the following:
The method may comprise processing the one or more measurements to derive flux linkage values to which the model can be fitted. These can be grouped together in sets, each set corresponding to a respective phase current and phase advance.
Where possible the measurements may include direct measurement of the flux-linkage in each phase of the motor. This may be obtained from a search coil associated with each phase that is sensitive to the flux linkage.
Further operational values that may be obtained by the method that uses measured data may include one or more of the following:
Each of the obtained operational values may comprise real measured values, for instance obtained with the motor in use or in a laboratory.
In one implementation, referred to hereinafter as an offline method, the method may comprise collecting at least some of the operational values, or directly measuring the flux linkage, when the motor is offline, for example in a laboratory setting by applying a set of current ramps to the motor, with each ramp generating one of the set of operational values or flux linkage values and each ramp corresponding to a different phase advance angle of the motor currents.
For example, a current ramp may be applied at two, or three or four or more phase advance angles, e/g 0 degrees, 22.5 degrees, 45 degrees, and 70 degrees. Measurements may be taken periodically within the ramp to build up a set of operational parameters and/or flux linkage measurements at differing current values in each ramp. Each set may be used to generate a respective map that may be used during the model fitting process.
The offline method may comprise driving the motor with ramped currents of short duration. As the current is varied the rotor may be rotating under the control of an external drive, such as that contained within a dynamometer. The speed selected for the test may be below the base speed of the machine. Selection of the duration of the current ramps is influenced by the size of the machine, and the control system maintaining the rotor speed. For example, for a motor of around 1 hp rating, a current setting of 3 or 4 seconds may be appropriate. Keeping the ramps short ensures the duration of the whole measurement method is kept short which is advantageous as it is known that some of the motor parameters are temperature dependent. If the method takes too long the temperature of parts of the motor may have changed making the results inaccurate.
Once all samples have been taken, the method may process them all together to fit to the model, or may use them to form maps as explained above which can be fitted to the model.
The parameter identification using measured data may be based on measurements of the rotor reference frame voltages (dq-voltages) of the machine. To find the optimal coefficients, the sum of the squared errors of the normalized dq-voltages and normalized electric torque are minimized. Consequently the equation below may be used in place of equations (8) and (9) in the numerical optimization to find the optimal set of parameters describing the motor. As with the optimization using simulated data, the identification of the model parameters that gives minimises the objective function may be implemented using a quadratic parameter modeller within an off the shelf computer program such as MATLAB.
Where the letters with a hat notation represent the values of the estimated values and the letters with no hat notation the measured values. The estimated values for voltage and torque are obtained using the following equations:
p is the number of pole pairs within the motor
wr is the electrical frequency of the rotor in radians per second
id and iq are the d- and q-axis currents computed from the motor
phase currents based on Clarke & Park transforms
t is time in seconds
Rs is the stator phase winding resistance
Te is the electromagnetic torque produced by the motor. It is assumed that the mechanical energy lost within the motor is negligible or is otherwise accounted for between where the torque is measured and produced within the air gap of the motor. ud and uq are the d- and q-axis voltages in the rotor reference frame
Where ψq(id,iq) and ψd(id,iq) are the flux-model power series equations (5) and (6). Because a flux-linkage measurement on the real motor is quite complicated we opted for the measurement of the dq-voltages as they depend on the dq-fluxes. In order to improve the accuracy of the parameter estimation the applicants found it beneficial to include the torque in the objective function.
In another alternative implementation, rather than Finite element modelling or obtaining operational values when the motor is offline the method may comprise measuring the plurality of motor operational values during use of the motor, in an online operation.
For a practical online operation, the method may obtain measurements of operational values over time. The range of these measured operational values is to a large extent dependent upon what the motor is being called to do in the working application. As a minimum, for each optimization the number of measurements of operational values that needs to be obtained is the same as the number of unknown parameters within the objective function. So for example for a model of order n=3, the following equations apply having 11 unknown parameters, which would therefore require 6 or more measurements each taken at a different operating point i.e. a different rotor positions, phase current magnitude or phasing of the electrical currents with respect to the rotor position.
Therefore depending on the number of unknown parameters in the model the method may comprise collecting a minimum of measurements of operational values that meet certain conditions to run the optimization. It is not only about the number of the measurements, the measurements need to be representative, for example a minimum current value or that the measurements cover different operational points.
For example, for an online estimation, the voltage equations in steady state for model order n=3 would take the following form:
Several scenarios can be possible. If all the flux-linkage coefficients or parameters (represented by the letter 1) are determined in a previously performed offline procedure or are somehow known, the only unknown parameters would be Rs and ψm. In this case, the two dq-voltage equations are enough to find the two unknown parameters, the coefficient matrix would be of full rank, meaning that there is a unique solution for the problem. Therefore, with the measurements of one operational point is possible to make a valid estimation of Rs and ψm.
Each operational point delivers a d-axis and a q-axis voltage with its corresponding dq-axis currents and angular velocity. If there are 4 unknown parameters, it would be necessary to obtain two sets of different operational points to form a system of 4 equations with 4 unknown parameters.
Once an initial set of operational values have been obtained to minimise the objective function, further operational values can be used in place of the oldest in subsequent iterations of the characterisation. The only requirement is that the number of unique operational values used within computation of the objective function is at least as high as the number of parameters that are being identified.
The applicant has appreciated that the collection of sufficient operational values when the motor is online may take a relatively long time, during which the temperature of parts of the motor may have varied.
Therefore, in a refinement the method may comprise applying a thermal model of the motor to the operational measurements when fitting to the motor model to at least partially account for the temperature of parts of the motor. Two parameters of the model showing greater sensitivity to temperature are the winding resistance and flux produced by any permanent magnets present in the motor. It is known that the resistivity of copper from which many motor windings are made varies with temperature. Similarly for magnets manufactured from neodymium iron and boron (NdFeB) their remanent flux density is known to reduce at a rate of approximately 0.11% per degree Celcius. Taking just these two variations with temperature, the online equations for a model according to the present invention of order 3 become:
Through reviewing the above equations, it can be seen that there are now additional parameters, Tmagnet and Twinding for the magnet and winding temperatures respectively to be identified as part of the optimization. To is a known constant reference temperature and tempcocopper and tempcomagnet are temperature coefficients of copper and magnet material.
The permeability of electrical steels used within motors is also known to vary with mechanical stress such as may result from thermal expansion at different rates of dissimilar materials used within a motor. A variation in the permeability of the electrical steel carrying magnetic flux linking with the windings may be observable through a variation in the inductance parameters of the characterised model.
In this fully online method, the data is gathered over time as the motor runs rather than gathering quickly offline using ramps, or by simulation.
In operational situations where less than maximum torque is demanded from the method may comprise adjusting the input current, for example to put more current on the d-axis without producing more torque. This optional method feature would ebale more unique operational values to be obtained without impacting the operation of the motor and would widen the operating range over which the motor is accurately characterized
The applicant further proposes that a mixed offline and online method of characterisation may be used. By online we mean characterising the motor when it is in use. In the case of an electric power steering system, for example, where the motor is used to apply an assistance torque to a part of a steering mechanism to help the driver turn the wheel, online means characterising the motor when it is being used to provide the assistance. Typically this will permit characterisation at any time that the vehicle ignition is switched on and the steering system is live.
In this mixed method the steps may therefore comprise:
Performing steps of the first aspect initially with the motor offline or predicted using simulation from which the parameters of the model are estimated, and during a later online operation of the motor performing the following steps:
In a most preferred implementation of the method online the measured operational values may comprise the phase voltages, phase currents and rotor position. These are sufficient to enable the fitting of the model to the measured values to be carried out, with the rotor position enabling the currents and voltages to be transformed into the dq frame of reference as required.
Most advantageously, the steps carried out online for the optimisation of the parameters of the model is constrained using predetermined values for the parameters which are known to be relatively independent of temperature.
This allows those parameters that vary relatively a lot with temperature such as motor winding resistance and magnetic flux to be determined online and those which do not such as cross coupling between d-axis and q-axis fluxes and inductance to be determined offline.
Reducing the number of parameters that are determined from the online measurements reduces the amount of computing power needed and may also reduce the time taken to generate usefully accurate values for those online parameters compared with a fully online method. Conversely, compared with a fully offline method the modelling can be more accurate as the effects of temperature can be included in the modelling.
In a further refinement, the method may determine the temperature of parts of the motor such as the magnets and coil windings by inferring the temperature from the variation identified in the motor resistance and magnet flux over time.
The reader will appreciate that the online method can be implemented where the temperature invariant parameters of cross coupling and inductance are obtained by some other means than the method of claim 1, with these parameters being used with the operational values obtained online to optimise the remaining parameters of the model.
Accordingly, in a second aspect the invention provides a method of online characterisation of a permanent magnet synchronous motor comprising the steps of:
The measured values may be any of the values set out in the description of the first aspect of the invention. The skilled person will understand that any of the method steps described in relation to the first aspect may be incorporated into the method of the second aspect within the scope of this disclosure.
The known temperature invariant parameters may comprise the flux cross coupling between d and q axes and the motor inductance.
The method of the second aspect may use the model described for the first aspect of the invention, although the model may be simplified taking account that some parameters are known or assumed in this online method. The model may therefore comprise a flux linkage model of the motor that utilises a power series based upon Taylor's theorem for multivariable functions.
This will allow the temperature of the windings and magnet or other parts of the motor to be measured accurately without additional sensors.
The motor torque can be estimated making use of the torque equation (11) as a function of the flux-linkage model presented in 5) and (6). The coefficients in (5) and (6) may be determined using prior to running the method of this second aspect, for example using the offline method of the first aspect, leaving the permanent flux-linkage and its temperature dependency to be estimated online.
According to a further aspect the invention provides a motor modelling apparatus comprising a processor, a memory and a set of programme instructions stored in the memory which when executed by the processor cause the apparatus to carry out a method according to the first aspect of the invention suitable for characterising the performance and parameters of permanent magnet synchronous motors.
The apparatus may be suitable for use after assembly of a motor to determine parameters for use with a controller of the motor when operating the motor or for promulgation to recipients of the motor.
In a refinement the programme instructions may be located remote from the processor and the memory and the apparatus includes communication means for access of the instructions by the processor across a network such as the World Wide Web.
The method of the above aspects, and the apparatus, may be arranged to generate from the characterisation a motor parameter list and the method may store the list in a suitable form for use during subsequent operation of the motor. This may be stored as a printed list or in an electronic memory. If the method is carried out at the end of line of the motor production, then it would be expected that the parameters would not change during installation of the motor and may be used by an operator or purchaser of the motor when setting up a motor controller for the motor.
There will now be described by way of example only, three embodiments of the method of the present invention with reference to and as illustrated in the accompanying drawings of which:
To understand the operation of the method of the invention it is first necessary to understand the underlying novel general flux based dq-axis model for permanent magnet synchronous motors,
PMSMs, that includes saturation and cross-coupling effects. The model's order is extendable and this order determines how accurate these effects are represented.
The method of the invention employs this novel general machine flux based model developed by the inventors which has a polynomial form. The model is derived in an analytical way to keep it general and applicable to any permanent magnet synchronous machine. Using the model, the method obtains various motor operational values and from these generates a set of data which can be fitted to the model. As will be explained, the preferred method employs quadratic programming to optimise the parameters of the model from the measured operational values. As the model is a flux based model, the operational data is used to generate flux linkage or motor terminal voltages for use in the optimisation.
It is known from the literature that the phase voltages of a permanent magnet synchronous machine can be described either in terms of flux linkages or inductances. The rotor reference frame voltage equations are defined in the following expressions:
Permanent magnet synchronous motors are susceptible to magnetic saturation which is caused by the reduction of the relative permeability in the magnetic materials. The resultant relative permeability is determined by the flux density in different material regions, making the magnetic circuit nonlinear. The flux density plot in
It can be observed that the permeability of the materials along the magnetic path defines the magnetic reluctance R. At the same time the relative permeability _r is determined by the flux density B as shown in
Because the flux flowing through each reluctance is directly related to the flux density, the nonlinear magnetic circuit of a permanent magnet synchronous machine consist of a series of variable reluctances, that depend on their own magnetic flux.
The fluxes along the magnetic paths are affected by the magnet remnant flux and armature magnetomotive force (m.m.f.). Due to the interactions already mentioned, the magnetic sources are coupled through reluctances. The airgap flux can be described as summation of the contributions of armature m.m.f and magnet remnant flux. The magnetic circuit in
to obtain flux, which is analog to admittance. However this model can be extended to consider the effects of the other two phases in a general form as in equation (22).
In developing a parametric model in the rotor reference frame, the applicant has appreciated that the air-gap flux can be transformed in the following way:
The proportional relationship between armature m.m.f and current; the flux equations (23) and (24) can be expressed in terms of the currents:
φg
φg
By making use of Taylor's theorem for multi-variable functions, equations (25) and (26) can be expressed in a polynomial form. If the magnet operating point is kept in the linear part of the B-H curve and the magnet temperature remains constant, the magnet remanent flux _r can be assumed to be constant:
To continue to develop the model as a flux linkage one, it is prudent at this point to switch from magnetic flux expressions to flux linkage expressions. The dq-flux linkages can be expressed in the same way as in equations (27) and (28). The summations can be rewritten in terms of coefficients after evaluating the derivatives at the point (0; 0) and expanding the polynomials:
So far the flux linkage has been expressed according to Taylor's theorem in the form of a power series expansion. Taking into consideration that there is no q-axis permanent magnet flux component that can bias the relative permeability of the q-axis magnetic path and observing equation (26), it is evident that the q-axis flux is an odd function with respect to iq . This means for the q-axis flux linkage the following:
ψq(id, iq)=−ψq(id, −iq)
Equation (32) can be simplified because the coefficients of terms with even powers of iq would be zero. Being n the polynomial degree, equation (32) can be rewritten in the form of equation (33).
For example, for n=3 the coefficients would be:
ψq(id, iq)=ldq
The contribution of id in equation (25) indicates that the d axis flux could be symmetric with respect of id. In reality the d-axis magnetic path is biased by the permanent magnet flux. The relative permeability in this path won't show a symmetric behaviour with respect to id. This means that there is no simplification for the powers of id due to symmetry. On the other hand, the d-axis flux is symmetric with respect to iq:
ψd(id, iq)=ψd(id, −iq)
Because ψd(id,iq) is an even function with respect to iq, all coefficients of terms with odd powers of iq would be zero in equation (31). Being n the polynomial degree, equation (31) can be rewritten in the form of equation (34).
For example, for n=3 the coefficients would be:
ψd(id, iq)=ψm+ldq
The correlation of the coefficients to the physical parameters can be seen in the following equations:
Ld
An inductance-based model can be still derived from the model presented in (33) and (34). The absolute and differential dq-axis inductances can be easily obtained from the polynomials.
The coefficients of (33) and (34) can be then determined by means of any optimization method to fit them to the flux linkage curves obtained by the simulation (e.g.
Quadratic programming is chosen because it is a simple constrained optimization problem. If it is defined as an unconstrained problem, it gets reduced to a least squared problem:
Minimize Q(x)=½xTGx+gTx (35)
Where G is the Hessian ∇2f (x) of the objective function f(x) and g=∇f(x)−Gx. The objective functions for the dq-axis flux linkages are defined in (36) and (37).
=∇ψdxd; =∇ψqxq
For example, for n=3:
xdt=[ψmldq
xqT=[lqd
∇ψdT=[1idiq2id2idiq2i33]
∇ψqT=[iqiqidiq3iqid2]
For the purpose of initially validating the method of the present invention the quadratic programming solver “quadprog” of the software MATLAB was used to run the curve fitting process for different model orders. The polynomials feed into the optimization process were in its full form (see equations (31) and (32)) in order to show the correctness of the analysis previously done.
TABLE I above shows the model coefficients according to equations (31) and (32) for a particular permanent magnet synchronous motor.
The non-zero elements in table I correspond to the coefficients in expressions (16) and (14). The accuracy of different model orders is shown in
Regardless of the type of machine model, either inductance based, or flux based, a general observation has to be made when considering the fidelity level of the target model. If a nonlinear model is required, the equation (34) gives an insight of an important term to be considered. The terms ldq
Equation (40) describes the torque constant Kt. It is defined as the ratio between the electromagnetic torque, Te and the q-axis current, iq at zero phase advance (id=0 A). It can be easily measured as it only requires to drive the machine with id=0 A and to record the torque at different q-axis current values.
By characterizing the machine in terms of resistance and self-inductances Ldd(id) and Lqq(iq) alone the reduction in Kt with increasing q-axis current seen in
The method may fit the model to flux linkage values that have been obtained from a finite element (FE) model of the motor. In one exemplary method of this kind the following steps may be performed:
In a first exemplary method the mechanical dimensions of the motor to be modelled are obtained from drawings, Computer Aided Design models or measurement. Magnetic properties of materials, such as relative permeability and remanence of any magnets used in the motor are obtained from data sheets or measurement. The number of turns of each winding within the motor are also obtained from inspection, drawings or Computer Aided Design models. This design information is entered in to one of the readily available computer programs capable of solving Maxwell's equations. Assuming eddy currents within the materials from which the motor is made are known to have little significance, a magnetostatic solution of Maxwell's equations is selected. Each software has different user interfaces, and there are frequently similar ways of achieving the same analyses. A typical approach will be to configure the computer software to rotate the rotor of the simulated motor through one electrical cycle. For a motor containing 4 pole pairs this will correspond to a quarter of a rotation of the rotor mechanically. The computer software is further configured so at each rotor position selected for analysis a set of currents are applied to the windings. These currents are computed so that the d- and q-axis currents are invariant to rotor position. Having run the simulation, the rotor is then rotated through a further electrical cycle with a different set of d- and q-axis currents that correspond to a different phase advance. The process is then repeated until a range of phase advances have been simulated. The simulation is further repeated for all the phase advances but at a different level of current magnitude. Depending upon the software used, the solved magnetic fields are post-processed either after computation of each individual simulation at a rotor position and phase current combination, or after the whole data set has been simulated. During the post-processing step the computer software is requested to provide the flux linking with coils within the model. The flux linkages are then combined together with reference to the connections of the coils that form each phase of the motor.
Step 2—Transform the Resultant Flux Linkage Values
The flux linkage and phase current values obtained within Step 1 in combination with the rotor position at which each simulation was performed are transformed in to the rotor dq reference frame using equation 7.
Step 3—Fitting the Flux Linkage Model to the Data
Equations 33 and 34 and expanded to the selected model order. For a model of order n=3 this would be as set out above, and the unknowns parameter values to be identified are:
xdT=[ψmldq
xqT=[lqd
The flux linkage gradients for each simulated dq current combination are formed in a matrix. The corresponding d- and q-axis currents and the corresponding objective functions of equations 36 and 37 are formed by formulating the quadratic programming problem of equation 35 for each objective function.
For example, for n=3:
Recalling equation 35, the quadratic programming problems Qd(xd), Qq(xq) are defined through the gradients ∇fd(xd), ∇fq(xq) and the Hessians ∇2fd(xd), ∇2fq(xq) of the corresponding objective functions. The parameters represented by xd and xq are then optimized using a quadratic programming solver with the corresponding gradients and Hessians as inputs.
In a second exemplary method of determining the motor parameters, the actual motor—as opposed to a simulation of the motor—is operated in controlled offline conditions to allow for the efficient collection of sufficient operational values for the parameters of the model to be determined. This method is illustrated in
The method can be broken down into the following steps:
Step 1 Obtain a plurality of sets of operational values of the motor, each set corresponding to a different phase advance angle,
This step may be carried out with the motor in a laboratory on a test bench but may also be carried out with the motor in situ, for instance in a vehicle, provided the currents applied to the motor can be controlled and the appropriate measurements obtained.
The object is to obtain an appropriate set of operational values that enable the values to be fitted to the model and to do so as quickly as possible. It is important to remember that the winding resistance and the permanent flux linkage are temperature dependent. So, the measurement should be carried out in a short period of time (few seconds) compared to the corresponding thermal time constants.
A suitable procedure may comprise driving the machine with a constant speed (below base speed) whilst the phase current magnitude is increased from zero to a maximum value at a fixed phase advance angle. A set of current ramps are therefore applied, and measurements are taken at multiple values along each ramp to generate multiple sets of measured operational values. These current measurements form the operational values.
This current ramp is repeated for different phase advance angles in order to cover one quadrant. Phase currents, terminal voltages, shaft torque and rotor position are logged at a rate of 5 MS/s for each current ramp for example.
Step 2 Transform the obtained values into the rotor dq reference frame
In this step, the obtained values are transformed into the dq reference frame because this is the frame used by the model. Again, the transformed values are kept in their respective sets. The values are then passed through a low pass filter as shown in
Step 3 Those skilled in the art will appreciate that sampling at a high data rate will yield many operational points corresponding to effectively the same d- and q-axis operating point. Consequently, in a preferred embodiment, after filtering the data to smooth effects of any noise present in the measurement signals, the measured points may be down sampled to improve the speed of the optimization process
The skilled person will appreciate that the operational data could be obtained offline in different ways, For example the rotor could be locked in position and the current varied through a range of phase advance angles and magnitudes and measurements taken as they are varied.
Step 4 Fit the parameters of the model to the measured d-axis and q-axis voltages, d-axis and q-axis currents, and measured torque.
Recalling the machine model of equation (18), away from the flux model coefficients, the winding resistance enters as an additional parameter to be determined. From
Within equations (42), (43) and (44) there are 11 model parameters to be identified. Through sampling at a high data rate such as 5 Ms/s and operating a ramp for several seconds it is clear there is sufficient independent data points.
The terms that accompany the current derivatives in equations (42) and (43) correspond to the differential inductances.
It is envisaged that a range of different methods may be used for fitting the maps of the operational values, in these examples forming maps as 2D or 3D curves, to the model may be employed, but for this exemplary embodiment the method chosen to perform the curve fitting procedure was the minimization of the sum of the squared errors using a gradient base method. Quadratic programming was selected, because it was conceived to solve constrained nonlinear optimization problems with quadratic objective functions. The nature of the machine model defines some physical constraints.
The nature of the machine model defines some physical
Rs>0; ldq
All these constraints define the region where the optimal solution should be found. The objective function is then defined with the help of equations (42), (43) and (44), where the letters with a hat notation represent the values of the estimated values and the letters with no hat notation the measured values. The magnitudes in the objective function may be normalized to appropriate reference magnitudes of the system in consideration, for example, d- and q-axis voltages to the nominal voltage rating for the machine to prevent squared errors with higher weighting having undue influence upon the optimization.
Each squared error term can be rewritten in terms of gradients:
=∇udTx; =∇uqTx; =∇TeTx
The quadratic programming problem has the following general form [11 ]:
Minimize Q(x)=½xTGx+gTx
aiTx=bi, i∈E
aiTx≥bi, i∈l (46)
Where G is the Hessian ∇2f(x) of the objective function f(x) and g=∇f(x)−Gx. The vectors ai and bi define the constraints of the problem.
Equations (33) and (34) are valid for the machine's fundamental harmonic. The terminal voltage and phase current signals are filtered to extract the fundamental. After that, they are transformed into the dq-frame. Those signals will still have some harmonic components produced by slotting, inverter dead time and even control related effects. For that reason, the transformed signals are low pass filtered again.
In a modification of this method, flux linkage values may be obtained directly by fitting of search coils to the motor.
A 4-pole pair sample motor was chosen and the first exemplary method was performed to characterize the motor in a laboratory. For comparison purposes the winding resistance was obtained through a four-point measurement (current/voltage), the permanent magnet flux-linkage was derived from a back-emf constant measurement. The linear d-axis inductances and the q-axis inductance were obtained from a line-line impedance measurement at low current, for comparison with the linear inductance based model. The inductance from the impedance is evaluated at certain rotor positions to determine the dq-axis inductances. The following parameters were obtained using the offline method and the novel motor model:
In the experiment the values of Rs was obtained by direct measurement from using a milliohm meter, the magnet flux from a back-emf measurement, the d- and q-axis inductance from measuring the motor terminal voltage, and also the phase currents, whilst essentially looking at the phase shift between them to determine the inductance, and finally through knowing the rotor position relating the inductance to the d- or q-axis.
The method was also carried out using a different motor having 7 pole pairs and the following parameters were obtained:
The above results demonstrate that machine parameters were successfully identified with deviations below 1.5% for an interior PMSM and a surface mounted PMSM. The deviations appreciated in tables II and IV are mainly caused by rotor position errors and core losses.
A general model and method of use of the model for the flux linkage of permanent magnet synchronous machines with consideration of cross-coupling has been provided. The order of the proposed flux model depends on the polynomial degree. Conversely, there are a variety of inductance based models with different model orders. This is a strong advantage of the flux-based model of the present invention over other models. For example, if the degree of the polynomials in (33) and (34 is n=1, the resultant model order would correspond to the classical linear machine model with constant dq-inductances and no cross-coupling terms. On the other hand when n=3 it would deliver a relatively accurate model (see
Higher fidelity optimisation can be easily done by having the correspondingly higher model order (e.g. n=5). Accurate torque and efficiency predictions are possible through using the characterised motor model obtained through following the method explained above.
As an alternative to the offline method set out above, the applicant has appreciated that the novel parametric model may be used to determine one or more of the parameters when the motor is in use, a so called on-line method of motor characterization. This method is illustrated in
In this online method, a set of parameters are first obtained using the same model proposed for the offline method and the same methodology for obtaining operational motor values including the motor phase voltages and currents, motor rotor position and motor torque.
Once these have been obtained, those parameters which are thermally insensitive such as the cross coupling between d-axis flux and q-axis flux are retained and those which are temperature dependent are identified during use of the motor. Parameter values identified offline may be used to constrain parameter values identified online to realistic values. For example if the phase resistance of a copper winding is known to be 10 mOhm at room temperature, then allowing for a spread of production tolerances and considering the environmental conditions the motor is deployed within and anticipating some self-heating within the winding, allows constraints to be placed upon the online optimization. Conversely, if no, or a very wide range of values are allowed, a value outside of the anticipated normal range could be used to detect an abnormality has occurred within the motor, controller or data acquisition.
During the use of the motor, measurements of motor operational values are then obtained including the motor phase voltage and motor phase currents and the motor rotor position. The later allows the voltages and currents to be transformed into the rotor reference frame. The motor torque does not need to be measured in this online part of the method, although if available the accuracy of the motor parameters obtained can be improved. A further check of the validity of the motor parameter provided by the model is available by calculating the torque produced by the motor using the model parameters, and comparing it to the range of credible values the system is designed for.
Through tracking the variation of model parameters with time during model operation, further checks can be made upon the validity of the identified model parameters. For example, if the magnet flux identified by the procedure suddenly doubled within a few milliseconds when the thermal time constant of the motor is several orders of magnitudes longer, it would call in to question the validity of the parameter values or the operating state of the motor and controller.
Through comparing the temperature dependent parameter values identified online, with those identified offline for the same motor allows the temperature change to be identified. To do this required knowledge of the temperature coefficient relating the material property to temperature. For example the electrical resistivity of a winding.
Within a volume production run of many nominally identical motors there will be mechanical and material tolerances. Identified model parameters found on online will therefore likely differ from model parameters obtained from a pre-production laboratory sample at the same temperature and motor operating point. Provided the parameter values identified online are within the anticipated range for the motor operating temperature their numerical absolute values may not be so useful as the parameter variation over time. For example if two sets of measurements are taken 10 seconds apart in an online system, and the model parameters are identified after each measurement, and the winding resistance is found to have increased by 20% and the magnet flux reduced by 4% from the following equations the temperature of the winding can be deduced to have risen by approximately 50 degrees Celsius, and the magnet temperature to have risen by approximately 36 degrees Celsius.
Where in the above equations Twinding the winding temperature in degrees Celsius and Tmagnet is the magnet temperature in Degrees Celsius and the winding is substantially made from copper and the magnet substantially from an alloy of Neodymium iron and boron.
Batches of measurements of operational values are obtained containing at least the number of unique sample points corresponding to the number of unknown parameters of the model. For example if only Rs, magnet flux and temperature are unknown, then a minimum of 3 measurement samples are needed. More samples will help improve the accuracy of the model but will take longer to compute. The skilled person will appreciate the need to balance accuracy of an individual iteration of the model parameter calculation with the resources available to sample the necessary signals and the time available within a task scheduler in an online system to perform the computations. >Unlike the offline method, the retained parameters are used as constraints to the model so only the temperature dependent, and parameters need to be determined.
Depending on how the measurements are collected, it may be some time before enough measurements are available for an update of the parameters to be made. In this time, the temperature of the motor parts may have varied, which will affect the accuracy of the modelling. To ameliorate this, the method may include use of a motor thermal model. Such a lumped parameter thermal model is illustrated in
In use the thermal model calculates the electrical losses and then solves for the temperatures at points within the thermal equivalent circuit. Ideally at least one of the temperatures calculated within the equivalent circuit is known. For example by means of a thermistor monitoring the temperature of the air around the motor. The difference between the known measured temperatures and those estimated in the model can then be included in the least squares objective function alongside the temperature dependent motor parameters such as stator winding resistance and magnet flux.
In cases where a direct measurement of temperature is unavailable, the thermal model is used to obtain a prediction of how much the temperatures should have changed by since there was enough measurement data available to compute the temperature dependent parameters. This allows additional constraints to be applied to the optimization of the temperature dependent motor parameters. It is likely that assumptions about the environmental temperature surrounding the motor will need to be made in these instances. Similarly some of the thermal resistances within a typical thermal equivalent circuit will likely vary non-linearly with temperature. Consequently a suitable tolerance for errors within the thermal model will need to be applied so the constraints applied to the motor parameter optimization. Such tolerance limits could be obtained through a series of offline tests upon the motor when validating the motor thermal model against measured temperatures in both stalled and rotating conditions at various ambient temperatures with the motor operating in an environmental chamber.
By fixing a sub-set of motor parameters during the offline stage of the method, the temperature change can be inferred from the variation identified in the motor resistance and magnet flux. This will allow the temperature of the windings and magnet or other parts of the motor to be measured accurately without additional sensors.
In an alternative, rather than using real measurements obtained offline, the parameters may be obtained using computer modelling of the motor. In essence with this version of the online method the machine's parameter identification is divided in two categories; parameter identification from modelled, e.g. finite element (FE) data, and parameter identification from measurements.
The parameter identification using FE data focuses on the identification of the coefficients of (33) and (34) for a given model order n. The flux model coefficients are then optimized to fit the reference flux linkage curves. Therefore, the objective function for the optimization is the sum of the squared errors of the dq-axes flux linkages. On the other hand, the parameter identification using measured data is based on the rotor reference frame voltages (dq-voltages) of the machine. To find the optimal coefficients, the sum of the squared errors of the normalized dq-voltages and normalized electric torque are minimized. However, the identifications using FE data and using measurements are performed with the same optimization method.
The skilled reader will appreciate that new offline (lab based) motor parameter calibration method of the invention may offer more data in a shorter time over existing approaches. All machine parameters are identified with one procedure, including magnetic saturation and cross-coupling.
The exemplary online method does not require high speed operation of the motor and can be implemented even with the rotor locked. The method can be implemented using motor current and voltage waveforms of an essentially balanced sinusoidal form as used for normal operation of the motor. Production of special test waveforms, or square waves is not required. The characterisation process can be combined with other experimental work to identify the optimal operating point of the motor and therefore yield a further time saving. The same inverter and control electronics can be utilised as used with the motor in normal operation. All that is required is the facility to vary the phase advance and current magnitude; knowledge of the rotor position (which is usually available and needed by the control electronics;) the motor phase voltages and currents; and optionally for additional accuracy the motor torque. These signals can be readily logged using low cost off-the-shelf data transducers and a multi-channel oscilloscope, data acquisition system or simple microcontroller configured as a data logger
The on-line method can be used to build-up a detailed characterisation model of a motor over time as more operating conditions are encountered. However by using a combination of parameters obtained from the off-line measurement, and identifying a sub-set of parameters online, information about temperature or other operating state dependent motor parameters can be elucidated without adding additional sensors to the online system. In the case of a permanent magnet synchronous motor
Whilst the foregoing has discussed the invention disclosed here with reference to permanent magnet synchronous motors, those skilled in the art will appreciate the underlying power series model and test methods disclosed to identify the parameters of the model can be applied to other forms of motor for which the classical dq model is applicable. For example, the synchronous reluctance motor and wound field synchronous machine.
Number | Date | Country | Kind |
---|---|---|---|
1820001.4 | Dec 2018 | GB | national |