Method for determining the magnetic flux of an electric machine

11557997 · 2023-01-17

Assignee

Inventors

Cpc classification

International classification

Abstract

The present invention relates to a method of determining the magnetic flux φ of an electric machine, based on measurements (MES) of currents and voltages in the phases of the electric machine, on a dynamic model (MOD) of the magnetic flux and on an adaptive Kalman filter (KAL).

Claims

1. A method of determining magnetic flux of an electrical machine, the electrical machine comprising a rotor and a stator, the stator comprising windings connected to electrical phases, comprising steps of: a) measuring a current and a voltage in the electrical phases of the electrical machine; b) determining electrical rotational speed of the rotor as a function of mechanical rotational speed of the rotor; c) constructing a dynamic model of the magnetic flux of the electrical machine, the dynamic model of the magnetic flux connecting the magnetic flux to the current and to the voltage of the electrical phases of the electrical machine and to the electrical rotational speed of the rotor; and d) determining the magnetic flux φ by applying an adaptive Kalman filter to the dynamic magnetic flux model, the dynamic magnetic flux model being applied to the current and voltage measurements, to the determined electrical rotational speed, and to adapt a noise covariance matrix as function of the rotational speed of the electrical machine.

2. A magnetic flux determination method as recited in claim 1, wherein the electrical rotational speed of the rotor is determined with a formula ωe=pω, with p being a pole pair number of the electrical machine and ω being the mechanical rotational speed of the rotor.

3. A magnetic flux determination method as claimed in claim 2, wherein the mechanical rotational speed is determined by use of a phase-locked loop method.

4. A magnetic flux determination method as claimed in claim 3, wherein the dynamic magnetic flux model is written as: { φ d ( t ) = L d i d ( t ) + 3 2 Φ , φ q ( t ) = { L qs i q ( t ) - b qs , if i q ( t ) - i qm , L q i q ( t ) , if - i qm i q ( t ) i qm , L qs i q ( t ) + b qs if i qm - i q ( t ) with φ being the magnetic flux of the electrical machine, i being the current, Φ being the rotor flux, L being the inductances of the electrical machine, L.sub.qs, and b.sub.qs being coefficients accounting for saturation effect, d and q being the axes in Park's reference frame, and i.sub.qm being a quadrature current value for which the magnetic flux is a linear function of the quadrature current.

5. A magnetic flux determination method as claimed in claim 4, wherein the adaptive Kalman filter is applied by carrying out steps of: i) modifying the dynamic magnetic flux model by integrating uncertainties in the model and a measurement noise; ii) discretizing the modified dynamic magnetic flux model; and iii) applying an adaptive Kalman filter algorithm to the modified and a discretized magnetic flux model.

6. A magnetic flux determination method as claimed in claim 2, wherein the dynamic magnetic flux model is written as: { φ d ( t ) = L d i d ( t ) + 3 2 Φ , φ q ( t ) = { L qs i q ( t ) - b qs , if i q ( t ) - i qm , L q i q ( t ) , if - i qm i q ( t ) i qm , L qs i q ( t ) + b qs if i qm - i q ( t ) with φ being the magnetic flux of the electrical machine, i being the current, Φ being the rotor flux, L being the inductances of the electrical machine, L.sub.qs, and b.sub.qs being coefficients accounting for saturation effect, d and q being the axes in Park's reference frame, and i.sub.qm being a quadrature current value for which the magnetic flux is a linear function of the quadrature current.

7. A magnetic flux determination method as claimed in claim 6, wherein the adaptive Kalman filter is applied by carrying out steps of: i) modifying the dynamic magnetic flux model by integrating uncertainties in the model and a measurement noise; ii) discretizing the modified dynamic magnetic flux model; and iii) applying an adaptive Kalman filter algorithm to the modified and a discretized magnetic flux model.

8. A magnetic flux determination method as claimed in claim 2, wherein the adaptive Kalman filter is applied by carrying out steps of: i) modifying the dynamic magnetic flux model by integrating uncertainties in the model and a measurement noise; ii) discretizing the modified dynamic magnetic flux model; and iii) applying an adaptive Kalman filter algorithm to the modified and a discretized magnetic flux model.

9. A magnetic flux determination method as claimed in claim 3, wherein the adaptive Kalman filter is applied by carrying out steps of: i) modifying the dynamic magnetic flux model by integrating uncertainties in the model and a measurement noise; ii) discretizing the modified dynamic magnetic flux model; and iii) applying an adaptive Kalman filter algorithm to the modified and a discretized magnetic flux model.

10. A magnetic flux determination method as claimed in claim 1, wherein the dynamic magnetic flux model is written as: { φ d ( t ) = L d i d ( t ) + 3 2 Φ , φ q ( t ) = { L qs i q ( t ) - b qs , if i q ( t ) - i qm , L q i q ( t ) , if - i qm i q ( t ) i qm , L qs i q ( t ) + b qs if i qm - i q ( t ) with φ being the magnetic flux of the electrical machine, i being the current, Φ being the rotor flux, L being the inductances of the electrical machine, L.sub.qs, and b.sub.qs being coefficients accounting for saturation effect, d and q being the axes in Park's reference frame, and i.sub.qm being a quadrature current value for which the magnetic flux is a linear function of the quadrature current.

11. A magnetic flux determination method as claimed in claim 10, wherein the adaptive Kalman filter is applied by carrying out steps of: i) modifying the dynamic magnetic flux model by integrating uncertainties in the model and a measurement noise; ii) discretizing the modified dynamic magnetic flux model; and iii) applying an adaptive Kalman filter algorithm to the modified and a discretized magnetic flux model.

12. A magnetic flux determination method as claimed in claim 1, wherein the adaptive Kalman filter is applied by carrying out steps of: i) modifying the dynamic magnetic flux model by integrating uncertainties in the model and a measurement noise; ii) discretizing the modified dynamic magnetic flux model; and iii) applying an adaptive Kalman filter algorithm to the modified and a discretized magnetic flux model.

13. A magnetic flux determination method as claimed in claim 12, wherein the adaptive Kalman filter algorithm is applied by carrying out steps of: (1) initializing k=0, state vector {circumflex over (x)}(0) and a state of the covariance matrix P(0|0)=P.sub.0; (2) applying a time update and measurement update equations to obtain {circumflex over (x)}(k|k) and P(k|k): { x ^ ( k .Math. k - 1 ) = A d x ^ ( k - 1 .Math. k - 1 ) + B d u ( k - 1 ) , P ( k .Math. k - 1 ) = A d P ( k - 1 .Math. k - 1 ) A d T + B d Q t B d T { K ( k ) = P ( k .Math. k - 1 ) ( P ( k .Math. k - 1 ) + R ) - 1 x ^ ( k .Math. k ) = x ^ ( k .Math. k - 1 ) + K ( k ) ( x ( k ) - x ^ ( k .Math. k - 1 ) ) , P ( k .Math. k ) = ( I - K ( k ) ) P ( k .Math. k - 1 ) (3) determining the magnetic flux φ estimated at time k by use of the formulas: { φ ^ d ( k ) = x ^ 1 ( k .Math. k ) , φ ^ q ( k ) = x ^ 2 ( k .Math. k ) with k being discretized time, A_d, B_d being state realization matrices, P being a covariance matrix of the state vector, R being a calibration matrix, K being the Kalman filter gain and Q_∈ being an adjustment parameter.

14. A magnetic flux determination method as claimed in claim 1, wherein the electrical machine is a salient-pole synchronous electrical machine.

15. A method for controlling an electrical machine, comprising steps of: a) determining a magnetic flux of the electrical machine by use of the method of determining the magnetic flux as claimed in claim 1; and b) controlling the electrical machine by use of the determined magnetic flux.

16. A control method as claimed in claim 15, wherein the electrical machine is controlled according to a method providing direct control of torque of the electrical machine implemented from the magnetic flux.

17. A system for controlling an electrical machine, comprising a control for implementing a control method as claimed in claim 16.

18. A system for controlling an electrical machine, comprising a control for implementing a control method as claimed in claim 15.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) Other features and advantages of the method according to the invention will be clear from reading the description hereafter of embodiments given by way of non-limitative example, with reference to the accompanying figures wherein:

(2) FIG. 1 illustrates the steps of the method according to an embodiment of the invention; and

(3) FIGS. 2 and 3 show the values, in Park's reference frame, of the magnetic flux of the electrical machine as a function of the current.

DETAILED DESCRIPTION OF THE INVENTION

(4) The present invention relates to a method for determining, in real time, the magnetic flux of an electrical machine. The electrical machine comprising a rotor and a stator, the stator being equipped with windings connected to the electrical phases, for example three electrical phases for generating a magnetic field enabling rotation of the rotor.

(5) FIG. 1 schematically describes, by way of non-limitative example, the steps of the method according to an embodiment of the invention. The method of determining the magnetic flux comprises the following steps:

(6) 1) Measurement of currents and voltages (MES)

(7) 2) Determination of the electrical rotational speed (VIT)

(8) 3) Construction of the dynamic magnetic flux model (MOD)

(9) 4) Application of the adaptive Kalman filter (KAL)

(10) Steps 1) to 3) are independent and they can be carried out in this order, in a different order or simultaneously.

(11) Step 4) determines magnetic flux φ of the electrical machine.

(12) Furthermore, the invention relates to a method of controlling an electrical machine. Such a control method comprises steps 1) to 4) described above and an electrical machine control step (CTRL) 5).

(13) This control step 5) is an optional step. Indeed, the magnetic flux can be used in a different manner, notably for electrical machine fault diagnosis.

(14) Steps 1 to 5) are described in detail in the rest of the description hereafter.

(15) Notations:

(16) The following notations are used in the description: ν: voltages at the phase terminals of the electrical machine,

(17) i: currents circulating in the phases of the electrical machine,

(18) i.sub.qm: quadrature current value for which the magnetic flux is a linear function of the quadrature current,

(19) ω: mechanical rotational speed of the rotor, corresponding to the rotational speed of the rotor of the electrical machine in relation to the stator,

(20) ω.sub.e: electrical rotational speed of the rotor,

(21) Φ: magnetic flux intensity of the rotor magnet, considered for the method according to the invention, in a nominal case, for a temperature of 20° C.,

(22) R(t): resistance of the electrical machine windings, it is a known parameter that can be obtained experimentally,

(23) L.sub.d: direct inductance of the electrical machine, it is a known parameter of the electrical machine (manufacturer data or experimentally obtained data),

(24) L.sub.q: quadrature inductance of the electrical machine which is a known parameter of the electrical machine (manufacturer data or experimentally obtained data),

(25) L.sub.qs: inductance accounting for the saturation phenomenon (manufacturer data or experimentally obtained data),

(26) p: pole pair number of the electrical machine,

(27) φ: magnetic flux of the electrical machine,

(28) A: matrix of the state representation

(29) A = ( 0 ω e ( t ) - ω e ( t ) 0 ) ,

(30) B: identity matrix

(31) B = ( 1 0 0 1 ) ,

(32) f: function of the state representation,

(33) b.sub.qs: scalar coefficient taking account of the saturation phenomenon, this value can be obtained experimentally,

(34) u: vector of the state representation data,

(35) x = ( φ d φ q )

(36) state vector of the state representation, corresponding to the non-measurable state,

(37) ϵ: unmodelled dynamics,

(38) η: measurement noise,

(39) Ts: sampling period,

(40) k: discretized time,

(41) A.sub.d: matrix of the discretized state representation,

(42) B.sub.d: matrix of the discretized state representation,

(43) J: cost function minimized by the Kalman filter,

(44) P: covariance matrix of the state vector,

(45) P.sub.0, Q, R: calibration matrices,

(46) Q.sub.ϵ: adjustment parameter,

(47) K: Kalman filter gain.

(48) The estimated values are denoted by a hat (circumflex accent). The mean values are indicated by an overline above the variable. The time derivatives are indicated by a dot. The notations bearing subscripts _.sub.d (direct) or _.sub.q (quadrature) mean that the quantities are expressed in Park's reference frame. Besides, the initial state values are given with a 0 (t or k=0).

(49) 1) Measurement of Currents and Voltages

(50) The currents and the voltages in the phases of the electrical machine are measured in this step.

(51) These measurements can be performed by voltage and current sensors.

(52) 2) Determination of the Electrical Rotational Speed of the Rotor

(53) This step determines the electrical rotational speed of the rotor.

(54) According to an embodiment of the invention, the electrical rotational speed of the rotor can be determined from the mechanical rotational speed of the rotor, by use of the formula: ωe=pω.

(55) According to an implementation of this embodiment, the mechanical rotational speed of the rotor can be estimated using any method known to the person skilled in the art. For example, the mechanical rotational speed can be estimated from a phase-locked loop (PLL) type method. In a variant, the method of estimating the mechanical rotational speed can be as described in patent application FR-2,984,637.

(56) Alternatively, the mechanical rotational speed of the rotor can be measured by a speed sensor arranged on the electrical machine.

(57) In a variant, the electrical rotational speed can be directly determined.

(58) 3) Construction of the Dynamic Magnetic Flux Model

(59) A dynamic model of the magnetic flux is constructed in this step. The dynamic magnetic flux model connects the magnetic flux to the current, to the voltage in the electrical phases of the electrical machine and to the electrical rotational speed of the rotor. The model is referred to as dynamic because it is a function of the rotational speed.

(60) The dynamic magnetic flux model is a state representation of the electrical machine. It is noted that, in systems theory (and automation), a state representation allows a dynamic system to be modelled in matrix form, using state variables. This representation may be linear or not, continuous or discrete. The representation allows determination of the internal state and the outputs of the system at any future time if the state at the initial time and the behavior of the input variables that influence the system are known.

(61) In Park's reference frame (d, q), the dynamic magnetic flux model can be expressed by the following differential equations:

(62) { φ . d ( t ) = - R ( t ) i d ( t ) + ω e ( t ) φ q ( t ) + υ d ( t ) φ . q ( t ) = - R ( t ) i q ( t ) - ω e ( t ) φ d ( t ) + υ q ( t ) ,

(63) Writing these differential equations in vector form:

(64) [ φ . d ( t ) φ . q ( t ) ] = [ 0 ω e ( t ) - ω e ( t ) 0 ] [ φ d ( t ) φ q ( t ) ] + [ υ d ( t ) - R ( t ) i d ( t ) υ q ( t ) - R ( t ) i q ( t ) ]
or, in an equivalent manner:
{dot over (x)}(t)=A(t)x(t)+Bu(t)
with

(65) x ( t ) = [ φ d ( t ) φ q ( t ) ]
being the non-measurable state and

(66) 0 u ( t ) = [ υ d ( t ) - R ( t ) i d ( t ) υ q ( t ) - R ( t ) i q ( t ) ]
being the model input.

(67) According to this equation, it is clear that the equation of state of the magnetic flux of the electrical machine can be described by a linear model over time. However, the equation of state of the magnetic flux is a highly non-linear function of currents i.sub.d and i.sub.q, and of magnetic flux Φ of the rotor. It is written:

(68) { φ d ( t ) = f d ( i q ( t ) , i q ( t ) ) + 3 2 Φ ( t ) φ q ( t ) = f q ( i q ( t ) , i q ( t ) )

(69) FIGS. 2 and 3 show examples of functions ƒ.sub.d and ƒ.sub.q as a function of currents i.sub.d and i.sub.q for a given application. It is noted that, while function ƒ.sub.d is a relatively linear function in relation to i.sub.d, this is not the case for function ƒ.sub.q. Thus, the problem of estimating the magnetic flux of the electrical machine becomes more complex, all the more so since functions ƒ.sub.d and ƒ.sub.q are also a function of the mechanical angle of the rotor.

(70) A solution to this complex problem could map the magnetic flux quantities φ.sub.d and φ.sub.d. This solution requires a high storage capacity and a large number of experimental measurements. Moreover, the magnetic flux of the rotor varies with temperature. The model described above is therefore complex to implement.

(71) According to an embodiment of the invention, it is possible to construct a dynamic magnetic flux model simple to implement while remaining accurate, and the simplified model can be defined by the following equations:

(72) { φ d ( t ) = L d i d ( t ) + 3 2 Φ , φ q ( t ) = { L qs i q ( t ) - b qs , if i q ( t ) - i qm , L q i q ( t ) , if - i qm i q ( t ) i qm , L qs i q ( t ) + b qs if i qm i q ( t )

(73) This model has the advantage of being accurate without being memory and computational time consuming, which facilitates its implementation in an adaptive Kalman filter and possibly in an electrical machine control method.

(74) According to an implementation of this embodiment, magnetic flux Φ of the rotor can be considered in a nominal case where a temperature of 20° C. is considered.

(75) For this embodiment, the equation of state is written:

(76) x . ( t ) = A ( t ) x ( t ) + Bu ( t ) x ( t ) = [ L d i d ( t ) + 3 2 Φ f ( i d ( t ) ) ]
with:

(77) f ( i d ( t ) ) = { L qs i q ( t ) - b qs , if i q ( t ) - i qm , L q i q ( t ) , if - i qm i q ( t ) i qm , L qs i q ( t ) + b qs if i qm i q ( t )

(78) 4) Application of the Adaptive Kalman Filter

(79) The magnetic flux of the electrical machine is determined in this step. An adaptive Kalman filter is therefore applied to the dynamic model constructed in step 3), to the voltage and current measurements obtained in step 1) and to the electrical rotational speed of the rotor obtained in step 2). Application of the Kalman filter allows a state observer to be obtained. The adaptive Kalman filter provides adaptation of the noise covariance matrix as a function of the rotational speed of the electrical machine. Thus, the filter is efficient over a wide operating range of the electrical machine. Moreover, the adaptive Kalman filter is robust against magnetic flux variations of the rotor and the inductance.

(80) It is noted that a state observer, or a state estimator, is, in systems theory and automation, an extension of a model represented as a state representation. When the state of the system is not measurable, an observer allowing the state to be reconstructed from a model is constructed.

(81) According to an embodiment of the invention, the adaptive Kalman filter can be applied by carrying out the following steps:

(82) modifying the dynamic magnetic flux model by integrating unmodelled dynamics and a measurement noise;

(83) discretizing the modified dynamic magnetic flux model; and

(84) applying an adaptive Kalman filter algorithm to the modified and discretized dynamic model.

(85) According to an example of this embodiment, the various steps described hereafter can be carried out.

(86) The dynamic model of the magnetic flux is modified accounting for the uncertainties of the model E(t) and the measurement noise η(t). The modified model can be written:

(87) { x . ( t ) = A ( t ) x ( t ) + Bu ( t ) + ϵ ( t ) x ( t ) = [ L d i d ( t ) + 3 2 Φ f ( i d ( t ) ) ] + η ( t )

(88) It is thus possible to obtain a more realistic magnetic flux model.

(89) This model is then discretized for application of the Kalman filter. A sampling period T.sub.S is therefore considered. The following equations can then be written:

(90) { x ( k ) = A d ( k - 1 ) x ( k - 1 ) + B d ( k - 1 ) u ( k - 1 ) + B d ( k - 1 ) ϵ ( k - 1 ) x ( t ) = [ L d i d ( k ) + 3 2 Φ f ( i d ( k ) ) ] + η ( k )
with:

(91) { A d ( k - 1 ) = e TeA ( t ) , B d ( k - 1 ) = T s 0 e τ A ( τ ) Bd τ

(92) Given that matrix A is a function of speed, itself a function of time, it is not possible to determine matrices A.sub.d and B.sub.d analytically.

(93) According to an aspect of this embodiment, matrices A.sub.d and B.sub.d can be obtained by a Taylor series. Preferably, for efficiency purposes, matrices A.sub.d and B.sub.d can be determined by a 3rd order Taylor series. In this case, matrices A.sub.d and B.sub.d can be written:

(94) A d = [ 1 0 0 1 ] + T s [ 0 ω e - ω e 0 ] + T s 2 2 [ 0 ω e - ω e 0 ] 2 + T s 3 6 [ 0 ω e - ω e 0 ] 3 , B d = T s [ 1 0 0 1 ] + T s 2 2 [ 0 ω e - ω e 0 ] + T s 3 6 [ 0 ω e - ω e 0 ] 2 + T s 4 24 [ 0 ω e - ω e 0 ] 3

(95) Finally, an adaptive Kalman filter algorithm is applied.

(96) Then:
ζ(k)=B.sub.dϵ(k).

(97) One way of determining the unknown state vector x is accounting for the information ζ(k) and η(k) in the adaptive Kalman filter. In practice, this adaptive Kalman filter provides a solution to the minimization problem described below:

(98) min x ( k ) J ( k )
with:

(99) 0 J ( k ) = ( x ( 0 ) - x _ ( 0 ) ) T P 0 - 1 ( x ( 0 ) - x _ ( 0 ) ) + .Math. j = 1 k ( ζ ( j - 1 ) T Q - 1 ζ ( k - 1 ) + η ( j ) T R - 1 η ( j ) ) ζ ( k - 1 ) = x ( k ) - A d ( k - 1 ) x ( k - 1 ) - B d u ( k - 1 ) η ( k ) = x ( k ) - [ L d i d ( k ) + 3 2 Φ f ( i d ( k ) ) ]

(100) Cost function J provides a guide for selecting matrices P0, R and Q, with the following conditions:

(101) 1. If the initial state x(k) at the time k=0 is known, that is x(0)≈x(0), then the values of matrix P.sub.0 are relatively small. Otherwise, the values of matrix P.sub.0 are relatively great.

(102) 2. If there is much measurement noise, then the values of matrix R are relatively small. Otherwise, the values of matrix R are relatively great.

(103) Furthermore, Q can be selected as:
Q=B.sub.dQ.sub.ϵB.sub.d.sup.T
with Q.sub.ϵ an adjustment parameter. This relation implies that matrix Q is a function of the rotational speed of the rotor.

(104) In order to solve the minimization problem by use of the adaptive Kalman filter, the below hypotheses can be adopted. These hypotheses mainly concern a mathematical interpretation of matrices P.sub.0, R and Q.

(105) initial state x(0) is a random vector that is not correlated with noises ζ(k) and η(k),

(106) initial state x(0) has a known mean x(0) and a covariance defined by:
P.sub.0=E[(x(0)−x(0))(x(0)−x(0)).sup.T]

(107) where E denotes the expected value,

(108) ζ(k) and η(k) are not correlated, and they are white noises with zero mean, with covariance matrices Q and R respectively, in other words:

(109) E [ ζ ( k ) ζ ( j ) T ] = { Q , if k = j , 0 , if k j E [ η ( k ) η ( j ) T ] = { R , if k = j , 0 , if k j E [ ζ ( k ) η ( j ) T ] = 0 , for all k , j

(110) It can be noted that this hypothesis also implies that Q and R are symmetric positive semidefinite matrices.

(111) The following notations are also adopted:

(112) {circumflex over (x)}(k|k−1) is the estimate of x(k) from the measurements up to the time k−1, i.e. x(k−1), x(k−2), . . . and u(k−1), u(k−2), . . .

(113) {circumflex over (x)}(k|k) is the estimate of x(k) from the measurements up to the time k, i.e. x(k), x(k−1), . . . and u(k), u(k−1), . . .

(114) P(k|k−1) is the covariance matrix of x(k) given x(k−1), x(k−2), . . . and u(k−1), u(k−2), . . .

(115) P(k|k) is the covariance matrix of x(k) from the measurements up to the time k, i.e. x(k), x(k−1), . . . and u(k), u(k−1), . . .

(116) The adaptive Kalman filter algorithm can then be summarized as follows, with a time update equation:

(117) { x ^ ( k .Math. k - 1 ) = A d x ^ ( k - 1 .Math. k - 1 ) + B d u ( k - 1 ) , P ( k .Math. k - 1 ) = A d P ( k - 1 .Math. k - 1 ) A d T + B d Q c B d T
and a measurement update equation:

(118) { K ( k ) = P ( k .Math. k - 1 ) ( P ( k .Math. k - 1 ) + R ) - 1 x ^ ( k .Math. k ) = x ^ ( k .Math. k - 1 ) + K ( k ) ( x ( k ) - x ^ ( k .Math. k - 1 ) ) P ( k .Math. k ) = ( I - K ( k ) ) P ( k .Math. k - 1 )

(119) Thus, the magnetic flux of the electrical machine can be determined.

(120) According to an implementation of the invention, the adaptive Kalman filter approach can be summarized as follows:

(121) 1. The input data estimated at the previous time, listed below, and parameters Q.sub.ϵ and R (covariance matrices) are used, and we determine:

(122) x ( k ) = [ L d i d ( k ) + 3 2 Φ f ( i d ( k ) ) ] u ( k ) = [ v d ( t ) - R ( t ) i d ( t ) v q ( t ) - R ( t ) i q ( t ) ] x ^ ( k - 1 .Math. k - 1 ) P ( k - 1 .Math. k - 1 )

(123) 2. The output is determined by carrying out the steps of:

(124) (1) initializing k=0, state vector {circumflex over (x)}(0) and the state of the covariance matrix P(0|0)=P.sub.0,

(125) (2) applying the time update and measurement update equations for obtaining {circumflex over (x)}(k|k) and P(k|k):

(126) { x ^ ( k .Math. k - 1 ) = A d x ^ ( k - 1 .Math. k - 1 ) + B d u ( k - 1 ) , P ( k .Math. k - 1 ) = A d P ( k - 1 .Math. k - 1 ) A d T + B d Q c B d T { K ( k ) = P ( k .Math. k - 1 ) ( P ( k .Math. k - 1 ) + R ) - 1 x ^ ( k .Math. k ) = x ^ ( k .Math. k - 1 ) + K ( k ) ( x ( k ) - x ^ ( k .Math. k - 1 ) ) P ( k .Math. k ) = ( I - K ( k ) ) P ( k .Math. k - 1 ) ,

(127) (3) determining magnetic flux φ estimated at the time k with the formulas:

(128) { φ ^ d ( k ) = x ^ 1 ( k .Math. k ) , φ ^ q ( k ) = x ^ 2 ( k .Math. k )

(129) In these equations, subscript 1 denotes the first term of vector x and subscript 2 denotes the second term of vector x.

(130) 5) Electrical Machine Control

(131) This step is optional.

(132) The invention also relates to a method for real-time control of a synchronous electrical machine, wherein the following steps are carried out:

(133) determining the magnetic flux of the electrical machine by use of the method (steps 1) to 4)) described above, and

(134) controlling the torque of the synchronous machine as a function of the determined magnetic flux. This step can be carried out using any conventional control of electrical machine that accounts for the magnetic flux. For example, control of the electrical machine can be based on an effective direct torque control method, particularly suited to salient-pole synchronous electrical machines.

(135) Furthermore, the invention relates to a system for controlling a synchronous electrical machine suited to applying the method as described above. Such an electrical machine control system can comprise electrical machine control including control for determining the magnetic flux of the electrical machine for controlling the torque of the electrical machine. The determination of the magnetic flux determines the magnetic flux of the electrical machine from the current and voltage measurements, that is the currents and voltages of each of the three phases of the electrical machine. The torque control applies voltages at the terminals of the electrical machine as a function of the magnetic flux to ensure a torque setpoint for the electrical machine. Advantageously, the control system can be a controller comprising a computer.

(136) This control method and system can be used for an electrical machine on board a vehicle, notably an electrical or hybrid motor vehicle. However, the control system described is not limited to this application and it is suitable for all electrical machine applications.

(137) According to an aspect, the electrical machine is a salient-pole synchronous electrical machine. Indeed, the method is particularly well-suited to this type of machine, on the one hand, because the dynamic model of the electrical machine is quite representative of this type of electrical machine, and on the other hand because determination of the magnetic flux enables control of such an electrical machine, notably through direct control of the torque.

(138) It is clear that the invention is not limited to only the embodiments of the recesses described above by way of example and that it encompasses multiple variants.