并励直流电动机仿真设计

import tkinter as tk

#构造模型
def create_model():
    #从UI获取参数
    PN1 = float(Entry_PN.get())*1000
    UN1 = float(Entry_UN.get())
    nN1 = float(Entry_nN.get())
    IN1 = float(Entry_IN.get())
    R1  = float(Entry_R.get())
    Ra1 = float(Entry_Ra.get())
    Rf1 = float(Entry_Rf.get())
    
    #直流电机工作特性计算
    T=round(9.55*PN1/nN1,2)
    Ts=str(T)
    If=UN1/Rf1
    Ia=IN1-If
    CeF=(UN1-Ia*Ra1)/nN1
    TE=round(9.55*CeF*Ia,2)
    TEs=str(TE)
    EF=round(PN1/UN1/IN1*100,2)
    EFs=str(EF)
    NN=int(UN1/CeF)
    NNs=str(NN)
    RN=int((UN1-Ia*(Ra1+R1))/CeF)
    RNs=str(RN)
    
    #UI界面输出以及位置定位
    T_label_show = tk.Label(window, text="额定输出转矩:                                           N·m")
    T_label_show.place(x=120, y=320)
    T_label_show = tk.Label(window, text=str(Ts))
    T_label_show.place(x=300, y=320)
    
    TE_label_show = tk.Label(window, text="额定负载电磁转矩:                                     N·m")
    TE_label_show.place(x=120, y=360
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Metaphysicist.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值