流感x-Based PMSM
流感x-based permanent magnet synchronous motor
- Library:
动力总成设备 /推进 /电动机和逆变器
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- 轴电压 | |
q- andd-axis current | |
Electromechanical torque |
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.
Transform | Description | Equations |
---|---|---|
Clarke |
Converts balanced three-phase quantities (a,b) into balanced two-phase quadrature quantities (α,β). |
|
Park |
转换平衡的两相正交固定量(α,β) into an orthogonal rotating reference frame (d,q). |
|
Inverse Clarke |
Converts balanced two-phase quadrature quantities (α,β)成平衡的三相量(a,b). |
|
逆公园 |
Converts an orthogonal rotating reference frame (d,q) into balanced two-phase orthogonal stationary quantities (α,β). |
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:
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 | ||
---|---|---|---|---|---|
|
|
|
Mechanical power |
Pmot |
|
PwrBus |
Electrical power |
Pbus |
|||
|
PwrElecLoss |
Resistive power loss |
P电子 |
||
PwrMechLoss |
Mechanical power loss |
P机械 |
什么时候端口配置被设定为
什么时候端口配置被设定为
|
||
|
pwrmtrstored |
Stored motor power |
Pstr |
|
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
输入
Output
Parameters
参考
[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.