Control device and a method for controlling magnetic levitation and torque generation

11286983 · 2022-03-29

Assignee

Inventors

Cpc classification

International classification

Abstract

An electrical drive includes an electrical machine, a first converter stage connected to terminals of stator phase-windings of the electrical machine, and a second converter stage connected to intermediate points of the stator phase-windings. A control device determines first component currents and second component currents so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to a rotor of the electrical machine in accordance with levitation control when portions of the phase-windings between the terminals and the intermediate points carry both the first and second component currents and the other portions of the phase-windings carry the first component currents. The reference currents for the first converter stage are determined based on the first and second component currents, and the reference currents for the second converter stage are determined based on the second component currents.

Claims

1. A control device for controlling an electrical drive, comprising: an electrical machine comprising a stator and a rotor; a first converter stage connected to terminals of phase-windings of the stator; and a second converter stage connected to intermediate points of the phase-windings of the stator, each of the phase-windings comprising a first portion between the terminal and the intermediate point of the phase-winding under consideration, and each of the phase-windings comprising a second portion in addition to the first portion of the phase-winding under consideration; and a computing system configured to: determine first component currents and second component currents so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to the rotor in accordance with levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry at least the first component currents, determine first reference currents for the first converter stage on the basis of the determined first and second component currents, the first reference currents depending on a reference torque and on a reference magnetic levitation force, and determine second reference currents for the second converter stage on the basis of at least the determined second component currents, the second reference currents depending on the reference magnetic levitation force.

2. The control device according to claim 1, wherein the computing system determines the first and second component currents on the basis of a computational model of the electrical machine, the computational model modelling the electrical machine such that flux-linkages of the phase-windings are dependent on a rotational position of a permanent magnet rotor and inductances are assumed to be so small that the flux-linkages of the phase-windings are assumed to be substantially independent of the first and second component currents.

3. The control device according to claim 1, wherein the computing system is further configured to determine changes to be made to the first component currents and changes to be made to the second component currents on the basis of a linearized computational model of the electrical machine so that, at each linearization point, products of the changes are approximated with zeros.

4. The control device according to claim 1, wherein the computing system is further configured to determine third component currents so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents, and to determine the second reference currents of the second converter stage on the basis of the second and third component currents.

5. An electrical drive, comprising: an electrical machine comprising a stator and a rotor; a first converter stage connected to terminals of phase-windings of the stator; a second converter stage connected to intermediate points of the phase-windings of the stator, each of the phase-windings comprising a first portion between the terminal and the intermediate point of the phase-winding under consideration, and each of the phase-windings comprising a second portion in addition to the first portion of the phase-winding under consideration; and a control device configured for determining first reference currents for the first converter stage and for determining second reference currents for the second converter stage, wherein the control device comprises a computing system configured to: determine first component currents and second component currents so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to the rotor in accordance with levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry at least the first component currents, determine the first reference currents for the first converter stage on the basis of the determined first and second component currents, the first reference currents depending on a reference torque and on a reference magnetic levitation force, and determine the second reference currents for the second converter stage on the basis of at least the determined second component currents, the second reference currents depending on the reference magnetic levitation force.

6. The electrical drive according to claim 5, wherein the electrical machine is a permanent magnet electrical machine, and the rotor of the electrical machine comprises permanent magnet material.

7. The electrical drive according to claim 5, further comprising at least one of the following so as to provide input data to the electrical machine control and to the levitation control: means for measuring currents, means for measuring magnetic fluxes, means for measuring temperatures, means for measuring a rotational position of a rotor, means for measuring a position of the rotor in directions perpendicular to a rotational axis of the rotor.

8. The electrical drive according to claim 5, wherein the computing system of the control device is further configured to estimate at least one of the following on the basis of measured quantities so as to provide input data to the electrical machine control and to the levitation control: the currents, the magnetic fluxes, the rotational position of the rotor, the position of the rotor in the directions perpendicular to the rotational axis of the rotor.

9. A method for controlling an electrical drive equipped with an electrical machine comprising a stator and a rotor, a first converter stage connected to terminals of phase-windings of the stator, and a second converter stage connected to intermediate points of the phase-windings of the stator, each of the phase-windings comprising a first portion between the terminal and the intermediate point of the phase-winding under consideration, and each of the phase-windings comprising a second portion in addition to the first portion of the phase-winding under consideration, the method comprising: determining first component currents and second component currents so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to the rotor in accordance with levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry at least the first component currents; determining first reference currents for the first converter stage on the basis of the determined first and second component currents, the first reference currents depending on a reference torque and on a reference magnetic levitation force; and determining second reference currents for the second converter stage on the basis of at least the determined second component currents, the second reference currents depending on the reference magnetic levitation force.

10. The method according to claim 9, wherein the determining the first and second component currents comprises execution of a computational model of the electrical machine, the computational model modelling the electrical machine such that flux-linkages of the phase-windings are dependent on a rotational position of a permanent magnet rotor and inductances are assumed to be so small that the flux-linkages of the phase-windings are assumed to be substantially independent of the first and second component currents.

11. The method according to claim 9, further comprising: determining changes to be made to the first component currents and changes to be made to the second component currents on the basis of a linearized computational model of the electrical machine so that, at each linearization point, products of the changes are approximated with zeros.

12. The method according to claim 9, further comprising: determining third component currents so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents, and determining the second reference currents of the second converter stage on the basis of the second and third component currents.

13. A non-transitory computer readable medium encoded with a computer program for controlling an electrical drive equipped with an electrical machine comprising a stator and a rotor, a first converter stage connected to terminals of phase-windings of the stator, and a second converter stage connected to intermediate points of the phase-windings of the stator, each of the phase-windings comprising a first portion between the terminal and the intermediate point of the phase-winding under consideration, and each of the phase-windings comprising a second portion in addition to the first portion of the phase-winding under consideration, the computer program comprising computer executable instructions that, upon execution by a programmable processing system of the electrical drive, causes the programmable processing system of the electrical drive to: determine first component currents and second component currents so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to the rotor in accordance with levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry at least the first component currents; determine first reference currents for the first converter stage on the basis of the determined first and second component currents, the first reference currents depending on a reference torque and on a reference magnetic levitation force; and determine second reference currents for the second converter stage on the basis of at least the determined second component currents, the second reference currents depending on the reference magnetic levitation force.

14. The control device according to claim 2, wherein the computing system is further configured to determine third component currents so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents, and to determine the second reference currents of the second converter stage on the basis of the second and third component currents.

15. The control device according to claim 3, wherein the computing system is further configured to determine third component currents so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents, and to determine the second reference currents of the second converter stage on the basis of the second and third component currents.

16. The electrical drive according to claim 6, further comprising at least one of the following so as to provide input data to the electrical machine control and to the levitation control: means for measuring currents, means for measuring magnetic fluxes, means for measuring temperatures, means for measuring a rotational position of a rotor, means for measuring a position of the rotor in directions perpendicular to a rotational axis of the rotor.

17. The method according to claim 10, further comprising: determining third component currents so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents, and determining the second reference currents of the second converter stage on the basis of the second and third component currents.

18. The method according to claim 11, further comprising: determining third component currents so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents, and determining the second reference currents of the second converter stage on the basis of the second and third component currents.

Description

BRIEF DESCRIPTION OF THE FIGURES

(1) Exemplifying and non-limiting embodiments of the invention and their advantages are explained in greater detail below in the sense of examples and with reference to the accompanying drawings, in which:

(2) FIGS. 1a and 1b illustrate an electrical drive comprising a control device according to an exemplifying and non-limiting embodiment of the invention, and

(3) FIG. 2 shows a flowchart of a method according to an exemplifying and nonlimiting embodiment of the invention for controlling an electrical drive.

DESCRIPTION OF EXEMPLIFYING AND NON-LIMITING EMBODIMENTS

(4) The specific examples provided in the description given below should not be construed as limiting the scope and/or the applicability of the appended claims. Furthermore, it is to be understood that lists and groups of examples provided in the description given below are not exhaustive unless otherwise explicitly stated.

(5) FIG. 1a shows a schematic illustration of an electrical drive comprising a control device 101 according to an exemplifying and non-limiting embodiment of the invention. The electrical drive comprises an electrical machine 103 that comprises a stator 104 and a rotor 105. The electrical machine 103 may operate as a motor or as a generator. In this exemplifying case, the electrical machine 103 is a permanent magnet machine whose rotor 105 comprises permanent magnet material 117. The stator of the electrical machine 103 comprises a ferromagnetic core structure 119 and a stator winding. It is worth noting that FIG. 1a shows a schematic illustration and thus the shapes and the mutual dimensions of the teeth, slots, and the yoke-section of the ferromagnetic core structure 119 are not necessarily optimal from the viewpoint of the operation of the electrical machine 103. In this exemplifying case, the stator winding is a three-phase winding where the number of pole-pairs is one, i.e. p=1. FIG. 1b shows a circuit diagram of the stator winding. The stator winding comprises three phase-windings 110, 111, and 112 connected to a star-point 118. Each phase-winding comprises a first portion between a terminal of the phase-winding and an intermediate point of the phase-winding. Furthermore, each phase-winding comprises a second portion in addition to the first portion. The second portion of each phase-winding is between the starpoint 118 and the intermediate point of the phase-winding under consideration. As shown in FIG. 1b, the phase-winding 110 comprises the first portion 110a and the second portion 110b, the phase-winding 111 comprises the first portion 111a and the second portion 111b, and the phase-winding 112 comprises the first portion 112a and the second portion 112b. In FIGS. 1a and 1b, the terminals of the phase-windings are denoted with reference numbers 107, 108, and 109, and the intermediate points of the phase-windings are denoted with reference numbers 114, 115, and 116.

(6) The electrical drive comprises a first converter stage 106 connected to the terminals 107-109 of the phase-windings 110-112. The electrical drive comprises a second converter stage 113 connected to the intermediate points 114-116 of the phase-windings 110-112. The first converter stage 106 can be e.g. an inverter stage which convers direct voltage U.sub.DC into controllable three-phase alternating voltages. In principle, the first converter stage 106 could be as well a direct converter which converts e.g. three-phase input alternating voltages into controllable three-phase output alternating voltages. Correspondingly, the second converter stage 113 can be e.g. an inverter stage which convers direct voltage U.sub.DC into controllable three-phase alternating voltages. In principle, the second converter stage 106 could be as well a direct converter which converts e.g. three-phase input alternating voltages into controllable three-phase output alternating voltages.

(7) The electrical drive comprises a control device 101 for determining reference currents i.sub.ref1u, i.sub.ref1v, and i.sub.ref1w for the first converter stage 106 and for determining reference currents i.sub.ref2u, i.sub.ref2v, and i.sub.ref2w for the second converter stage 113. The first converter stage 106 can be configured to apply for example two-point hysteresis control for controlling the output currents of the first converter stage 106 to be the reference currents i.sub.ref1u, i.sub.ref1v, and i.sub.ref1w with a sufficient accuracy. Correspondingly, second converter stage 113 can be configured to apply the two-point hysteresis control for controlling the output currents of the second converter stage 113 to be the reference currents i.sub.ref2u, i.sub.ref2v, and i.sub.ref2w with a sufficient accuracy. The control device 101 comprises a computing system 102 configured to determine first component currents i.sub.1Cu, i.sub.1Cv and i.sub.1Cw and second component currents i.sub.2Cu, i.sub.2Cv and i.sub.2Cw so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to the rotor 105 in accordance with levitation control when the first portions 110a, 111a, and 112a of the phase-windings carry both the first and second component currents and the second portions 110b, 111b, and 112b of the phase-windings carry at least the first component currents. When current is supplied to the intermediate point of a phase-winding, there is unbalance between currents flowing in the first and second portions of the phase-winding and thus radial magnetic force is directed to the rotor 105. The computing system 102 is configured to determine the reference currents i.sub.ref1u, i.sub.ref1v, and i.sub.ref1w for the first converter stage 106 on the basis of the first and second component currents so that i.sub.ref1u=i.sub.1Cu−i.sub.2Cu, i.sub.ref1v=i.sub.1Cv−i.sub.2Cv, and i.sub.ref1w=i.sub.1Cw−i.sub.2Cw. The computing system 102 is configured to determine the reference currents i.sub.ref2u, i.sub.ref2v, and i.sub.ref2w for the second converter stage 113 on the basis of at least the second component currents e.g. so that i.sub.ref2u=i.sub.2Cu, i.sub.ref2v=i.sub.2Cv, and i.sub.ref1w=i.sub.2Cw.

(8) The above-mentioned electrical machine control may comprise for example a rotational speed and/or rotational position sensor and a speed controller that provides a torque reference. The rotational speed and/or rotational position sensor is not shown in FIGS. 1a and 1b. In FIGS. 1a and 1b, a quantity C.sub.em represents a control quantity related to the electrical machine control. The quantity C.sub.em can be e.g. a measured or estimated rotational speed and/or rotational position on the basis of which the computing system 102 forms the torque reference. The rotational speed and/or the rotational position can be estimated on the basis of magnetic fluxes, voltages, and/or currents. Furthermore, measured temperature can be used in the estimation. It is also possible that the electrical machine 103 is driven with an externally given torque reference in which case the quantity C.sub.em can be the torque reference. The above-mentioned levitation control may comprise for example a position sensor or estimator for measuring or estimating the position of the rotor 105 in mutually perpendicular radial directions and a controller for producing mutually perpendicular force references for driving the rotor to its reference position. The position sensor or estimator is not shown in FIGS. 1a and 1b. The position of the rotor 105 in the mutually perpendicular radial directions can be estimated on the basis of magnetic fluxes, the rotational position, voltages, and/or currents. Furthermore, the measured temperature can be used in the estimation. The mutually perpendicular radial directions can be for example the x- and y-directions of a coordinate system shown in FIG. 1a. In FIGS. 1a and 1b, quantities X.sub.meas and Y.sub.meas relate to the levitation control and represent the measured position of the rotor 105 in the x- and y-directions. The computing system 102 is configured to produce mutually perpendicular force references on the basis of the quantities X.sub.meas and Y.sub.meas and the reference position of the rotor.

(9) The computing system 102 can be configured to determine the first component currents i.sub.1Cu, i.sub.1Cv, and i.sub.1Cw and the second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw on the basis of a computational model of the electrical machine 103 and on the basis of the above-mentioned torque reference and the mutually perpendicular force references. The relation between the first and second component currents and the torque reference can be approximated with the following equation:
T.sub.ref=T.sub.C1(Ψ.sub.PM cos(θ)(i.sub.1Cu−(i.sub.1Cv+i.sub.1Cw)/2)−Ψ.sub.PM sin(θ)√3(i.sub.1Cv−i.sub.1Cw)/2)−T.sub.C2(Ψ.sub.PM cos(θ)(i.sub.2Cu−(i.sub.2Cv+i.sub.2Cw)/2)−Ψ.sub.PM sin(θ)√3(i.sub.2Cv−i.sub.2Cw)/2),  (1)
where T.sub.ref is the torque reference, Ψ.sub.PM is the amplitude of the fundamental components of the magnetic flux linkages produced by the permanent magnets of the rotor to the phase-windings 110-112, θ is the rotational angle of the direct axis of the rotor with respect to the positive x-direction, and T.sub.C1 and T.sub.C2 are constant coefficients. The fact that each of the second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw flows only in a part of the respective phase-winding is taken into account with the aid of the coefficients and T.sub.C1 and T.sub.C2.

(10) The second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw represent the unbalances between the currents carried by the first and second portions of the phase-windings. These unbalances cause a magnetic force directed to the rotor 105. The relation between the second component currents, i.e. the above-mentioned unbalances, and the mutually perpendicular force references can be approximated with the following equations:
F.sub.xref=F.sub.C1(Ψ.sub.PM cos(θ)i.sub.2Cu−Ψ.sub.PM cos(θ−2π/3)i.sub.2Cw/2−Ψ.sub.PM cos(θ−4π/3)i.sub.2Cw/2),  (2)
F.sub.yref=F.sub.C1√3(Ψ.sub.PM cos(θ−2π/3)i.sub.2Cv−Ψ.sub.PM cos(θ−4π/3)i.sub.2Cw)/2,  (3)
where F.sub.xref is the x-directional force reference, F.sub.yref is the y-directional force reference, and F.sub.C1 is a constant coefficient.

(11) Furthermore, there are the following equations for the first component currents i.sub.1Cu, i.sub.1Cv, and i.sub.1Cw and for the second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw:
i.sub.1Cu+i.sub.1Cv+i.sub.1Cw=0, and  (4)
i.sub.2Cu+i.sub.2Cvi.sub.2Cw=0  (5)

(12) The second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw can be solved from the above-presented three equations (2), (3), and (5). Thereafter, the solved second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw can substituted into equation (1). Equations (1) and (5) are not sufficient for uniquely solving the first component currents i.sub.1Cu, i.sub.1Cv, and i.sub.1Cw because the power factor, cos φ, of the torque generation is not yet defined. The power factor can be defined to be a desired value, e.g. 1, in which case the angle between the space vector of the first component currents i.sub.1Cu, i.sub.1Cv, and i.sub.1Cw and the direct axis of the rotor is defined. This means that the ratio between the x-component of the space vector, i.e. i.sub.1Cu−(i.sub.1Cv+i.sub.1Cw)/2, and the y-component of the space vector, i.e. √3(i.sub.1Cv−i.sub.1Cw)/2, is defined. This provides a third equation which is needed in addition to equations (1) and (5) for uniquely solving the first component currents i.sub.1Cu, i.sub.1Cv, and i.sub.1Cw.

(13) In an electrical drive according to an exemplifying and non-limiting embodiment of the invention, the computing system 102 is configured to determine third component currents i.sub.3Cu, i.sub.3Cv, and i.sub.3Cw so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents. In this exemplifying case, the computing system 102 can be configured to determine the reference currents i.sub.ref1u, i.sub.ref1v, and i.sub.ref1w for the first converter stage 106 on the basis of the first and second component currents so that i.sub.ref1u=i.sub.1Cu−i.sub.2Cu, i.sub.ref1v=i.sub.1Cv−i.sub.2Cv, and i.sub.ref1w=i.sub.1Cw−i.sub.2Cw, and to determine the reference currents i.sub.ref2u, i.sub.ref2v, and i.sub.ref2w for the second converter stage 113 on the basis of the second and third component currents so that that i.sub.ref2u=i.sub.2Cu+i.sub.3Cu, i.sub.ref2v=i.sub.2Cv+i.sub.3Cv, and i.sub.ref2w=i.sub.2Cw+i.sub.3Cw.

(14) In this exemplifying case, an equation that corresponds to the above-presented equation (1) is:
T.sub.ref=T.sub.C1(Ψ.sub.PM cos(θ)(i.sub.1Cu−(i.sub.1Cv+i.sub.1Cw)/2)−Ψ.sub.PM sin(θ)√3(i.sub.1Cv−i.sub.1Cw)/2)−T.sub.C2(Ψ.sub.PM cos(θ)(i.sub.2Cu−(i.sub.2Cv+i.sub.2Cw)/2)−Ψ.sub.PM sin(θ)√3(i.sub.2Cv−i.sub.2Cw)/2)+T.sub.C3(Ψ.sub.PM cos(θ)(i.sub.3Cu−(i.sub.3Cv+i.sub.3Cw)/2)−Ψ.sub.PM sin(θ)√3(i.sub.3Cv−i.sub.3Cw)/2),
where T.sub.C3 is a constant coefficient.

(15) The unbalance between e.g. the current carried by the first portion 110a of the phase-winding 110 and the current carried by the second portion 110b of the phase-winding 110 is (i.sub.1Cu−i.sub.2Cu)−(i.sub.1Cu+i.sub.3Cu)=−(i.sub.2Cu+i.sub.3Cu). Therefore, in this exemplifying case, equations that correspond to the above-presented equations (2) and (3) are:
F.sub.xref=F.sub.C2[Ψ.sub.PM cos(θ)(i.sub.2Cu+i.sub.3Cu)−Ψ.sub.PM cos(θ−2π/3)(i.sub.2Cv+i.sub.CRv)/2−Ψ.sub.PM cos(θ−4π/3)(i.sub.2Cw+i.sub.3Cw)/2],
F.sub.yref=F.sub.C2√3[Ψ.sub.PM cos(θ−2π/3)(i.sub.2Cv+i.sub.3Cv)−Ψ.sub.PM cos(θ−4π/3)(i.sub.2Cw+i.sub.3Cw)]/2,
where F.sub.C2 is a constant coefficient. As can be seen from the above-presented equations, the third component currents i.sub.3Cu, i.sub.3Cv, and i.sub.3Cw provide more freedom to determine how the torque generation is shared between the first and second converter stages 106 and 113.

(16) In the above-presented exemplifying cases, it is assumed that the flux-linkages of the phase-windings 110-112 are substantially independent of the currents of the phase-windings 110-112, i.e. the inductances of the phase-windings 110-112 are small. In conjunction with a permanent magnet machine of the kind illustrated in FIG. 1a, this assumption is relatively valid because the effective air-gap is long for the magneto motive forces “mmf” represented by the currents of the phase-windings. In cases where this assumption is not valid with a sufficient accuracy, the computing system 102 can be configured to use a linearized computational model of the electrical machine. The computational model is linearized at each operating point and, for a prevailing operating point, the computing system 102 is configured to determine changes Δi.sub.1Cu, Δi.sub.1Cv and Δi.sub.1Cw to be made to the first component currents, changes Δi.sub.2Cu, Δi.sub.2Cv, and Δi.sub.2Cw to be made to the second component currents, and possibly changes Δi.sub.3Cu, Δi.sub.3Cv, and Δi.sub.3Cw to be made to the third components currents on the basis of a desired change of the torque ΔT.sub.ref and desired changes of the x- and y-directional magnetic forces ΔF.sub.xref and ΔF.sub.yref. In the linearized computational model, products of the above-mentioned changes of the currents are assumed to be so small that these products can be approximated with zeroes.

(17) The control device 101 shown in FIGS. 1a and 1b can be implemented with one or more analogue circuits and/or with one or more digital processor circuits, each of which can be a programmable processor circuit provided with appropriate software, a dedicated hardware processor such as for example an application specific integrated circuit “ASIC”, or a configurable hardware processor such as for example a field programmable gate array “FPGA”.

(18) FIG. 2 shows a flowchart of a method according to an exemplifying and non-limiting embodiment of the invention for controlling an electrical drive that comprises: an electrical machine comprising a stator and a rotor, a first converter stage connected to terminals of phase-windings of the stator, and a second converter stage connected to intermediate points of the phase-windings of the stator, each of the phase-windings comprising a first portion between the terminal and the intermediate point of the phase-winding under consideration, and each of the phase-windings comprising a second portion in addition to the first portion of the phase-winding under consideration.

(19) The method comprises the following actions: action 201: determining first component currents i.sub.1Cu, i.sub.1Cv, and i.sub.1Cw and second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to the rotor in accordance with levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry at least the first component currents, action 202: determining reference currents i.sub.ref1u, i.sub.ref1v, and i.sub.ref1w for the first converter stage on the basis of the first and second component currents, and action 203: determining reference currents i.sub.ref2u, i.sub.ref2v, and i.sub.ref2w for the second converter stage on the basis of at least the second component currents.

(20) A method according to an exemplifying and non-limiting embodiment of the invention comprises determining the first and second component currents on the basis of a computational model of the electrical machine, the computational model being modelling the electrical machine so that the flux-linkages of the phase-windings are dependent on a rotational position of a permanent magnet rotor and inductances are assumed to be so small that the flux-linkages of the phase-windings are assumed to be substantially independent of the first and second component currents.

(21) A method according to an exemplifying and non-limiting embodiment of the invention comprises determining changes to be made to the first component currents and changes to be made to the second component currents on the basis of a linearized computational model of the electrical machine so that, at each linearization point, products of the changes are approximated with zeroes.

(22) A method according to an exemplifying and non-limiting embodiment of the invention comprises determining third component currents so that the torque is generated in accordance with the electrical machine control and the magnetic levitation force is directed to the rotor in accordance with the levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry both the first and third component currents. In this exemplifying case, the reference currents for the second converter stage are determined on the basis of the second and third component currents.

(23) A computer program according to an exemplifying and non-limiting embodiment of the invention comprises computer executable instructions for controlling a programmable processing system to carry out actions related to a method according to any of the above-described exemplifying embodiments of the invention.

(24) A computer program according to an exemplifying and non-limiting embodiment of the invention comprises software means for controlling a programmable processing system of an electrical drive that comprises: an electrical machine comprising a stator and a rotor, a first converter stage connected to terminals of phase-windings of the stator, and a second converter stage connected to intermediate points of the phase-windings of the stator, each of the phase-windings comprising a first portion between the terminal and the intermediate point of the phase-winding under consideration, and each of the phase-windings comprising a second portion in addition to the first portion of the phase-winding under consideration.

(25) The software means comprise computer executable instructions for controlling the programmable processing system to: determine first component currents i.sub.1Cu, i.sub.1Cv, and i.sub.1Cw and second component currents i.sub.2Cu, i.sub.2Cv, and i.sub.2Cw so that torque is generated in accordance with electrical machine control and magnetic levitation force is directed to the rotor in accordance with levitation control when the first portions of the phase-windings carry both the first and second component currents and the second portions of the phase-windings carry at least the first component currents, determine reference currents i.sub.ref1u, i.sub.ref1v, and i.sub.ref1w for the first converter stage on the basis of the first and second component currents, and determine reference currents i.sub.ref2u, i.sub.ref2v, and i.sub.ref2w for the second converter stage on the basis of at least the second component currents.

(26) The software means can be e.g. subroutines or functions implemented with a suitable programming language and with a compiler suitable for the programming language and for the programmable processing system under consideration. It is worth noting that also a source code corresponding to a suitable programming language represents the software means because the source code contains the information needed for controlling the programmable processing system to carry out the above-presented actions and compiling changes only the format of the information. Furthermore, it is also possible that the programmable processing system is provided with an interpreter so that a source code implemented with a suitable programming language does not need to be compiled prior to running.

(27) A computer program product according to an exemplifying and non-limiting embodiment of the invention comprises a computer readable medium, e.g. an optical disc, encoded with a computer program according to an exemplifying embodiment of invention.

(28) A signal according to an exemplifying and non-limiting embodiment of the invention is encoded to carry information defining a computer program according to an exemplifying embodiment of invention.

(29) The specific examples provided in the description given above should not be construed as limiting the scope and/or the applicability of the appended claims. Lists and groups of examples provided in the description given above are not exhaustive unless otherwise explicitly stated.