From 6a123b621306a6c95f7bdb2fc908c7e7e8cae70e Mon Sep 17 00:00:00 2001 From: n3040 Date: Wed, 22 Dec 2021 16:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=8E=8B=E4=B9=9F=E4=BB=8E=E5=A4=96?= =?UTF-8?q?=E9=83=A8=E8=AF=BB=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 0d463f6..ce4be50 100644 --- a/main.py +++ b/main.py @@ -48,6 +48,7 @@ def egm(): para.h_arm = toml_parameter["h_arm"] para.altitude = toml_parameter["altitude"] para.max_i = toml_parameter["max_i"] + para.rated_voltage = toml_parameter["rated_voltage"] toml_optional = toml_dict["optional"] para.voltage_n = toml_optional["voltage_n"] # 工作电压分成多少份来计算 ######################################################### @@ -296,7 +297,14 @@ def egm(): # if abs(calculus-0.05812740052770032)<1e-5: # abc=123 # pass - n_sf = 2 * ng / 10 * calculus * arc_possibility(750, insulator_c_len) + rated_voltage = para.rated_voltage + n_sf = ( + 2 + * ng + / 10 + * calculus + * arc_possibility(rated_voltage, insulator_c_len) + ) avr_n_sf += n_sf / voltage_n n_sf_phases[phase_conductor_foo][u_bar] = n_sf logger.info(f"工作电压为{u_ph:.2f}kV时,跳闸率是{n_sf:.6}")