프로젝트

일반

사용자정보

개정판 638dd2dd

ID638dd2dd8a9ea9f4694f7c66305c7b5ed033155c
상위 d9aa8d67
하위 c46ad1e0

김연진이(가) 약 5년 전에 추가함

issue #1048 화면/메뉴/툴바 개발

Change-Id: I2ffdef915e4f767d72c49eeb9131024ff30cc3c6

차이점 보기:

HYTOS/HYTOS/Calculation.py
51 51
                        hmb.inside_pipe_size = self.convert_pipe_diameter(hmb.inside_pipe_size)
52 52
                    if hmb.straight_length:
53 53
                        hmb.straight_length = self.convert_length(hmb.straight_length)
54
                    if hmb.equivalent_length:
55
                        hmb.equivalent_length = self.convert_length(hmb.equivalent_length)
54 56
                    if hmb.straight_length:
55 57
                        hmb.straight_length = self.convert_length(hmb.straight_length)
56 58
                    if hmb.equivalent_length_input:
......
639 641
            self.calculation_Mixed()
640 642
        '''
641 643

  
642
    def get_equivalent_length(self):
643
        if self._hmb.equivalent_length_input:
644
            return self._hmb.equivalent_length_input
645
        else:
646
            return self._hmb.equivalent_length_cal
647

  
648 644
    def validation_check_vapor(self):
649 645
        result = False
650 646

  
......
682 678
        result = False
683 679

  
684 680
        # 1.  Equivalent Length
685
        equivalent_length = self.get_equivalent_length()
686
        if equivalent_length is None:
681
        if self._hmb.equivalent_length is None:
687 682
            message = 'The equivalent length of stream <{}> is not inputted.'.format(self._hmb.stream_no)
688 683
            App.mainWnd().addMessage.emit(MessageType.Information, message)
689 684
            return result
......
1004 999
            elif length_unit == 'mm':
1005 1000
                self._hmb.pressure_drop = round(dp / 1000, 3)
1006 1001

  
1007
            equivalent_length = self.get_equivalent_length()
1008 1002
            # '100m 당 압력강하를 상당길이에 맞춰서 전체 압력강하로 넣어줌 ..
1009
            self._hmb.pressure_drop_friction = round(self._hmb.pressure_drop / 100 * equivalent_length, 3)
1003
            self._hmb.pressure_drop_friction = round(self._hmb.pressure_drop / 100 * self._hmb.equivalent_length, 3)
1010 1004

  
1011 1005
        except Exception as ex:
1012 1006

  
......
1216 1210
        elif length_unit == 'mm':
1217 1211
            self._hmb.pressure_drop = round(dp / 1000, 3)
1218 1212

  
1219
        equivalent_length = self.get_equivalent_length()
1220 1213
        # '100m 당 압력강하를 상당길이에 맞춰서 전체 압력강하로 넣어줌 ..
1221
        self._hmb.pressure_drop_friction = round(self._hmb.pressure_drop / 100 * equivalent_length, 3)
1214
        self._hmb.pressure_drop_friction = round(self._hmb.pressure_drop / 100 * self._hmb.equivalent_length, 3)
1222 1215

  
1223 1216
        # 'friction factor는 필요없음
1224 1217
        self._hmb.friction_factor = None

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)