feat: 改进计算结果展示和雷电密度计算逻辑

优化雷电密度计算条件判断,移除冗余条件
改进前端结果展示格式,显示各导线跳闸率
移除雷暴日输入框的禁用状态
更新电压离散化份数的工具提示说明
This commit is contained in:
dmy
2026-03-03 14:54:49 +08:00
parent acf1fa1c60
commit 355fb2d689
3 changed files with 26 additions and 16 deletions

View File

@@ -218,7 +218,7 @@ def thunder_density(i, td, ip_a, ip_b): # 雷电流幅值密度函数
if td <= 20:
r = -(10 ** (-i / 44)) * math.log(10) * (-1 / 44) # 雷暴日20d
return r
if td <= 40 and td>20:
if td>20:
r = -(10 ** (-i / 88)) * math.log(10) * (-1 / 88) # 雷暴日40d
return r
raise Exception("检查雷电参数!")