这是一个python的电子库。
electrical的Python项目详细描述
电气
这是日语版python的电子库。 Japanese README。☆日本語説明.
开始
用pip
安装。
pip install electrical
许可证
此示例代码是根据MIT License授权的。
如何使用
让我们从导入电气库开始。
from electrical.electrical import AC
ac = AC()
print("-------------------------")
# 線間電圧=480V、消費電力(3相)=2MW、力率=1のときのΔ結線の各パラメータ計算
result1 = ac.phase3(El=480., P3p=2000000., Cos=1., cmd="El_P3p_delta")
ac.show_result(result1, "three_phase")
print("-------------------------")
# 線間電圧=480V、抵抗(1相)=0.345Ω、リアクタンス=0ΩのときのΔ結線の各パラメータ計算
result2 = ac.phase3(El=480., Rp=0.345, Xp=0., cmd="El_Rp_Xp_delta")
ac.show_result(result2, "three_phase")
print("-------------------------")
# 線電流=2405.3A、インピーダンス(1相)=0.346Ω、力率=1のときのΔ結線の各パラメータ計算
result3 = ac.phase3(Il=2405.3, Zp=0.346, Cos=1., cmd="Il_Zp_delta")
ac.show_result(result3, "three_phase")
print("-------------------------")
# 線電流=2405.5A、抵抗(1相)=0.346Ω、リアクタンス=0ΩのときのΔ結線の各パラメータ計算
result4 = ac.phase3(Il=2405.5, Rp=0.3456, Xp=0., cmd="Il_Rp_Xp_delta")
ac.show_result(result4, "three_phase")
print("-------------------------")
result5 = ac.phase3(Il=2405.6, El=480., Cos=1., cmd="Il_El_delta")
ac.show_result(result5, "three_phase")
print("-------------------------")
result6 = ac.phase3(Il=2405.6, P3p=2000000., Cos=1., cmd="Il_P3p_delta")
ac.show_result(result6, "three_phase")
print("-------------------------")
"""
-------------------------
Il[A] = 2405.626121623441
El[V] = 480.0
P3p(W) = 2000000.0
Pp(W) = 666666.6666666666
Cosθ[rad] = 1.0
Ep[V] = 480.0
Ip[A] = 1388.8888888888891
Zp[Ω] = 0.34559999999999996
Rp[Ω] = 0.34559999999999996
Xp[Ω] = 0.0
-------------------------
Il[A] = 2409.8098192262646
El[V] = 480.0
P3p(W) = 2003478.2608695654
Pp(W) = 667826.0869565218
Cosθ[rad] = 1.0
Ep[V] = 480.0
Ip[A] = 1391.3043478260875
Zp[Ω] = 0.345
Rp[Ω] = 0.345
Xp[Ω] = 0.0
-------------------------
Il[A] = 2405.3
El[V] = 480.4904084587052
P3p(W) = 2001771.9591400002
Pp(W) = 667257.3197133334
Cosθ[rad] = 1.0
Ep[V] = 480.4904084587052
Ip[A] = 1388.700602481807
Zp[Ω] = 0.346
Rp[Ω] = 0.346
Xp[Ω] = 0.0
-------------------------
Il[A] = 2405.5
El[V] = 479.9748346683189
P3p(W) = 1999790.2944000005
Pp(W) = 666596.7648000001
Cosθ[rad] = 1.0
Ep[V] = 479.9748346683189
Ip[A] = 1388.816072535645
Zp[Ω] = 0.3456
Rp[Ω] = 0.3456
Xp[Ω] = 0.0
-------------------------
Il[A] = 2405.6
El[V] = 480.0
P3p(W) = 1999978.2828900917
Pp(W) = 666659.4276300306
Cosθ[rad] = 1.0
Ep[V] = 480.0
Ip[A] = 1388.8738075625638
Zp[Ω] = 0.3456037527573416
Rp[Ω] = 0.3456037527573416
Xp[Ω] = 0.0
-------------------------
Il[A] = 2405.6
El[V] = 480.0052121629745
P3p(W) = 2000000.0
Pp(W) = 666666.6666666666
Cosθ[rad] = 1.0
Ep[V] = 480.0052121629745
Ip[A] = 1388.8738075625638
Zp[Ω] = 0.34560750555543324
Rp[Ω] = 0.34560750555543324
Xp[Ω] = 0.0
-------------------------
"""