Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MODEL PREDICTIVE CONTROL FOR ELECTRICAL MACHINES WITH MULTIPLE SETS OF WINDINGS
Document Type and Number:
WIPO Patent Application WO/2024/008658
Kind Code:
A1
Abstract:
A method for controlling an electrical converter (14) comprises: determining an average flux reference (I) from a reference torque (T ref) and an estimated torque (II), which is determined from measured currents (isabc,I, isabc,II) and measured voltages (vsabc,I, vsabc ll) and/or reconstructed voltages (III) in the winding systems (20a, 20b); determining at least one difference flux reference (IV) from at least one difference current reference (V); determining a winding flux reference (VI) for each winding system (20a, 20b) from the average flux reference (I) and the at least one difference flux reference (IV) by adding and/or subtracting the at least one difference flux reference (IV) to the average flux reference (I); determining switching commands (uabc,I, uabc,II) for each converter branch (14a, 14b) from the winding flux reference (VII) and an estimated winding flux (VIII) for the winding system (20a, 20b), which is connected to the respective converter branch (14a, 14b), wherein the estimated winding flux (VIII) is determined from the measured current (isabc,I, isabc,II) and the measured voltages (vsab,I, vsabc,II) and/or the reconstructed voltages (III) in the winding system (20a, 20b), and wherein the winding flux reference (VII) and the estimated winding flux (VIII) are provided to a dedicated model predictive controller (52) for the respective converter branch (14a, 14b), which determines the switching commands (uabc,I, uabc,II); and applying the switching commands (uabc,I, uabc,II) to each converter branch (14a, 14b).

Inventors:
TSOUMAS IOANNIS (CH)
GEYER TOBIAS (CH)
Application Number:
PCT/EP2023/068261
Publication Date:
January 11, 2024
Filing Date:
July 03, 2023
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ABB SCHWEIZ AG (CH)
International Classes:
H02P9/00; H02M5/42; H02M7/539
Domestic Patent References:
WO2019137916A12019-07-18
Foreign References:
US20150032423A12015-01-29
EP3736971A12020-11-11
EP2469692A12012-06-27
US8766570B22014-07-01
EP15177656A2015-07-21
Other References:
LIU PENGCHENG ET AL: "Optimized SVM and Remedial Control Strategy for Cascaded Current-Source-Converters-Based Dual Three-Phase PMSM Drives System", IEEE TRANSACTIONS ON POWER ELECTRONICS, INSTITUTE OF ELECTRICAL AND ELECTRONICS ENGINEERS, USA, vol. 35, no. 6, 11 November 2019 (2019-11-11), pages 6153 - 6164, XP011774631, ISSN: 0885-8993, [retrieved on 20200225], DOI: 10.1109/TPEL.2019.2952672
REUSSER CARLOS A ET AL: "Nine switch multi-channel dual converter for WECS", IECON 2015 - 41ST ANNUAL CONFERENCE OF THE IEEE INDUSTRIAL ELECTRONICS SOCIETY, IEEE, 9 November 2015 (2015-11-09), pages 5363 - 5368, XP032856110, DOI: 10.1109/IECON.2015.7392946
Attorney, Agent or Firm:
QIP PATENTANWÄLTE, DR. KUEHN & PARTNER MBB (DE)
Download PDF:
Claims:
CLAIMS

1. A method for controlling an electrical converter (14), the electrical converter (14) comprising at least two converter branches (14a, 14b) connected in parallel to at least two winding systems (20a, 20b) of an electrical machine (12), the method comprising: determining an average flux reference (V4,av> Tavf) from a reference torque (Tref) and an estimated torque (f), which is determined from measured currents (iSabc I, and measured voltages (vSabc p vSabc n) and/or reconstructed voltages (vSabc,p ^sabc,n) in the winding systems (20a, 20b); determining at least one difference flux reference (V's/iifb Tdiif) from at least one difference current reference (isdq,diff)i determining a winding flux reference (i/'s.n /iref, V'sjb Tnef) ^'or each winding system (20a, 20b) from the average flux reference (V>s,av> Tavf) and the at least one difference flux reference Kdm) by adding and/or subtracting the at least one difference flux reference TdFff) to the average flux reference (i/>£eafv, yarvef); determining switching commands (uabc I, uabc II) for each converter branch (14a, 14b) from the winding flux reference V'sjb 4V>s,n) and an estimated winding flux for the winding system (20a, 20b), which is connected to the respective converter branch (14a, 14b), wherein the estimated winding flux (ipS i, fcps.i’ rfs.n’ &Ps,w) is determined from the measured current (iSabc I, isabcji) and the measured voltages (vSabc p vSabc n) and/or the reconstructed voltages (vSabc,p t?sabc,ii) in the winding system (20a, 20b), and wherein the winding flux reference V'sjb 4^s,n) and the estimated winding flux ppS i, rfs.n’ &Ps,w) are provided to a dedicated model predictive controller (52) for the respective converter branch (14a, 14b), which determines the switching commands (uabc p uabc n); applying the switching commands (uabc I, uabc II) to each converter branch (14a,

14b).

2. The method of claim 1, wherein the switching commands (uabc I, uabc II) are determined from optimized pulse patterns (A, U), which are loaded from a look-up table (80); and/or wherein the switching commands (uabc I, uabc II) are determined online during operation of the electrical converter (14); and/or wherein switching instants (Txnom) of the switching commands (uabC/I, uabc II) are moved to minimize a flux error (V>serr,apoX which is the difference between an optimal winding flux trajectory (V'sc/poh determined from the winding flux reference and the estimated winding flux

3. The method of claim 1 or 2, wherein the switching commands (uabC/I, uabc n ) for each converter branch (14a, 14b) are determined independently from the switching commands of the at least one other converter branch.

4. The method of one of the previous claims, wherein the average flux reference (V4,av> Tavf) and the at least one difference flux reference (Vidnn TdFff) are determined in a rotating reference frame; and/or wherein the winding flux references (Vim Tiref, Vim Tnef) are determined in the rotating reference frame and transformed into a stationary reference frame (Vim 4Vim Vim *Vin); and/or wherein an angle of the winding flux reference (4Vim 4Vin) is calculated in the stationary reference frame.

5. The method of one of the previous claims, wherein the at least one difference flux reference (Vidm* Kdm) is determined from the at least one difference current reference (isdq,diff) by multiplication with an estimated stator winding inductance for each winding system (20a, 20b).

6. The method of one of the previous claims, determining at least one difference current (iSdq,diff) from measured currents (z'sabcj, isabcji) in the at least two winding systems (20a, 20b) and determining a difference current error by subtracting the difference current (iSdq,diff) from the difference current reference Gsdfq,diff)i low-pass filtering (76) the difference current error and/or PI controlling (74) the difference current error; adding the low-pass filtered and/or PI controlled difference current error to the difference current reference (isdq,diff)-

7. The method of one of the previous claims, wherein an amplitude of the average flux reference (V4,av) is determined from a lookup table (58) based on the reference torque (Tref); and/or wherein the amplitude of the average flux reference (V4,av) is low-pass filtered (64).

8. The method of one of the previous claims, wherein an amplitude of the average flux reference (V4,av) is limited within predefined limits (62).

9. The method of one of the previous claims, wherein an angle of the average flux reference (yarvf) is determined from a look-up table (60) based on an amplitude of the average flux reference (V4,av) anci the reference torque (Tref) and/or wherein a torque error, which is the difference between the reference torque (Tref) and the estimated torque (f), is low-pass filtered (68) and/or PI controlled (66) and added to the reference torque (Tref).

10. The method of one of the previous claims, further comprising: when an amplitude of the winding flux reference °f a winding system (20a, 20b) exceeds a limit, limiting an amplitude of the average flux reference (V4,av) and/or an amplitude of the difference flux reference amplitude (V^'diff), such that an amplitude of a recalculated winding flux reference stays below the limit.

11. The method of one of the previous claims, wherein each converter branch (14a, 14b) is configured converting three-phase electrical quantities with a fundamental voltage, current and frequency into three-phase electrical quantities with another fundamental voltage, current and frequency; wherein each converter branch (14a, 14b) comprises a rectifier (24), a DC-link (26) and an inverter (28); and/or wherein opposite to the electrical machine (12), each converter branch (14a, 14b) is connected to a secondary winding (30) of a transformer (16).

12. A computer program for controlling an electrical converter (14), which, when being executed by a processor, is adapted to carry out the steps of the method of one of the previous claims.

13. A computer-readable medium, in which a computer program according to claim 12 is stored.

14. A controller (34) for controlling an electrical converter (14) adapted for performing the method of one of claims 1 to 11.

15. An electrical converter (14), comprising: at least two converter branches (14a, 14b) connected in parallel to at least two winding systems (20a, 20b) of an electrical machine (12); a controller (34) according to claim 14.

Description:
DESCRIPTION

Model Predictive Control for Electrical Machines with Multiple Sets of Windings

FIELD OF THE INVENTION

The invention relates to the field of high power converter control. In particular, the invention relates to a method, a computer program, a computer-readable medium and a controller for controlling an electrical converter. The invention also relates to the electrical converter.

BACKGROUND OF THE INVENTION

The torque control of electrical machines with multiple sets of three-phase windings is typically achieved via vector current control in a rotating reference frame aligned with the rotor flux. Such a linear control approach focuses on the control of the fundamental current component, and it is suitable for converters modulated via carrier-based pulse width modulation (CB-PWM). By sampling at appropriate time instants with CB-PWM it is straightforward to sample only the current fundamental component without the need of using a low-pass filter.

However, in medium voltage drives, optimized pulse patterns (OPPs) are often employed to minimize the current ripple at the (very low) permissible switching frequency. With an OPP-modulated converter, one cannot distinguish the fundamental current component from the ripple via appropriate sampling. Low-pass filters must be applied to the measured currents instead. The low-pass filtering limits the controller gain and adversely affects the drive dynamic performance. Another implication of the linear controller is that the switching angles of the OPPs must evolve smoothly and without any discontinuities over the modulation index range where they are applied. This is an additional constraint for the OPP calculation, which in most cases results in suboptimal OPPs with a higher current ripple.

The above problems are solved with the employment of model predictive pulse pattern control (MP3C) for torque and flux control in OPP-modulated converters. MP3C controls the instantaneous flux along its reference trajectory, which is defined by the applied OPP of the converter connected to the machine terminals. The reference trajectory includes the ripple and thus no filtering to extract the fundamental component is required. This results in a fast torque control. Furthermore, the switching angles of the applied OPPs are allowed to have some discontinuities over the modulation index.

Nevertheless, the currently employed MP3C has been designed for electrical machines with only one set of three-phase windings and cannot be directly applied to electrical machines with two or more sets of three-phase windings.

EP 2 469 69 2A1 and US 8766570 B2 describe a flux-based MP3C method, which uses OPP control to follow a pre-computed stator flux trajectory. EP 15 177 656 Al describes how a neutral point potential can be included into MP3C.

WO 2019/137916 Al describes model predictive control based on pulse width modulated switching patterns, which are determined online.

DESCRIPTION OF THE INVENTION

It is an objective of the invention to improve the control of an electrical converter with at least two converter branches connected to at least two winding systems of an electrical machine. Further objectives of the invention are to reduce total harmonic distortion and losses of such an electrical converter.

These objectives are achieved by the subject-matter of the independent claims. Further exemplary embodiments are evident from the dependent claims and the following description.

An aspect of the invention relates to a method for controlling an electrical converter. The electrical converter may be a low or medium-voltage converter adapted for processing voltages up to 5kV or more. The electrical converter comprises at least two converter branches, which at one end are connected in parallel to at least two winding systems of an electrical machine. At the other end, each converter branch may be connected to a winding of at least one transformer. The electrical machine may be a generator, in particular the generator of a wind turbine.

According to an embodiment of the invention, the method comprises: determining an average flux reference, for example in a rotating reference frame, from a reference torque and an estimated torque, which is determined from measured currents and measured and/or reconstructed voltages in the winding systems. For torque control, one average flux reference is considered. An optimal reference amplitude and angle for the average flux reference may be determined for the desired reference torque. The average flux reference may be the average of all flux references of the winding systems. The average flux reference may be provided as an amplitude and an angle. The reference torque may be provided by an outer control loop, which controls the torque of the electrical machine. The estimated torque is determined from three-phase currents, which are measured in the winding systems, and the estimated stator flux. Alternatively, the estimated torque can be determined from three-phase currents, the estimated rotor flux and the estimated machine inductances. The electrical machine may have a number of N winding systems. A winding system may be a three-phase winding.

According to an embodiment of the invention, the method comprises: determining at least one difference flux reference, for example in the rotating reference frame, from at least one difference current reference. The at least one difference current reference may be provided by an outer control loop.

According to an embodiment of the invention, the method comprises: determining at least one difference flux reference from the at least one difference current. In general, there are N-l difference flux references for control of the difference (circulating) currents between the sets of winding systems. Each of the difference flux references may be provided as an amplitude and an angle.

According to an embodiment of the invention, the method comprises: determining a winding flux reference for each winding system from the average flux reference and the at least one difference flux reference by adding and/or subtracting the at least one difference flux reference to the average flux reference. The winding flux reference for each winding system is determined based on the one average flux reference and N — 1 difference flux references. The average and the N — 1 difference fluxes are calculated by multiplying the vector of the N winding fluxes with the following matrix:

The winding flux references are calculated by multiplying the vector of the average and difference fluxes with the inverse of D. For example, for a machine with 3 winding systems we have the matrices

According to an embodiment of the invention, the method comprises: determining switching commands for each converter branch from the winding flux reference and an estimated winding flux for the winding system, which is connected to the respective converter branch, wherein the estimated winding flux is determined from the measured current and the measured and/or the reconstructed voltages in the winding system, and wherein the winding flux reference and the estimated winding flux are provided to a dedicated model predictive controller for the respective converter branch, which determines the switching commands. Per winding system and/or converter branch a model predictive controller is used, i.e. a controller operating with a model predictive control method.

Such a method relies on a prediction model, a cost function, an optimization stage and a receding horizon policy. More specifically, a sequence of future control inputs is computed over a prediction horizon such that a cost function is minimized by solving an optimization problem. Out of the sequence of control inputs only the first element at the current time step is applied to the controlled system. At the next time step, new measurements and/or estimates are obtained, and a revised sequence of future control inputs is computed over a prediction horizon that is shifted by one time step. This gives rise to the receding horizon policy.

A particular model predictive control method that is based on OPPs is MP3C. In MP3C, the winding flux vector is controlled along a winding flux reference trajectory using fast closed-loop control by modifying the switching instants of the OPP switching transitions within a prediction horizon. The switching transitions may be modified in time, such that the predicted stator flux error, i.e., the difference between the reference stator flux and the estimated stator flux, is minimized at the end of the prediction horizon.

According to an embodiment of the invention, the method comprises: applying the switching commands to each converter branch. Each converter branch comprises power semiconductors which are controlled according to the switching commands. The electrical converter may be a voltage-source converter with at least one DC link capacitor. By manipulating the switch positions of the converter the voltage applied to the terminals of the machine windings is manipulated, which in turn allows one to control the current, flux and torque components of the machine.

With the method, the flux-based MP3C of torque and flux of electrical machines is extended to electrical machines with more than one three-phase winding. To this end, average and difference flux references are computed which are then translated into winding flux references for each winding system.

In the model predictive control of each winding system, the flux reference trajectory can be calculated considering or neglecting the coupling with other three-phase winding systems. In particular, for a winding system with small resistance, as it is the case for medium-voltage electrical machines, the coupling may be neglected. The reference flux trajectory for each winding system may be computed by a simple integration of the converter output voltage.

According to an embodiment of the invention, the switching commands are determined from OPPs, which are loaded from a look-up table. The OPPs may be pre-computed (i.e. before the operation of the converter) and stored in a look-up table with respect to a pulse number and a modulation index. During operation of the converter, the pulse number and the modulation index may be provided by an outer control loop and the respective OPP may be loaded from the look-up table. The OPP comprises switching instants, which encode when and how the converter has to be switched into another switching state.

According to an embodiment of the invention, the switching commands are determined online during operation of the electrical converter. For example the switching commands and in particular a sequence of switching commands may be computed by pulse width modulation, such as carrier based pulse width modulation or space vector modulation. For example, WO 2019/137916 Al, which is incorporated by reference, describes the online computation of switching commands based on pulse width modulation.

According to an embodiment of the invention, switching instants of the switching commands are moved forward and/or backward in time to minimize a flux error, which is the difference between an optimal winding flux trajectory determined from the winding flux reference and the estimated winding flux. With model predictive control, and in particular with MP3C, the switching instants may be modified to minimize the flux error. Switching instants may be modified by modifying their switching angle and/or their switching time.

According to an embodiment of the invention, the switching commands for each converter branch are determined independently from the switching commands of the at least one other converter branch. The controllers performing the model predictive control method for each converter branch may operate independently, i.e. independently from the winding flux references of the other converter branches. The calculation of the optimal winding flux trajectory for each three-phase winding system may consider only the OPP of the specific three-phase winding system. According to an embodiment of the invention, the average flux reference and the at least one difference flux reference are determined in a rotating reference frame. The rotating reference frame may rotate with the fundamental frequency, such that the references become DC quantities during steady-state operation. The rotating reference frame may be the dqframe with the d-axis aligned to the rotor flux.

According to an embodiment of the invention, the winding flux references are determined in the rotating reference frame and transformed into a stationary reference frame. This may simplify the determination of the winding flux error and the corresponding correction. To be processed by the model predictive control method, the winding flux references may have to be provided in the stationary reference frame.

According to an embodiment of the invention, an angle of the winding flux reference is calculated in the stationary reference frame.

According to an embodiment of the invention, the at least one difference flux reference is determined from the at least one difference current reference by multiplication with an estimated stator winding inductance for each winding system. The estimated stator winding inductance for a winding system may be the self-inductance of the winding system subtracted from the mutual inductance with the other winding systems.

According to an embodiment of the invention, the method further comprises: determining at least one difference current from measured currents in the at least two windings and determining a difference current error by subtracting the difference current from the difference current reference. The difference current error may be low-pass filtered and/or PI controlled and then added to the difference current reference from which afterwards the difference flux reference may be calculated. In such a way, the difference current error may be corrected that may appear due to an incorrect difference flux calculation because of parameter value mismatches.

According to an embodiment of the invention, an amplitude of the average flux reference may be low-pass filtered. This may dampen oscillations and may reduce fluctuations in the winding flux references.

According to an embodiment of the invention, an amplitude of the average flux reference is determined from a look-up table based on the reference torque. The corresponding lookup table may be pre-computed before the operation of the converter.

According to an embodiment of the invention, an amplitude of the average flux reference is limited within predefined limits. The amplitude of the average flux reference may be limited, so that a specified limit is respected before the synthesis of the winding flux reference. In such a way it may be ensured that a maximum possible converter output voltage is not exceeded.

According to an embodiment of the invention, an angle of the average flux reference is determined from a look-up table in dependence on an amplitude of the average flux reference and the reference torque. The corresponding look-up table may be pre-computed before the operation of the converter.

According to an embodiment of the invention, a torque error, which is the difference between the reference torque and the estimated torque, is low-pass filtered and/or PI controlled and afterwards added to the reference torque, before the angle of the average flux reference is determined from a look-up table. In such a way, a torque error that may appear due to parameter value mismatches, i.e. differences between the actual and the considered values of the machine model parameters, may be corrected.

According to an embodiment of the invention, when an amplitude of the winding flux reference of a winding system exceeds a limit, an amplitude of the average flux reference and/or an amplitude of the difference flux reference is limited such that an amplitude of a re-calculated winding flux reference stays below the limit. The limit of the winding flux reference may be a fixed value. The angle of the average flux reference and the difference flux reference may stay the same. A factor k between 0 and 1, such as determined in equation (14) below, may be applied to the amplitude of the average flux reference and/or the difference flux reference.

According to an embodiment of the invention, each converter branch is configured for converting three-phase electrical quantities with a fundamental voltage, current and frequency into three-phase electrical quantities with another fundamental voltage, current and frequency. For example, each converter branch may comprise a rectifier, a DC-link and an inverter. The inverter and optionally the rectifier may be controlled based on the switching commands.

According to an embodiment of the invention, opposite to the electrical machine, each converter branch is connected to a secondary winding of a transformer. The secondary winding and the primary windings may have a common core. The transformer also may have a primary winding, which is wound around the common core. The primary winding may be used to connect the converter system to an electrical grid. One common transformer with multiple sets of secondary windings or several transformers connected in series may be used. The series-connected transformers may each have one set of secondary three-phase windings.

Further aspects of the invention relate to a computer program for controlling an electrical converter, which, when being executed by a processor, is adapted to carry out the steps of the method as described herein, and to a computer-readable medium, in which such a computer program is stored. The winding flux reference determination as well as the model predictive control may be executed as software on one or more processors.

A computer-readable medium may be a hard disk, an USB (Universal Serial Bus) storage device, a RAM (Random Access Memory), a ROM (Read Only Memory), an EPROM (Erasable Programmable Read Only Memory) or a FLASH memory. A computer-readable medium may also be a data communication network, e.g. the Internet, which allows downloading a program code. In general, the computer-readable medium may be a non- transitory or transitory medium.

A further aspect of the invention relates to a controller for controlling an electrical converter. The controller is adapted for performing the method as described herein. The controller may comprise one or more processors, in which the method is run as software. It also may be that the method is at least partially or completely implemented in hardware, such as a DSP or FPGA.

A further aspect of the invention relates to an electrical converter, which is controlled such as described herein.

According to an embodiment of the invention, the electrical converter comprises at least two converter branches connected in parallel to at least two winding systems of an electrical machine, and a controller as described herein.

In general, it has to be understood that features of the method as described in the above and in the following may be features of the computer program, the computer-readable medium, the controller and the electrical converter as described in the above and in the following, and vice versa.

These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS

The subject-matter of the invention will be explained in more detail in the following text with reference to exemplary embodiments which are illustrated in the attached drawings.

Fig. 1 schematically shows a converter system according to an embodiment of the invention.

Fig. 2 schematically shows an electrical machine with two sets of three-phase windings.

Fig. 3 schematically shows a controller according to an embodiment of the invention and illustrates a method according to an embodiment of the invention.

Fig. 4 schematically shows a part of the controller of Fig. 3 in more detail.

Fig. 5 schematically shows a further part of the controller of Fig. 3 in more detail.

The reference symbols used in the drawings, and their meanings, are listed in summary form in the list of reference symbols. In principle, identical parts are provided with the same reference symbols in the figures.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

Fig. 1 schematically shows a converter system 10, which may be a wind energy conversion system, e.g. a gearless wind energy conversion system. The converter system 10 comprises a rotating electrical machine 12, at least two converter branches 14a, 14b and a transformer 16. The at least two converter branches 14a, 14b form an electrical converter 14. With two converter branches 14a, 14b, the converter system 10 may be seen as a double conversion line system.

The rotating electrical machine 12 may be a generator, e.g. a synchronous generator, or a motor. In the following it is assumed that the rotating electrical machine 12 is a synchronous generator without loss of generality. The rotating electrical machine 12 may be connected with a wind turbine 18.

The rotating electrical machine 12 may have two or more independent winding systems 20 (see Fig. 2). Each of the winding systems 20a, 20b is connected with one of the converter branches 14a, 14b. The first winding system 20a is connected with the first converter branch 14a and generates a three-phase stator current i Sabc b with components i Sa l , i sb b i Sc I , which are supplied to the first converter branch 14a. The first converter branch 14a converts the stator current i Sabc I into an output current i abc b with components i a l , i b l , i c l . The output current i Sabc j i s supplied to a secondary winding 22a of the transformer 16. The secondary winding 22a may be star-connected.

Analogously, the second winding system 20b is connected with the second converter branch 14b and generates a three-phase stator current i SabC/ n, with components i Sa ll , i S b,ib i Sc ,ii, which are supplied to the second converter branch 14b. The second converter branch 14b converts the stator current i Sabc II into an output current i abc II , with components i a ll , i b n , ic,ib The output current i abc n is supplied to a secondary winding 22b of the transformer 16. The secondary winding 22a may be delta-connected.

Each converter branch 14a, 14b may be composed of a rectifier 24, a DC-link 26 and an inverter 28. Both the rectifier 24 and the inverter 28 may be two-level or, as depicted here, three-level converters or they may have even more voltage levels. The rectifier 24 and the inverter 28 may be back-to-back converters and/or 3LNPC (Three-Level Neutral Point Clamped) converters. The machine-side rectifier 24 converts the AC voltage of the respective winding system 20a, 20b into a DC voltage v dc I or v dc II supplied to the DC-link 26 and to the grid-side inverter 28. The inverter 28 converts the DC voltage v dc I or v dc II into an AC output voltage with the corresponding three-phase output current with components i a I , i b b i c>l or i a ll , i b u , i c ll , respectively.

The transformer 16 further comprises a primary winding 30, which is connected to an electrical grid 32. The transformer 16 may be a wye/delta-wye transformer.

The electrical converter 14 and the at least two converter branches 14a, 14b are controlled by a controller 34. The controller 34 may comprise a processor and a computer-readable medium. The computer-readable medium may store a computer program for performing the control method as described herein. Alternatively or additionally, the controller 34 may comprise a circuitry, e.g. an FPGA, ASIC and/or DSP, which is configured for performing the control method. The controller 34 may be configured for modulating and/or switching the rectifiers 24 and the inverters 28. In particular, the rectifiers 24 and/or the inverters 28 may be switched with OPPs. The method as described below may be applied to the rectifiers 24, which are inverters if we have a motor instead of a generator.

Fig. 2 shows the electrical machine 12 in more detail, which comprises a stator 36 and a rotor 38. The stator comprises at least two stator winding systems 20a, 20b, which are geometrically displaced with respect to each other by a fixed angle p. Each stator winding system 20a, 20b has three-phase windings with the stator currents i Sabc I an d isabcji- The rotor 38 at moving position OR rotates with a speed of COR . In Fig. 2, also the rotating dq reference frame is depicted.

The electrical machine 12 may be a synchronous generator with a permanent magnet, but it could also be a synchronous generator with a field winding 40 or even an asynchronous generator. The three-phase winding systems 20a, 20b, which are also called armature windings, may be either in the stator 36 (as shown) or in the rotor 38. In the latter case, the field winding 40 or the permanent magnets is/are placed in the stator 36. Since the method as described herein can be employed in electrical motors as well, in general, the term “electrical machine” is used. In particular, in the following, the term “stator current” may refer to a winding current, which also may be provided by winding systems 20a, 20b, which are part of the rotor 38.

Fig. 3 shows a block diagram, which illustrates the controller 34 and a method for controlling the electrical converter 14. Fig. 3 shows the control scheme for an electrical machine 12 with two winding systems 20a, 20b. The main objective is to control the torque of the electrical machine 12. In wind turbine applications, the reference torque T ref is provided by external control loops of the wind turbine operator. The objective is, by using the torque, to control and maximize the power produced by the wind turbine at a certain rotation speed and wind speed. In other applications, which require speed control, the reference torque T ref is provided by a speed controller.

A secondary control task, which is important for some modes of operation (e.g. heat run tests of a generator), is the control of the difference current i S dq,diff between the two winding systems 20a, 20b. The difference current i S dq,diff is calculated by subtracting the stator currents i sdq I and i sdq n i n the dq reference frame in block 46. The measured stator currents *sabc,i an d isabcji are transformed by blocks 42 into the stationary aP reference frame, i.e., i Sa pj and isapjb and by blocks 44 into the dq reference frame.

The reference value tsdq.diff of the difference current may be provided in the synchronously rotating dq reference frame, aligned with the rotor flux, and it consists of a d- and a q-axis component.

The reference torque T ref and the difference current reference tsdq.diff are sen t to a block 48 where the flux reference calculation for each of the two stator winding systems 20a, 20b takes place. The winding flux reference calculation block 48 will be described in more detail with respect to Fig. 4.

The calculated winding flux references (with the amplitudes xp^ and i/^] and angles are then forwarded to a model predictive control block 50 with two MP3C controllers and/or loops 52, one for each winding system 20a, 20b. In addition to the winding flux references, which are determined by the winding flux reference calculation block 48, the estimated stator fluxes (with the amplitudes xp S i and xp s n and angles 4xp S i and &Ps,n) or more general the winding fluxes are sent to the model predictive control block 50 and the inner MP3C controllers 52, which then modify the switching commands u abc I and u abc II of each converter branch 14a, 14b to track the winding flux references. Furthermore, the measured or estimated neutral point potentials v NP j and v NP n of the DC-links 26 may be provided to the model predictive control block 50 and the inner MP3C controllers 52.

The estimator block 54 estimates the winding fluxes (with the amplitudes xp S i and xp s n and angles 4xp S i and &Ps,n) ■> the rotor flux with its angle 4xp R and the torque T from the measured stator currents i Sa pj and i Sa p,n and the measured stator voltages v Sa pj and r sap,n or the reconstructed stator voltages fl S ap,i an d fl S ap,n i n the stationary aP reference frame. The three-phase stator voltages v Sabc I and v Sabc II are typically not measured but calculated from the switch positions and the measured dc-link voltage v dc I and v dc II . Subsequently, they are transformed to the stationary aP reference frame.

If an encoder is available, the rotor position and speed are also provided to the flux observer. If no encoder is available, the rotor position OR and the speed co s are estimated by estimator block 54.

Fig. 4 shows the winding flux reference calculation block 48 in more detail. To reduce the number of symbols, only the subtraction sign ” is used in the nodes. The addition sign “+” is implied where no subtraction sign appears. For the calculation of the winding flux references (with the amplitudes xp^ and V>s,n and angles 4^sj f and 4V>s,n) f° r each winding system 20a, 20b, one must determine their amplitude and angle in a stationary aP reference frame.

Block 56 calculates an average flux reference from the reference torque T ref and the estimated torque T, in particular it calculates the amplitude i/'s.av and angle y a r y f of the average flux reference with respect to the rotor flux angle. To control the torque T of the electrical machine 12, an average value of the fundamental components of the two fluxes in a rotating dq reference frame, aligned with the rotor flux, must have a specific amplitude i/>s a f v and angle y a r y f . For some machine types, like asynchronous machines, the required amplitude and angle may be calculated analytically using a simple formula. For some other machine types, however, like synchronous permanent magnet machines, the required amplitude and angle is the solution of a non-linear optimization problem. In such a case, the optimal values of the amplitude and the angle can be pre-calculated and stored in look-up tables 58, 60.

The reference torque T ref is first provided to the look-up table 58, which defines the optimal average winding flux amplitude i^s,av- Typically, the winding flux amplitude i^s,av that minimizes the stator current for a given torque is considered as being optimal. This approach is known as MTPA (Maximum Torque Per Ampere). Alternatively, the look-up table 58 may define the stator flux or more general the winding flux that minimizes the rotor losses, the total generator losses, or the total losses of the drive (generator 12 and converter 14).

The subsequent limiter 62 ensures that specific limits of the average flux reference amplitude i^s,av are respected so that for example the maximum possible converter output voltage is not exceeded. The output of the limiter 62 is optionally low-pass filtered in the LP filter 64 and then forwarded to another look-up table 60, which defines the required average flux angle y a r y f with respect to the rotor flux angle. The required average flux angle y a r y f may be interpreted as a required load angle. The look-up table 60 calculates the required load angle for the given average flux amplitude i^s,av an d a reference torque T ref . Note that the reference torque T ref at the input of the look-up table 60 may be modified by a PI controller 66, which has as input the error between the reference torque T ref and the estimated torque T . The PI controller 66 corrects torque error that may appear due to parameter value mismatches (differences between the actual and the considered values of the machine model parameters). This difference may also be low-pass filtered by the LP filter 68. The estimated torque T is calculated from the cross product of the estimated average flux and the average current: where the asterisk indicates the conjugate complex value of the estimated average flux.

The arrow indicates the space vector.

The average flux and current in the stationary reference frame are computed as follows: where cos(P) -sin(p)

R(P) = (4) sin(p) COS(P) .

The components of the estimated winding flux i/i Sa p j and V'sapji that appear on the right side of (2) are calculated by two separate winding flux estimators, one for each winding system 20a, 20b. These winding flux estimators are part of block 54 (Fig. 3). The estimated winding flux is also necessary for the MP3C controllers 52, which are described in more detail with respect to Fig. 5. The winding currents i Sabc I and i Sabc II that appear on the right side of (3) are directly measured.

The control of the difference current is achieved via the control of a difference flux reference with the amplitude V^s^iff an d angle y^iff, which is determined in block 70. From the difference current, the difference flux reference V>sdq,diff i n the synchronously rotating dq reference frame is computed in block 72 using the estimated stator winding inductances:

Yam = arctanlV’sidirr/V’Sdirr) (8)

The difference current isdq,diff i n the rotating dq reference frame is calculated from the measured currents of each winding in the rotating frame as follows:

Nd,diff = Nd, i Nd, n (9)

Note that the multiplication in (6) is not applied directly to the difference current reference components • An additional term coming from the output of two PI controllers 74 is added to them to obtain the filtered components i s^diff and *sq4iff ■> which are input in block 72. The input to these PI controllers 74 is the difference current error in the d- and in the q-axis, low-pass filtered by LP filters 76. The tasks of the blocks 74, 76 is to correct difference current errors that may appear due to incorrect difference flux calculations because of parameter value mismatches.

In the winding flux calculation block 78, the winding flux references (with the amplitudes load angles yj ref and yn ef ) are calculated from the average flux reference (with the amplitude i/>s,av ar| d load angle y a r y f ) and the difference flux reference (with the amplitude i/i^dUf ar| d angle y^/f):

(I la) cos(4y a r v ef ) cos

- ^S,diff .sin(4y a r v ef ) .sin

From the d- and q-axis components, the flux amplitude and angle for each winding system can be computed: yn ef = arctanO/i^j / t/igj) (13b)

The calculated amplitude xp^ and i/iy] may exceed a specified limit. In this case, either the average flux or the difference flux must be reduced. Either the average flux (the torque) or the difference flux (the difference current) can be prioritized. Typically, it is the former and therefore the difference flux amplitude needs to be reduced in such a way that the amplitudes of the winding fluxes do not exceed the specified limits. The required reduction factor k is determined from the solution of a quadratic equation:

In the above consideration, the angle of the difference flux reference V>sdq,diff remains unchanged and only its amplitude changes. In equation (14), the amplitude of the difference flux reference i/'s.'diff i s multiplied with the factor k, with 0 < k < 1, to limit the winding flux reference amplitudes xp^ and tpsji •

If desired, one can also prioritize the d- or the q-axis component of the difference flux. The component with the least priority can be again determined from the solution of a quadratic equation.

In the end, the winding flux reference angles 4^sj f an d 4V>s,n i n the stationary aP reference frame are calculated. To this end, the estimated (or measured if an encoder is available) rotor flux angle 4$R and the rotor flux angle minus the electrical geometrical displacement angle of winding no. 2 - /3 are added to the previously calculated load angles of winding system no. 1 and no. 2 respectively.

As shown in Fig. 3, the winding flux reference (with the amplitudes xp^ and i/iyj and angles ar| d the estimated winding flux (with the amplitudes xp S i and xp s n and angles 4xp S i and &Ps,n) f° r each winding system 20a, 20b are sent to the MP3C controllers 52, which both may operate as described in EP 2 469 69 2A1 and US 8766570 B2.

Such an MP3C controller 52 is shown in Fig. 5. From the flux reference amplitude xp^ and V'sju the estimated or measured stator angular frequency m s , and the measured dc-link voltage v dc l and v dc II , the appropriate modulation index m for the respective winding system 20a, 20b is determined and together with the pulse number d, the respective OPP is loaded for each of the two converters based on the following equations:

A low-pass filtered dc-link voltage v dc d and v dc n may be used in the above equations. Note that for a synchronous machine 12, the measured or estimated rotor speed can be used instead of the estimated stator frequency m s . For the selection of the appropriate OPP, the pulse number d is also required, which is selected in such a way, so that the converter switching frequency does not exceed its maximum value.

Dependent on the modulation index m and the pulse number d, the pattern loader 80 provides a vector of primary switching angles A = [a t a 2 ... a d ] T and a corresponding vector of single-phase switch positions U = [u ± u 2 ... u d ] T . Typically, a pulse pattern with quarter- and half-wave symmetry is assumed, and the pulse number d is the number of switching angles within one quarter of the fundamental period of the three-level switching waveform. The three-phase pulse pattern that corresponds to the above vectors^ and U can be easily constructed by using the quarter- and half-wave as well as the three-phase symmetry.

A reference flux trajectory can then be calculated in block 82 by using the state-space model of the electrical machine 12. In the general case of a salient synchronous machine, the state-space model is given by

The system matrix is defined as with the components

The input matrix of (16) is defined as

For a non-salient machine the following statements hold:

^Sd — ^Sq — ^Sav (26) L sdiff — 0 (27)

Furthermore, it is evident from (19) that for a salient machine, the state-space model parameters and specifically the inductances depend on the rotor angle. This means that the reference trajectory for a set of OPPs also depends on the rotor angle and we have an LTV

(Linear Time Varying) state space-model.

It may be, such as in medium-voltage electrical machines 12, that the stator resistance /? s has a very low value. Because of that, the first and the last term of (16) can be omitted and the state-space model can be approximated by

The above equation means that the flux of each winding system 20a, 20b may be simply calculated from the integral of the respective winding voltage regardless of whether the machine has saliency or not. The winding voltage that corresponds to the selected OPP is calculated by multiplying the OPP switch positions with the half dc-link voltage. Typically, only the switch positions are used, since the flux reference is calculated to be independent of the drive parameters, most notably the dc-link voltage. The integral of the switch positions (in the aP reference frame) is divided by the modulation index and multiplied with the flux reference amplitude. Also considering the flux reference angle, one can compute the flux reference from the optimal trajectory.

In block 84, switching tables are constructed that hold in each phase the upcoming switching transitions. More specifically, the vector of single-phase switch positions with n x entries is constructed for the phase x € {a, b, c}. The nominal switching angles relative to the reference angle 4i/>s ef are translated into nominal switching instants (relative to the current time instant) by dividing them by the estimated angular stator frequency m s . This leads to the corresponding vector of nominal switching instants

Tnom _ ry-nom y-nom y-nomiT (i r )\

'x L L xl L X2 ■■■ L xn x 1 •

The pair U x and T x om forms the switching table for phase x. Apart from the OPP switching transitions, additional switching transitions can be considered, which are inserted into the switching table, in order to achieve a faster torque response.

The next step is to calculate the instantaneous flux error, which is the difference between the winding flux reference timate i/i Sa p :

Additionally, a common-mode flux error component i/> Serr 0 can be added to control the neutral point potential, as described in EP 15 177 656 Al. To this end, the measured neutral point potential v dc j and v dc n for the respective DC-link 26 is input into the neutral point controller 86, which determines a 0-component flux for the winding flux reference trajectory.

The pattern controller 88 manipulates the switching instants of the OPP with the aim to reduce the winding flux error over a certain time interval (the prediction horizon). In doing so, the winding flux vector is controlled along its reference trajectory and closed-loop control of the winding flux error is achieved. The result is a three-phase switching command u abc = [u a n b u c ] T or, more generally, a sequence thereof. The obtained switching commands for the first sampling interval are applied to the electrical converter 14. At the next sampling instant, the switching sequence of switching commands is recomputed, in accordance with the receding horizon policy.

While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive; the invention is not limited to the disclosed embodiments.

Other variations to the disclosed embodiments can be understood and effected by those skilled in the art and practising the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single processor or controller or other unit may fulfil the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. Any reference signs in the claims should not be construed as limiting the scope. NOMENCLATURE

A OPP primary single-phase switching angles for a given modulation index d b d n OPP pulse number in converter branch no. I and II m b m n Modulation index in converter branch no. I and II i s av space vector of the average current in the stationary aP frame. Its real part is the alpha-axis component and its imaginary part the beta-axis component. i s% b i s% ,i i stator current of winding system no. I and II in phase x € {a, b, c} i Sa p,i, isap,n stator current of winding system no. I and II in the stationary aP frame

L sd , L Sq stator winding self-inductance in the d- and q-axis in H

M sd , M Sq stator winding mutual inductance in the d- and q-axis in H n x number of entries in the switching table for phase x € {a, b, c} p number of pole pairs

/? s stator resistance in Q

T electromagnetic torque in Ws

T x nom vector of nominal switching instants for phase x € {a, b, c}

U OPP primary single-phase switch positions for a given modulation index

U x vector of single-phase switch positions for phase x e {a, b, c] u a bc,b u abc,n three-phase switch positions of converter no. I and II, u e {—1,0,1} v Sa pj, Vsccpjr stator voltage of winding no. I and II in the stationary aP frame

V N P,I> v NP/II neutral point potential of converter no. I and II v dc ,i, v dc , n total dc-link voltage of converter I and II ft electrical angle representing the geometrical displacement of winding no. II in rad reference load angle (angle between stator and rotor flux) for the average flux y^ef reference load angle for the difference flux

0 R rotor electrical angle in rad space vector of the average flux in the stationary reference frame. Its real part is the alpha-axis component and its imaginary part the betaaxis component. rotor flux in the aP frame

V'SJI winding flux amplitude for winding no. I and II

4V>s,i, &Ps,\\ winding flux angle in the stationary aP frame for winding no. I and

II

V'Sapj, V'SapjI winding flux of winding no. I and II in the aP frame

V's max maximum permissible amplitude of the winding flux

U) R rotor electrical angular speed in rad/s m s stator electrical angular frequency in rad/s

A symbol that denotes an estimated quantity

* symbol that denotes the conjugate complex value

LIST OF REFERENCE SYMBOLS

10 converter system

12 rotating electrical machine 14 electrical converter

14a, 14b converter branch 16 transformer

18 wind turbine

20a, 20b winding system

22a, 22b secondary winding

24 rectifier

26 DC-link

28 inverter

30 primary winding

32 electrical grid

34 controller

36 stator

38 rotor

40 field winding

42 abc to aP transformation block

44 aP to dq transformation block

46 difference current calculation block

48 winding flux reference calculation block

50 model predictive control block

52 MP3C controller

54 estimator block

56 average flux calculation block

58 look-up table

60 look-up table

62 average flux limiter

64 low-pass filter

66 PI controller 68 low-pass filter

70 difference flux calculation block

72 inner difference flux calculation block

74 PI controller 76 low-pass filter

78 winding flux calculation block

80 pattern loader

82 flux reference calculation block

84 switching table creation block 86 neutral point potential controller

88 pattern controller