主要内容

流感x-Based PMSM

流感x-based permanent magnet synchronous motor

  • Library:
  • 动力总成设备 /推进 /电动机和逆变器

  • 流感x-Based PMSM block

Description

The流感x-Based PMSMblock implements a flux-based three-phase permanent magnet synchronous motor (PMSM) with a tabular-based electromotive force. The block uses the three-phase input voltages to regulate the individual phase currents, allowing control of the motor torque or speed.

流感x-based motor models take into account magnetic saturation and iron losses. To calculate the magnetic saturation and iron loss, the流感x-Based PMSMblock uses the inverse of the flux linkages. To obtain the block parameters, you can use finite-element analysis (FEA) or measure phase voltages using a dynamometer.

By default, the block sets theSimulation Typeparameter toContinuous在模拟过程中使用连续的样品时间。如果要为固定步骤的双重和单精度目标生成代码,请考虑将参数设置为Discrete. Then specify aSample Time, Tsparameter.

To enable power loss calculations suitable for code generation targets that limit memory, selectEnable memory optimized 2D LUT.

三相正弦模型电气系统

The block implements equations that are expressed in a stationary rotor reference (dq) frame. Thed-axis aligns with thea-axis. All quantities in the rotor reference frame are referred to the stator.

The block uses these equations.

Calculation Equation
q- andd- 轴电压 v d = d ψ d d t + R s i d ω e ψ q v q = d ψ q d t + R s i q + ω e ψ d
q- andd-axis current i d = f ( ψ d , ψ q ) i q = g ( ψ d , ψ q )
Electromechanical torque T e = 1.5 P [ ψ d i q ψ q i d ]

The equations use these variables.

ωm

Rotor mechanical speed

ωe

Rotor electrical speed

θda

dq stator electrical angle with respect to the rotor a-axis

Rs,Rr

Resistance of the stator and rotor windings, respectively

iq,id

q- andd-axis current, respectively

vq,vd

q- andd- 轴电压, respectively

ψq,ψd

q- andd-axis magnet flux, respectively

P

杆对数

Te

电磁转矩

Transforms

计算平衡三相的电压和电流(a,b)数量,正交两相(α,β) quantities, and rotating (d,q) reference frames, the block uses the Clarke and Park Transforms.

In the transform equations.

ω e = P ω m d θ e d t = ω e

Transform Description Equations

Clarke

Converts balanced three-phase quantities (a,b) into balanced two-phase quadrature quantities (α,β).

x α = 2 3 x a 1 3 x b 1 3 x c x β = 3 2 x b 3 2 x c

Park

转换平衡的两相正交固定量(α,β) into an orthogonal rotating reference frame (d,q).

x d = x α cos θ e + x β sin θ e x q = x α sin θ e + x β cos θ e

Inverse Clarke

Converts balanced two-phase quadrature quantities (α,β)成平衡的三相量(a,b).

x a = x a x b = 1 2 x α + 3 2 x β x c = 1 2 x α 3 2 x β

逆公园

Converts an orthogonal rotating reference frame (d,q) into balanced two-phase orthogonal stationary quantities (α,β).

x α = x d cos θ e x q sin θ e x β = x d sin θ e + x q cos θ e

The transforms use these variables.

ωm

Rotor mechanical speed

P

电动杆对

ωe

Rotor electrical speed

θe

Rotor electrical angle

x

Phase current or voltage

Mechanical System

The rotor angular velocity is given by:

d d t ω m = 1 J ( T e T f F ω m T m ) d θ m d t = ω m

The equations use these variables.

J

Combined inertia of rotor and load

F

Combined viscous friction of rotor and load

θm

Rotor mechanical angular position

Tm

Rotor shaft torque

Te

电磁转矩

Tf

转子和负载摩擦扭矩

ωm

Rotor mechanical speed

Power Accounting

For the power accounting, the block implements these equations.

Bus Signal Description 多变的 Equations

PwrInfo

PwrTrnsfrd— Power transferred between blocks

  • Positive signals indicate flow into block

  • Negative signals indicate flow out of block

pwrmtr

Mechanical power

Pmot

P m o t = ω m T e
PwrBus

Electrical power

Pbus

P b u s = v a n i a + v b n i b + v c n i c

PwrNotTrnsfrd— Power crossing the block boundary, but not transferred

  • 正信号表示输入

  • Negative signals indicate a loss

PwrElecLoss

Resistive power loss

P电子

P e l e c = 3 2 ( R s i s d 2 + R s i s q 2 )
PwrMechLoss

Mechanical power loss

P机械

什么时候端口配置被设定为扭矩:

P m e c h = ( ω m 2 F + | ω m | T f )

什么时候端口配置被设定为Speed:

P m e c h = 0

PwrStored- 存储的能源变化速率

  • Positive signals indicate an increase

  • Negative signals indicate a decrease

pwrmtrstored

Stored motor power

Pstr

P s t r = P b u s + P m o t + P e l e c + P m e c h

The equations use these variables.

Rs

定子电阻

ia,ib,ic

Stator phase a, b, and c current

isq,isd

Stator q- and d-axis currents

van,vbn,vcn

Stator phase a, b, and c voltage

ωm

Angular mechanical velocity of the rotor

F

Combined motor and load viscous damping

Te

电磁转矩

Tf

Combined motor and load friction torque

Lookup Table Memory Optimization

The data for theCorresponding d-axis current, idandCorresponding q-axis current, iqlookup tables are functions of thed- andq-axis flux.

To enable current calculations suitable for code generation targets that limit memory, selectEnable memory optimized 2D LUT. The block uses linear interpolation to optimize the current lookup table values for code generation. This table summarizes the optimization implementation.

Use Case Implementation

d- andq-axis flux aligns with the lookup table breakpoint values.

Memory-optimized current is current lookup table value at intersection of flux values.

d- andq-axis flux does not align with the lookup table breakpoint values, but is within range.

内存优化的电流是相应的通量值之间的线性插值。

d- andq- 轴通量与查找表断点值不符,并且不超出范围。

Cannot compute an memory-optimized current. Block uses extrapolated data.

外推

The lookup tables optimized for code generation do not support extrapolation for data that is out of range. However, you can include pre-calculated extrapolation values in the power loss lookup table by selectingSpecify Extrapolation.

该块使用端点参数调整表数据大小。

User Input 外推

Ports

输入

expand all

Rotor shaft input torque,Tm, in N·m.

Dependencies

To create this port, select扭矩为了端口配置parameter.

Angular velocity of the rotor, ωm, in rad/s.

Dependencies

To create this port, selectSpeed为了端口配置parameter.

Stator terminal voltages,Va,Vb, andVc, in V.

Dependencies

To create this port, selectSpeedor扭矩为了端口配置parameter.

Output

expand all

The bus signal contains these block calculations.

Signal Description 多变的 单位

IaStator

Stator phase current A

ia

A

IbStator

Stator phase current B

ib

A

IcStator

Stator phase current C

ic

A

IdSync

Direct axis current

id

A

IqSync

Quadrature axis current

iq

A

VdSync

Direct axis voltage

vd

V

VqSync

Quadrature axis voltage

vq

V

mtrspd

Angular mechanical velocity of the rotor

ωm

rad/s

MtrPos

Rotor mechanical angular position

θm

rad

Mtrtrq

电磁转矩

Te

N·m

PwrInfo

PwrTrnsfrd

pwrmtr

Mechanical power

Pmot

W
PwrBus

Electrical power

Pbus

W

PwrNotTrnsfrd

PwrElecLoss

Resistive power loss

P电子

W
PwrMechLoss

Mechanical power loss

P机械

W
PwrStored pwrmtrstored

Stored motor power

Pstr

W

A阶段A,B,C电流,ia,ib, andic, 在一个。

Motor torque,Tmtr, in N·m.

Dependencies

To create this port, selectSpeed为了Port configurationparameter.

Angular speed of the motor,ωmtr, in rad/s.

Dependencies

To create this port, select扭矩为了Port configurationparameter.

Parameters

expand all

块的选择

By default, the block uses a continuous sample time during simulation. If you want to generate code for single-precision targets, considering setting the parameter toDiscrete.

Dependencies

环境Simulation TypetoDiscretecreates theSample Time, Tsparameter.

Integration sample time for discrete simulation, in s.

Dependencies

环境Simulation TypetoDiscretecreates theSample Time, Tsparameter.

This table summarizes the port configurations.

端口配置 Creates Input Port Creates Output Port

扭矩

LdTrq

mtrspd

Speed

Spd

Mtrtrq

Enable generation of optimized lookup tables, suitable code generation targets that limit memory.

d-axis flux,ψd, breakpoints, in Wb.

流感x breakpoint storage size,n1, dimensionless. The block resamples theCorresponding d-axis current, idandCorresponding q-axis current, iqdata based on the storage size.

Dependencies

To create this parameter, selectEnable memory optimized 2D LUT.

q-axis flux,ψq, breakpoints, in Wb.

流感x breakpoint storage size,n2, dimensionless. The block resamples theCorresponding d-axis current, idandCorresponding q-axis current, iqdata based on the storage size.

Dependencies

To create this parameter, selectEnable memory optimized 2D LUT.

Array of values ford-axis current,id, as a function ofMd-fluxes,ψd, andNq-fluxes,ψq,在A中,每个值都指定了特定组合的电流d- andq-axis flux. The array size must match the dimensions defined by the flux vectors.

If you setEnable memory optimized 2D LUT, the block converts the data to single precision.

Array of values forq-axis current,id, as a function ofMd-fluxes,ψd, andNq-fluxes,ψq,在A中,每个值都指定了特定组合的电流d- andq-axis flux. The array size must match the dimensions defined by the flux vectors.

If you setEnable memory optimized 2D LUT, the block converts the data to single precision.

流感x breakpoint maximum extrapolation endpoint,u1max, in Wb.

Dependencies

To create this parameter, selectEnable memory optimized 2D LUTandSpecify Extrapolation.

流感x breakpoint minimum extrapolation endpoint,u1min, in Wb.

Dependencies

To create this parameter, selectEnable memory optimized 2D LUTandSpecify Extrapolation.

流感x breakpoint maximum extrapolation endpoint,u2max, in Wb.

Dependencies

To create this parameter, selectEnable memory optimized 2D LUTandSpecify Extrapolation.

流感x breakpoint minimum extrapolation endpoint,u2min, in Wb.

Dependencies

To create this parameter, selectEnable memory optimized 2D LUTandSpecify Extrapolation.

Stator phase resistance,Rs, in ohm.

电动杆对,P.

Initiald- andq-axis flux,ψq0andψd0, in Wb.

Initial rotor angular position,θm0, in rad.

Initial angular velocity of the rotor,ωm0, in rad/s.

Dependencies

要启用此参数,请选择扭矩configuration parameter.

Mechanical properties of the rotor:

  • Inertia,J, in kgm^2

  • Viscous damping,F, in N·m/(rad/s)

  • Static friction,Tf, in N·m

Dependencies

要启用此参数,请选择扭矩configuration parameter.

参考

[1] Hu, Dakai, Yazan Alsmadi, and Longya Xu. “High fidelity nonlinear IPM modeling based on measured stator winding flux linkage.”IEEE®Transactions on Industry Applications,卷。51, No. 4, July/August 2015.

[2] Chen, Xiao, Jiabin Wang, Bhaskar Sen, Panagiotis Lasari, Tianfu Sun. “A High-Fidelity and Computationally Efficient Model for Interior Permanent-Magnet Machines Considering the Magnetic Saturation, Spatial Harmonics, and Iron Loss Effect.”IEEE Transactions on Industrial Electronics,卷。62,第7号,2015年7月。

[3] Ottosson, J., M. Alakula. “A compact field weakening controller implementation.”国际电力电子,电动驱动器,自动化和运动研讨会, July, 2006.

Extended Capabilities

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

Version History

Introduced in R2017b