개정판 60d80d98
#1263 Unit 변경
Density Unit 변경시 버그 수정
Change-Id: Ia7bdb376413d0df03847f376c6243c0caf353f9e
HYTOS/HYTOS/Shapes/EngineeringLoopItem.py | ||
---|---|---|
1662 | 1662 |
# 'g 구하기 (kg/m2/s) |
1663 | 1663 |
g = mass / 3600 / (3.1415 * ida ** 2 / 4) |
1664 | 1664 |
|
1665 |
density2 = self.density_elevations[self.items[i]] |
|
1665 |
density_unit = self.units['Density'] |
|
1666 |
if density_unit == 'kg/m3': |
|
1667 |
density2 = self.density_elevations[self.items[i]] |
|
1668 |
else: |
|
1669 |
density2 = self.density_elevations[self.items[i]] * 16.0185 # lb/ft3 |
|
1670 |
|
|
1666 | 1671 |
# '속도 계산 (m/s) |
1667 | 1672 |
velocity = 4 * mass / density2 / 3.1415 / ida ** 2 / 3600 |
1668 | 1673 |
|
내보내기 Unified diff