Main Content

PMSM (Four-Phase)

Four-phase permanent magnet synchronous motor with sinusoidal flux distribution

Since R2022a

  • PMSM (Four-Phase) block

Libraries:
Simscape / Electrical / Electromechanical / Permanent Magnet

Description

The PMSM (Four-Phase) block models a permanent magnet synchronous motor with a four-phase cross-wound or square-wound stator. The figure shows the equivalent electrical circuits for the cross-connected and square-connected stator windings.

Motor Construction

Permanent magnets generate a rotor magnetic field that creates a sinusoidal rate of change of flux based on the rotor angle.

For the axes convention, when you set the Rotor angle definition parameter to Angle between the a-phase magnetic axis and the d-axis, the a-phase and permanent magnet fluxes align when the rotor mechanical angle, θr, is zero. When you set the Rotor angle definition parameter to Angle between the a-phase magnetic axis and the q-axis, the rotor mechanical angle is the angle between the a-phase magnetic axis and the rotor q-axis.

Equations

The voltages across the stator windings are

[vavbvcvd]=[Rs0000Rs0000Rs0000Rs][iaibicid]+[dψadtdψbdtdψcdtdψddt],

where:

  • va, vb, vc, and vd are the individual phase voltages across the stator windings.

  • Rs is the equivalent resistance of each stator winding.

  • ia, ib, ic, and id are the currents flowing in the stator windings.

  • dψadt,dψbdt,dψcdt, and dψddt are the rates of change for the magnetic flux in each stator winding.

The permanent magnet and the four windings contribute to the total flux linking each winding. The total flux is

[ψaψbψcψd]=[LaaLabLacLadLbaLbbLbcLbdLcaLcbLccLcdLdaLdbLdcLdd][iaibicid]+[ψamψbmψcmψdm],

where:

  • ψa, ψb, ψc, and ψd are the total fluxes that link each stator winding.

  • Laa, Lbb, Lcc, and Ldd are the self-inductances of the stator windings.

  • Lab, Lac, Lba, and so on, are the mutual inductances of the stator windings.

  • ψam, ψbm, ψcm, and ψdm are the permanent magnet fluxes linking the stator windings.

The inductances in the stator windings are functions of the rotor electrical angle and defined by

θe=Nθr+rotoroffset

Laa=Ls+Lmcos(2θe)

Lbb=Ls+Lmcos(2(θeπ/2))

Lcc=Ls+Lmcos(2(θe+π))

Ldd=Ls+Lmcos(2(θe+π/2))

Lab=Lba=Ms+Lmcos(2(θe+π/4))

Lbc=Lcb=MsLmcos(2(θe+π/4π/2))

Lcd=Ldc=MsLmcos(2(θe+π/4+π))

Lad=Lda=MsLmcos(2(θe+π/4+π/2))

Lac=Lca=MsLmcos(2(θe+π))

Lbd=Ldb=MsLmcos(2(θe+ππ/2))

where:

  • θr is the rotor mechanical angle.

  • θe is the rotor electrical angle.

  • rotor offset is -pi/2 if you define the rotor electrical angle with respect to the d-axis, or 0 if you define the rotor electrical angle with respect to the q-axis.

  • Ls is the stator per-phase self-inductance. This value is the average self-inductance of each of the stator windings.

  • Lm is the stator inductance fluctuation. This value is the amount the self-inductance and mutual inductance fluctuate with the changing of the rotor angle.

  • Ms is the stator mutual inductance. This value is the average mutual inductance between the stator windings.

The permanent magnet flux linking winding a-a' is at maximum when θe = 0° and zero when θe = 90°. Therefore, the linked motor flux is defined by:

[ψamψbmψcmψdm]=[ψmcosθeψmcos(θrπ/2)ψmcos(θr+π)ψmcos(θr+π/2)],

where ψm is the permanent magnet flux linkage.

Simplified Electrical Equations

To remove the rotor angle dependence for the inductive terms, you perform a transformation, T, on the motor equations.

The T transformation is defined by:

T(θe)=12[cosθecos(θeπ/2)cos(θe+π)cos(θe+π/2)sinθesin(θeπ/2)sin(θe+π)sin(θe+π/2)1/21/21/21/21/21/21/21/2],

where θe is the electrical angle defined as r. N is the number of pole pairs.

The transformation matrix has this pseudo-orthogonal property:

T1(θe)=2Tt(θe).

Using the T transformation on the stator winding voltages and currents transforms them to the dq0 and xy frames, which are independent of the rotor angle:

[vdsvqsvxv0]=T[vavbvcvd]

[idsiqsixi0]=T[iaibicid]

Applying this transformation to the first two electrical equations produces these equations

vds=Rsids+LddidsdtNωiqsLq

vqs=Rsiqs+Lqdiqsdt+Nω(idsLd+ψm)

vx=Rsix+Ld+Lq2dixdt

v0=Rsi0+L0di0dt

T=2N(iqs(idsLd+ψm)idsiqsLq)


where:

  • Ld = Ls + Ms + 2 Lm. Ld is the stator d-axis inductance.

  • Lq = Ls + Ms − 2 Lm. Lq is the stator q-axis inductance.

  • L0 = Ls – 3Ms. L0 is the stator zero-sequence inductance.

  • ω is the rotor mechanical rotational speed.

  • N is the number of rotor permanent magnet pole pairs.

Alternative Flux Linkage Parameterization

You can parameterize the motor by using the back EMF or torque constants, which are more commonly given on motor datasheets, by using the Permanent magnet flux linkage parameter.

The back EMF constant is the peak voltage induced by the permanent magnet in the per-unit rotational speed of each of the phases. The relationship between the peak permanent magnet flux linkage and the back EMF is:

ke=Nψm.

The back EMF, eph, for one phase is:

eph=keω.

The torque constant is the peak torque induced by the per-unit current of each of the phases. It is numerically identical in value to the back EMF constant when both are expressed in SI units:

kt=Nψm.

When Ld = Lq and the currents in all four phases are balanced, the combined torque T is:

T=2ktiq=2ktIpk,

where Ipk is the peak current in any of the four windings.

The factor 2 is calculated from the steady-state sum of the torques from all phases. Therefore, the torque constant kt can also be:

kt=12(TIpk),

where T is the measured total torque when testing with a balanced four-phase current with a peak line voltage of Ipk. The RMS line voltage is:

kt=12(Tiline,rms).

Model Thermal Effects

You can expose thermal ports to model the effects of losses that convert power to heat. To expose the thermal ports, set the Modeling option parameter to either:

  • No thermal port — The block contains expanded electrical conserving ports associated with the stator windings, but does not contain thermal ports.

  • Show thermal port — The block contains expanded electrical conserving ports associated with the stator windings and thermal conserving ports for each of the windings and for the rotor.

For more information about using thermal ports in actuator blocks, see Simulating Thermal Effects in Rotational and Translational Actuators.

Variables

To set the priority and initial target values for the block variables before simulation, use the Initial Targets section in the block dialog box or Property Inspector. For more information, see Set Priority and Initial Target for Block Variables.

Nominal values provide a way to specify the expected magnitude of a variable in a model. Using system scaling based on nominal values increases the simulation robustness. You can specify nominal values using different sources, including the Nominal Values section in the block dialog box or Property Inspector. For more information, see System Scaling by Nominal Values.

Examples

Ports

Conserving

expand all

Electrical conserving port associated with a-phase.

Dependencies

To enable this port, set Winding type to Cross-wound or Square-wound.

Electrical conserving port associated with b-phase.

Dependencies

To enable this port, set Winding type to Cross-wound or Square-wound.

Electrical conserving port associated with c-phase.

Dependencies

To enable this port, set Winding type to Cross-wound or Square-wound.

Electrical conserving port associated with d-phase.

Dependencies

To enable this port, set Winding type to Cross-wound or Square-wound.

Since R2024a

Electrical conserving port associated with the a positive-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Since R2024a

Electrical conserving port associated with the b positive-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Since R2024a

Electrical conserving port associated with the c positive-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Since R2024a

Electrical conserving port associated with the d positive-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Since R2024a

Electrical conserving port associated with the a negative-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Since R2024a

Electrical conserving port associated with the b negative-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Since R2024a

Electrical conserving port associated with the c negative-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Since R2024a

Electrical conserving port associated with the d negative-end connection.

Dependencies

To enable this port, set Winding type to Open-end.

Electrical conserving port associated with the neutral phase.

Dependencies

To enable this port, set Winding Type to Cross-wound and Zero sequence to Include.

Mechanical rotational conserving port associated with the motor rotor.

Mechanical rotational conserving port associated with the motor case.

Thermal conserving port associated with stator winding a.

Dependencies

To enable this port, set Modeling option to Show thermal port.

Thermal conserving port associated with stator winding b.

Dependencies

To enable this port, set Modeling option to Show thermal port.

Thermal conserving port associated with stator winding c.

Dependencies

To enable this port, set Modeling option to Show thermal port.

Thermal conserving port associated with stator winding d.

Dependencies

To enable this port, set Modeling option to Show thermal port.

Thermal conserving port associated with the rotor.

Dependencies

To enable this port, set Modeling option to Show thermal port.

Parameters

expand all

Whether to enable the thermal ports of the block and model the effects of losses that convert power to heat.

Main

Configuration for the windings:

  • Cross-wound — The windings are cross-wound.

  • Square-wound — The windings are square-wound.

  • Open-end — The windings are in an open-end configuration. The block exposes each end of the windings as electrical connections.

Number of permanent magnet pole pairs on the rotor.

Permanent magnet flux linkage, specified as Specify flux linkage, Specify torque constant, or Specify back EMF constant.

Peak permanent magnet flux linkage for any of the stator windings.

Dependencies

To enable this parameter, set Permanent magnet flux linkage to Specify flux linkage.

Torque constant for any of the stator windings.

Dependencies

To enable this parameter, set Permanent magnet flux linkage to Specify torque constant.

Back EMF constant for any of the stator windings.

Dependencies

To enable this parameter, set Permanent magnet flux linkage to Specify back EMF constant.

Stator parameterization, specified as Specify Ld, Lq, and L0 or Specify Ls, Lm, and Ms.

d-axis inductance.

Dependencies

To enable this parameter, set Stator parameterization to Specify Ld, Lq, and L0.

q-axis inductance.

Dependencies

To enable this parameter, set Stator parameterization to Specify Ld, Lq, and L0.

Zero-sequence inductance.

Dependencies

To enable this parameter either:

  • Set Winding Type to Cross-wound, Zero sequence to Include, and Stator parameterization to Specify Ld, Lq, and L0.

  • Set Winding Type to Square-wound and Stator parameterization to Specify Ld, Lq, and L0.

Average self-inductance of each of the four stator windings.

Dependencies

To enable this parameter, set Stator parameterization to Specify Ls, Lm, and Ms.

Amount that the self-inductance and mutual inductance of the stator windings fluctuate with the rotor angle.

Dependencies

To enable this parameter, set Stator parameterization to Specify Ls, Lm, and Ms.

Average mutual inductance between the stator windings.

Dependencies

To enable this parameter, set Stator parameterization to Specify Ls, Lm, and Ms.

Resistance of each of the stator windings.

Reference point for the rotor angle measurement. When you select Angle between the a-phase magnetic axis and the d-axis, the rotor and a-phase fluxes align when the rotor angle is zero.

When you select Angle between the a-phase magnetic axis and the q-axis, the a-phase current generates maximum torque when the rotor angle is zero.

Whether to include or exclude zero-sequence terms.

  • Include — Include zero-sequence terms. Select this option to prioritize model fidelity. Using this option:

  • Exclude — Exclude zero-sequence terms. Select this option to prioritize simulation speed for desktop simulation or real-time deployment.

Dependencies

To enable this parameter, set the Winding Type to Cross-wound.

Mechanical

Inertia of the rotor attached to mechanical translational port R. The value can be zero.

Rotary damping.

Thermal

To enable these parameters, set Modeling option to Show thermal port.

Temperature for which the motor parameters are quoted.

Coefficient α in the equation relating resistance to temperature for all four windings, as described in Thermal Model for Actuator Blocks. The default value, 3.93e-3 1/K, is for copper.

Fractional rate at which the permanent magnet flux density changes with temperature. Use this parameter to linearly reduce the torque and the induced back EMF as temperature rises.

Thermal mass value for each stator winding. The thermal mass is the energy required to raise the temperature by one degree.

Thermal mass of the rotor. The thermal mass is the energy required to raise the temperature of the rotor by one degree.

References

[1] Della Torre, F., et al. Symmetrical Components and Space-Vector Transformations for Four-Phase Networks. IEEE Transactions on Power Delivery, vol. 23, no. 4, pp.2191-200, Oct., 2008.

[2] Anderson, P. M. Analysis of Faulted Power Systems. IEEE Press Power Systems Engineering Series, 1995. ISBN 0-7803-1145-0.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2022a

expand all