feat: 添加雷电波阻抗和导线波阻抗参数支持

在参数类中添加z_0和z_c字段,并在计算最小雷电流时使用这些参数
更新前端表单和类型定义以支持新参数
修改webview应用以接收并处理新参数
This commit is contained in:
dmy
2026-03-03 16:51:28 +08:00
parent fd6684c884
commit 4aa56c71d5
5 changed files with 29 additions and 5 deletions

View File

@@ -332,6 +332,8 @@ class EGMWebApp:
para.voltage_n = int(optional_data.get('voltage_n', 3))
para.max_i = float(optional_data.get('max_i', 200))
para.z_0 = float(parameter_data.get('z_0', 300))
para.z_c = float(parameter_data.get('z_c', 251))
# 设置 ac_or_dc 参数
ac_or_dc_value = str(parameter_data.get('ac_or_dc', 'AC'))