一、某直流电机固有机械特性曲线绘制程序
import numpy as np
import matplotlib.pyplot as plt
U_N=220;P_N=22;I_N=115;
n_N=1500;R_a=0.18;R_f=628;
Te=np.linspace(1,1000,1000)
Ia_N=I_N-U_N/R_f
C_EPhi_N=(U_N-R_a*Ia_N)/n_N
C_TPhi_N=9.55*C_EPhi_N
n=U_N/C_EPhi_N-R_a/(C_EPhi_N)*(Te/C_TPhi_N)
T2_N=9550*P_N/n_N
plt.plot(n,Te)
plt.show()
二、某三相异步电机固有机械特性曲线绘制程序
import numpy as np
import matplotlib.pyplot as plt
m1=3;U=380;ns=1000;pi=3.14;
R1=2.08;R2=1.53;X1=3.12;X2=4.25;
Os=2*pi*ns/60
n=np.linspace(0,1000,2000)
T=np.linspace(1,300,600)
T=(m1/Os)*(U**2*R2*ns/(ns-n))/((R1+R2*ns/(ns-n))**2+(X1+X2)**2);
plt.title('n-T')
plt.xlabel(' T (N.m)')
plt.ylabel(' n (r/min)')
plt.plot(T,n)
plt.show()