개정판 b331f0ed
issue #000 : 계산식 수정
- HYTOS_Calc.hym 파일의 Module4 모듈의 equipvalent_length_l 프로시저
- HYTOS_Calc.hym 파일의 frm_K_crane 유저폼의 cmd_ok_Click 프로시저
Change-Id: I7fbe44d85b0e62b0878ebb036d760d089df06630
HYTOS/HYTOS/StreamDataDialog.py | ||
---|---|---|
1111 | 1111 |
velocity = 4 * volume / 3.1415 / ((nd * 0.0254) ** 2) / 3600 |
1112 | 1112 |
|
1113 | 1113 |
# ' 레이놀즈 넘버 구함 |
1114 |
reynolds = (nd * 0.0254) * velocity * density / viscosity |
|
1114 |
# reynolds = (nd * 0.0254) * velocity * density / viscosity |
|
1115 |
density_unit = self.ui.label_Density_Unit.text() |
|
1116 |
if density_unit == 'kg/m3': |
|
1117 |
reynolds = (nd * 0.0254) * velocity * density / viscosity |
|
1118 |
elif density_unit == 'lb/ft3': |
|
1119 |
reynolds = (nd * 0.0254) * velocity * (density * 16.0185) / viscosity |
|
1115 | 1120 |
|
1116 | 1121 |
# '마찰계수 산출 |
1117 | 1122 |
if reynolds < 2100: |
... | ... | |
1129 | 1134 |
pipe_unit = self.ui.label_Inside_Pipe_Size_Unit.text() |
1130 | 1135 |
pipe_id = float(self.ui.lineEdit_Inside_Pipe_Size.text()) |
1131 | 1136 |
if pipe_unit == 'in': |
1132 |
return round(pipe_id * total_k / friction_coefficient * 0.0254, 3) |
|
1137 |
equivalent_length_unit = self.ui.label_Equivalent_Lenght_Input_Unit.text() |
|
1138 |
if equivalent_length_unit == 'm': |
|
1139 |
return round(pipe_id * total_k / friction_coefficient * 0.0254, 3) |
|
1140 |
elif equivalent_length_unit == 'in': |
|
1141 |
return round(pipe_id * total_k / friction_coefficient * 0.0254 * 39.3701, 3) |
|
1142 |
elif equivalent_length_unit == 'ft': |
|
1143 |
return round(pipe_id * total_k / friction_coefficient * 0.0254 * 3.28084, 3) |
|
1144 |
elif equivalent_length_unit == 'yd': |
|
1145 |
return round(pipe_id * total_k / friction_coefficient * 0.0254 * 1.09361, 3) |
|
1146 |
elif equivalent_length_unit == 'mile': |
|
1147 |
return round(pipe_id * total_k / friction_coefficient * 0.0254 * 0.000621371, 3) |
|
1148 |
else: |
|
1149 |
return round(pipe_id * total_k / friction_coefficient * 0.0254 * 1000, 3) |
|
1133 | 1150 |
elif pipe_unit == 'mm': |
1134 |
return round(pipe_id * total_k / friction_coefficient / 1000, 3) |
|
1151 |
equivalent_length_unit = self.ui.label_Equivalent_Lenght_Input_Unit.text() |
|
1152 |
if equivalent_length_unit == 'm': |
|
1153 |
return round(pipe_id * total_k / friction_coefficient / 1000, 3) |
|
1154 |
elif equivalent_length_unit == 'in': |
|
1155 |
return round(pipe_id * total_k / friction_coefficient / 1000 * 39.3701, 3) |
|
1156 |
elif equivalent_length_unit == 'ft': |
|
1157 |
return round(pipe_id * total_k / friction_coefficient / 1000 * 3.28084, 3) |
|
1158 |
elif equivalent_length_unit == 'yd': |
|
1159 |
return round(pipe_id * total_k / friction_coefficient / 1000 * 1.09361, 3) |
|
1160 |
elif equivalent_length_unit == 'mile': |
|
1161 |
return round(pipe_id * total_k / friction_coefficient / 1000 * 0.000621371, 3) |
|
1162 |
else: |
|
1163 |
return round(pipe_id * total_k / friction_coefficient / 1000 * 1000, 3) |
|
1135 | 1164 |
|
1136 | 1165 |
def get_equivalent_length_vapor(self, total_k): |
1137 | 1166 |
# 마찰계수 |
내보내기 Unified diff