1.首先取一组电机参数(某变频器自己测得的参数):
- 定子电阻:11.421欧
- 转子电阻:7.553欧
- 漏感抗:42.90 毫亨
- 互感抗:553.9毫亨
- 空载电流:1.17安。
2. 利用T型等效电路公式绘图
import numpy as np
import matplotlib.pyplot as plt
# 设置已知参数值
rm = 11.421
lm = 553.9e-3
r2 = 7.553
l2 = 42.90e-3
freq_in = 50
# 设置频率值范围和步长
s = np.linspace(1e-6, 0.05, 1000)
im = 380/(rm+(lm+l2)*2*np.pi*freq_in*1j)/np.sqrt(3);
# 计算并绘制曲线
curr_in = (im + im*(rm+(lm+l2)*2*np.pi*freq_in*1j)/(r2 + l2*2*np.pi*freq_in*1j + (1-s)/s*r2))
plt.plot(np.abs(curr_in), s)
plt.xlabel('Absolute value of curr_in')
plt.ylabel('Power out')
plt.title('s of rated power is 2A, the max Y-axis = 5%(but engine''s rated s = 2%, I think it is wrong.)')
# 绘制横线
horiz_line = plt.axhline(y=0.05, color='r', linestyle='--', label='"s" == rated power of engine')
# 添加图例
plt.legend()
plt.show()
3.变频电机的不同频率下的输入电流与转差率曲线
变频电机如果能维持V/F的线性变化,稳住磁通。空载电流不变,此时的输入电流与转差率曲线,这张图大概率是错的,但是我不知道原因。
相关代码:
import numpy as np
import matplotlib.pyplot as plt
# 设置已知参数值
rm = 11.421
lm = 553.9e-3
r2 = 7.553
l2 = 42.90e-3
freq_in = [10,20,35,50,60]
#another engine parameters
# https://www.doc88.com/p-9744150601021.html 《三相异步电机参数辨识系统的研究》
R1 = 2.71
X1 = 2.4e-3
R2 = 1.98
X2 = 5.7e-3
XM = 150.7e-3
V50 = 50
# 设置频率值范围和步长
s = np.linspace(1e-6, 0.05, 1000)
# 计算并绘制曲线
# 画图
plt.figure(figsize=(8,6))
abs_vol = []
# 循环绘制四条曲线
for i, freq in enumerate(freq_in):
im = 380.0*freq/50/(rm+(lm+l2)*2*np.pi*freq*1j)/np.sqrt(3);
curr_in = (im + im*(rm+(lm+l2)*2*np.pi*freq*1j)/(r2 + l2*2*np.pi*freq*1j + (1-s)/s*r2))
plt.plot(np.abs(curr_in), s, label = f'{freq}Hz')
plt.xlabel('Absolute value of curr_in')
plt.ylabel('Power out')
plt.title('s - curr_in figure')
# 绘制横线
horiz_line = plt.axhline(y=0.05, color='r', linestyle='--', label='"s" == rated power of engine')
# 调整子图的间距并显示
plt.legend()
plt.tight_layout()
plt.show()