- 积分
- 28504
- 回帖
- 0
- 西莫币
-
- 贡献
-
- 威望
-
- 存款
-
- 阅读权限
- 120
- 最后登录
- 1970-1-1
该用户从未签到
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
最近杂务多,编的有点慢{:soso__651267b6cf5854bf-549f46f2ad86626a-f2e77041dc633e3f6195ef8db5b323fc.jpg_2:}
异步启动永磁同步电机设计程序 (vb源码分享)福利4:工作特性计算
Public Sub performance()
Dim i As Integer
For i = 0 To 565 '!!!!!!!!!!应为1800,调试用(只算到56.5度)!!!!!!
Theta = i / 10
ePerformance
mPerformance
pPerformance
outPerformance (i)
Next i
hPerformance
bPerformance
End Sub
' Pmcalc三级程序(performance子程序)************
Public Sub ePerformance()
'调试设置变量
'Theta = 56.5
id = (r1 * un * Sin(deg2red(Theta)) + xq * (e0 - un * Cos(deg2red(Theta)))) / (r1 ^ 2 + xq * xd)
iq = (xd * un * Sin(deg2red(Theta)) - r1 * (e0 - un * Cos(deg2red(Theta)))) / (r1 ^ 2 + xq * xd)
i1 = (id ^ 2 + iq ^ 2) ^ 0.5
Psi = red2deg(Atn(id / iq))
fai = Theta - Psi
cosfai = Cos(deg2red(fai))
edelte = ((e0 - id * xad) ^ 2 + (iq * xaq) ^ 2) ^ 0.5
Public Sub mPerformance()
fai_delte = edelte / (4.44 * freq * kdp * n * kfai)
b_delted = (fai_delte * 10 ^ 4) / (Alphai * tau1 * lef)
b_t1d = b_delted * (t1 * lef) / (bt1 * kfe * l1)
b_j1d = (fai_delte * 10 ^ 4) / (2 * l1 * kfe * hj1)
End Sub
Public Sub pPerformance() '拟合公式,可与Y2手册对比
Select Case pole * 2
Case 2
Select Case ip
Case "IP23"
pfw = 5.5 * (3 / pole) ^ 2 * d2 ^ 3 * 10 ^ -3
Case Else
pfw = 13 * (1 - d1 * 10 ^ -2) * (3 / pole) ^ 2 * d1 ^ 4 * 10 ^ -5
End Select
Case Else
Select Case ip
Case "IP23"
pfw = 6.5 * (3 / pole) ^ 2 * d2 ^ 3 * 10 ^ -3
Case Else
pfw = (3 / pole) ^ 2 * d1 ^ 4 * 10 ^ -4
End Select
End Select
p1 = m / (xd * xq + r1 ^ 2) * (e0 * un * (xq * Sin(deg2red(Theta)) - r1 * Cos(deg2red(Theta))) + r1 * un ^ 2 + 0.5 * un ^ 2 * (xd - xq) * Sin(2 * deg2red(Theta)))
pcu = m * i1 ^ 2 * r1
pt1d = b2p(b_t1d)
pj1d = b2p(b_j1d)
pfe = k1 * pt1d * vt1 * rhofe * 10 ^ -3 + k2 * pj1d * vj1 * rhofe * 10 ^ -3
ps = (i1 / in_) ^ 2 * psn_x * pn * 10 ^ 3
sigmap = pcu + pfe + pfw + ps
p2 = p1 - sigmap
eta = p2 / p1
End Sub
Public Sub outPerformance(ByVal i As Integer)
'!!!!!!!!!!!!!!暂时写入数组,输出到txt,或调用数据库!!!!!!!!!!!!!!!!!!!
ReDim Preserve array_performance(7, i)
array_performance(0, i) = Theta
array_performance(1, i) = p1
array_performance(2, i) = p2
array_performance(3, i) = i1
array_performance(4, i) = id
array_performance(5, i) = iq
array_performance(6, i) = eta
array_performance(7, i) = cosfai
End Sub |
评分
-
查看全部评分
|