Exemplo n.º 1
0
    def aluminium_cable_steel_reinforced(self, aluminium_type):
        self.aluminium_cable_steel_reinforced_type = aluminium_type
        if self.project_chapter6_type == ["山地"]:
            if self.aluminium_cable_steel_reinforced_type == "LGJ_240_30":
                self.aluminium_cable_steel_reinforced_length = self.single_circuit * 3 * 1.05 + self.double_circuit * 6 * 1.05
                self.aluminium_cable_steel_reinforced_weight = 0.922
                self.aluminium_cable_steel_reinforced_length_weight = round_up(
                    self.aluminium_cable_steel_reinforced_length *
                    self.aluminium_cable_steel_reinforced_weight, 2)
        elif self.project_chapter6_type == ['平地']:
            if self.aluminium_cable_steel_reinforced_type == "LGJ_240_30":
                self.aluminium_cable_steel_reinforced_length = self.single_circuit * 3 * 1.05 + self.double_circuit * 6 * 1.05
                self.aluminium_cable_steel_reinforced_weight = 0.922
                self.aluminium_cable_steel_reinforced_length_weight = round_up(
                    self.aluminium_cable_steel_reinforced_length *
                    self.aluminium_cable_steel_reinforced_weight, 2)

        # return self.aluminium_cable_steel_reinforced_length_weight


# project_chapter6_type = ['山地']
# project02 = WireRod(project_chapter6_type, 19, 22, 8, 1.5, 40, 6)
# project02.aluminium_cable_steel_reinforced("LGJ_240_30")
# print(project02.aluminium_cable_steel_reinforced_length_weight)
#
# project_chapter6_type = ['平地']
# project02 = WireRod(project_chapter6_type, 25.3, 23.6, 1.55, 3, 31, 5)
# project02.aluminium_cable_steel_reinforced("LGJ_240_30")
# print(project02.aluminium_cable_steel_reinforced_length_weight)
Exemplo n.º 2
0
    def sum_cal_tower_base(self, tower_base_li, c25_unit_li, steel_unit_li,
                           foot_bolt_li):
        self.c25_unit_list = c25_unit_li
        self.used_numbers_base_type_list = tower_base_li
        self.steel_unit_list = steel_unit_li
        self.foot_bolt_list = foot_bolt_li
        for i in range(0, len(self.c25_unit_list)):
            TowerBase.electrical_insulator_model(
                self, self.used_numbers_base_type_list[i],
                self.c25_unit_list[i], self.steel_unit_list[i],
                self.foot_bolt_list[i])

        self.used_numbers_base_sum = round_up(
            (self.used_numbers_base_zjc1 + self.used_numbers_base_zjc2 +
             self.used_numbers_base_jjc1 + self.used_numbers_base_jjc2 +
             self.used_numbers_base_tw1 + self.used_numbers_base_tw2), 2)
        self.c25_sum = round_up(
            (self.c25_sum_zjc1 + self.c25_sum_zjc2 + self.c25_sum_jjc1 +
             self.c25_sum_jjc2 + self.c25_sum_tw1 + self.c25_sum_tw2 +
             self.c25_sum_layer), 2)
        self.steel_sum = round_up(
            (self.steel_sum_zjc1 + self.steel_sum_zjc2 + self.steel_sum_jjc1 +
             self.steel_sum_jjc2 + self.steel_sum_tw1 + self.steel_sum_tw2 +
             self.steel_sum_layer), 2)

        self.foot_bolt_sum = round_up(
            (self.foot_bolt_sum_zjc1 + self.foot_bolt_sum_zjc2 +
             self.foot_bolt_sum_jjc1 + self.foot_bolt_sum_jjc2), 2)
Exemplo n.º 3
0
    def tower_type_models(self, tower_type, tower_type_high, tower_weight,
                          tower_height, tower_foot_distance):
        self.tower_type = tower_type
        self.tower_type_high = tower_type_high
        self.tower_weight = tower_weight
        self.tower_height = tower_height
        self.tower_foot_distance = tower_foot_distance

        if self.project_chapter6_type == ["山地"]:
            if self.tower_type == "单回耐张塔":

                if self.tower_type_high == "J2_24" or self.tower_type_high == "J4_24":
                    self.used_numbers = round_up(self.single_circuit / 3, 0)
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2
                    if self.tower_type_high == "J2_24":
                        self.used_numbers_single_J2_24 = self.used_numbers
                    elif self.tower_type_high == "J4_24":
                        self.used_numbers_single_J4_24 = self.used_numbers
                elif self.tower_type_high == "FS_18":
                    self.used_numbers = round_up(self.line_loop_number / 2,
                                                 0) + 1
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2
                    self.used_numbers_single_FS_18 = self.used_numbers

            if self.tower_type == "单回直线塔":
                if self.tower_type_high == "Z2_30" or self.tower_type_high == "ZK_42":
                    self.used_numbers = round_up(
                        self.single_circuit * 1000 / 250 / 2, 0)
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2
                    if self.tower_type_high == "Z2_30":
                        self.used_numbers_single_Z2_30 = self.used_numbers
                    elif self.tower_type_high == "ZK_42":
                        self.used_numbers_single_ZK_42 = self.used_numbers

            if self.tower_type == "双回耐张塔":
                if self.tower_type_high == "SJ2_24" or self.tower_type_high == "SJ4_24":
                    self.used_numbers = round_up(self.double_circuit / 3, 0)
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2

                    if self.tower_type_high == "SJ2_24":
                        self.used_numbers_double_SJ2_24 = self.used_numbers
                    elif self.tower_type_high == "SJ4_24":
                        self.used_numbers_double_SJ4_24 = self.used_numbers

            if self.tower_type == "双回直线塔":
                if self.tower_type_high == "SZ2_30" or self.tower_type_high == "SZK_42":
                    self.used_numbers = round_up(
                        self.double_circuit * 1000 / 220 / 2, 0)
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2

                    if self.tower_type_high == "SZ2_30":
                        self.used_numbers_double_SZ2_30 = self.used_numbers
                    elif self.tower_type_high == "SZK_42":
                        self.used_numbers_double_SZK_42 = self.used_numbers

            if self.tower_type == "铁塔电缆支架":
                if self.tower_type_high == "角钢":
                    self.used_numbers = self.tur_number
                    self.used_numbers_angle_steel = self.used_numbers
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = 0

        if self.project_chapter6_type == ["平地"]:
            if self.tower_type == "单回耐张塔":
                if self.tower_type_high == "J2_24" or self.tower_type_high == "J4_24":
                    self.used_numbers = round_up(self.single_circuit / 4, 0)
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2
                    if self.tower_type_high == "J2_24":
                        self.used_numbers_single_J2_24 = self.used_numbers
                    elif self.tower_type_high == "J4_24":
                        self.used_numbers_single_J4_24 = self.used_numbers
                elif self.tower_type_high == "FS_18":
                    self.used_numbers = round_up(self.line_loop_number / 2,
                                                 0) + 1
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2
                    self.used_numbers_single_FS_18 = self.used_numbers

            if self.tower_type == "单回直线塔":
                if self.tower_type_high == "Z2_30" or self.tower_type_high == "ZK_42":
                    if self.tower_type_high == "Z2_30":
                        self.used_numbers = round_up(
                            self.single_circuit * 1000 * 0.8 / 260, 0)
                        self.used_numbers_single_Z2_30 = self.used_numbers
                    elif self.tower_type_high == "ZK_42":
                        self.used_numbers = round_up(
                            self.single_circuit * 1000 * 0.2 / 290, 0)
                        self.used_numbers_single_ZK_42 = self.used_numbers
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2
            if self.tower_type == "双回耐张塔":
                if self.tower_type_high == "SJ2_24" or self.tower_type_high == "SJ4_24":
                    self.used_numbers = round_up(self.double_circuit / 4, 0)
                    if self.tower_type_high == "SJ2_24":
                        self.used_numbers_double_SJ2_24 = self.used_numbers
                    elif self.tower_type_high == "SJ4_24":
                        self.used_numbers_double_SJ4_24 = self.used_numbers
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2

            if self.tower_type == "双回直线塔":
                if self.tower_type_high == "SZ2_30" or self.tower_type_high == "SZK_42":
                    if self.tower_type_high == "SZ2_30":
                        self.used_numbers = round_up(
                            self.double_circuit * 1000 * 0.6 / 280, 0)
                        self.used_numbers_double_SZ2_30 = self.used_numbers
                    elif self.tower_type_high == "SZK_42":
                        self.used_numbers = round_up(
                            self.double_circuit * 1000 * 0.4 / 280, 0)
                        self.used_numbers_double_SZK_42 = self.used_numbers
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = self.used_numbers * self.tower_foot_distance**2
            if self.tower_type == "铁塔电缆支架":
                if self.tower_type_high == "角钢":
                    self.used_numbers = self.tur_number
                    self.used_numbers_angle_steel = self.used_numbers
                    self.tower_number_weight = self.tower_weight * self.used_numbers
                    self.tower_area = 0
Exemplo n.º 4
0
    def electrical_insulator_model(self, base_type, c25_unit, steel_unit,
                                   foot_bolt_unit):
        self.used_numbers_base_type = base_type
        self.c25_unit = c25_unit
        self.steel_unit = steel_unit
        self.foot_bolt_unit = foot_bolt_unit

        if self.project_chapter6_type == ["山地"]:
            if self.used_numbers_base_type == "ZJC1":
                self.used_numbers_base_zjc1 = round_up(
                    (self.used_numbers_single_Z2_30 +
                     self.used_numbers_double_SZ2_30) / 2, 0)
                self.c25_unit_zjc1 = self.c25_unit
                self.c25_sum_zjc1 = self.used_numbers_base_zjc1 * self.c25_unit_zjc1
                self.steel_unit_zjc1 = self.steel_unit
                self.steel_sum_zjc1 = self.used_numbers_base_zjc1 * self.steel_unit_zjc1 / 1000
                self.foot_bolt_unit_zjc1 = self.foot_bolt_unit
                self.foot_bolt_sum_zjc1 = self.used_numbers_base_zjc1 * self.foot_bolt_unit_zjc1

            if self.used_numbers_base_type == "ZJC2":
                self.used_numbers_base_zjc2 = round_up(
                    (self.used_numbers_single_ZK_42 +
                     self.used_numbers_double_SZK_42) / 2, 0)
                self.c25_unit_zjc2 = self.c25_unit
                self.c25_sum_zjc2 = self.used_numbers_base_zjc2 * self.c25_unit_zjc2
                self.steel_unit_zjc2 = self.steel_unit
                self.steel_sum_zjc2 = self.used_numbers_base_zjc2 * self.steel_unit_zjc2 / 1000
                self.foot_bolt_unit_zjc2 = self.foot_bolt_unit
                self.foot_bolt_sum_zjc2 = self.used_numbers_base_zjc2 * self.foot_bolt_unit_zjc2

            if self.used_numbers_base_type == "JJC1":
                self.used_numbers_base_jjc1 = self.used_numbers_single_J2_24 + self.used_numbers_double_SJ2_24
                self.c25_unit_jjc1 = self.c25_unit
                self.c25_sum_jjc1 = self.used_numbers_base_jjc1 * self.c25_unit_jjc1
                self.steel_unit_jjc1 = self.steel_unit
                self.steel_sum_jjc1 = self.used_numbers_base_jjc1 * self.steel_unit_jjc1 / 1000
                self.foot_bolt_unit_jjc1 = self.foot_bolt_unit
                self.foot_bolt_sum_jjc1 = self.used_numbers_base_jjc1 * self.foot_bolt_unit_jjc1

            if self.used_numbers_base_type == "JJC2":
                self.used_numbers_base_jjc2 = self.used_numbers_single_J4_24 + self.used_numbers_single_FS_18 \
                                              + self.used_numbers_double_SJ4_24
                self.c25_unit_jjc2 = self.c25_unit
                self.c25_sum_jjc2 = self.used_numbers_base_jjc2 * self.c25_unit_jjc2
                self.steel_unit_jjc2 = self.steel_unit
                self.steel_sum_jjc2 = self.used_numbers_base_jjc2 * self.steel_unit_jjc2 / 1000
                self.foot_bolt_unit_jjc2 = self.foot_bolt_unit
                self.foot_bolt_sum_jjc2 = self.used_numbers_base_jjc2 * self.foot_bolt_unit_jjc2

            if self.used_numbers_base_type == "TW1":
                self.used_numbers_base_tw1 = self.used_numbers_single_Z2_30 + self.used_numbers_double_SZ2_30 \
                                             - self.used_numbers_base_zjc1
                self.c25_unit_tw1 = self.c25_unit
                self.c25_sum_tw1 = round_up(
                    (self.used_numbers_base_tw1 * self.c25_unit_tw1), 2)
                self.steel_unit_tw1 = self.steel_unit
                self.steel_sum_tw1 = self.used_numbers_base_tw1 * self.steel_unit_tw1 / 1000
                self.foot_bolt_unit_tw1 = self.foot_bolt_unit
                self.foot_bolt_sum_tw1 = self.used_numbers_base_tw1 * self.foot_bolt_unit_tw1

            if self.used_numbers_base_type == "TW2":
                self.used_numbers_base_tw2 = self.used_numbers_single_ZK_42 + self.used_numbers_double_SZK_42 \
                                             - self.used_numbers_base_zjc2
                self.c25_unit_tw2 = self.c25_unit
                self.c25_sum_tw2 = round_up(
                    (self.used_numbers_base_tw2 * self.c25_unit_tw2), 2)
                self.steel_unit_tw2 = self.steel_unit
                self.steel_sum_tw2 = self.used_numbers_base_tw2 * self.steel_unit_tw2 / 1000
                self.foot_bolt_unit_tw2 = self.foot_bolt_unit
                self.foot_bolt_sum_tw2 = self.used_numbers_base_tw2 * self.foot_bolt_unit_tw2

            if self.used_numbers_base_type == "基础垫层":
                self.used_numbers_base_layer = self.sum_used_numbers
                self.c25_unit_layer = self.c25_unit
                self.c25_sum_layer = self.used_numbers_base_layer * self.c25_unit_layer
                self.steel_unit_layer = self.steel_unit
                self.steel_sum_layer = self.used_numbers_base_layer * self.steel_unit_layer / 1000
                self.foot_bolt_unit_layer = self.foot_bolt_unit
                self.foot_bolt_sum_layer = self.used_numbers_base_layer * self.foot_bolt_unit_layer

        if self.project_chapter6_type == ["平地"]:
            if self.used_numbers_base_type == "ZJC1":
                self.used_numbers_base_zjc1 = round_up(
                    (self.used_numbers_single_Z2_30 +
                     self.used_numbers_double_SZ2_30) * 0.6, 0)
                self.c25_unit_zjc1 = self.c25_unit
                self.c25_sum_zjc1 = self.used_numbers_base_zjc1 * self.c25_unit_zjc1
                self.steel_unit_zjc1 = self.steel_unit
                self.steel_sum_zjc1 = self.used_numbers_base_zjc1 * self.steel_unit_zjc1 / 1000
                self.foot_bolt_unit_zjc1 = self.foot_bolt_unit
                self.foot_bolt_sum_zjc1 = self.used_numbers_base_zjc1 * self.foot_bolt_unit_zjc1

            if self.used_numbers_base_type == "ZJC2":
                self.used_numbers_base_zjc2 = round_up(
                    (self.used_numbers_single_ZK_42 +
                     self.used_numbers_double_SZK_42) * 0.6, 0)
                self.c25_unit_zjc2 = self.c25_unit
                self.c25_sum_zjc2 = self.used_numbers_base_zjc2 * self.c25_unit_zjc2
                self.steel_unit_zjc2 = self.steel_unit
                self.steel_sum_zjc2 = self.used_numbers_base_zjc2 * self.steel_unit_zjc2 / 1000
                self.foot_bolt_unit_zjc2 = self.foot_bolt_unit
                self.foot_bolt_sum_zjc2 = self.used_numbers_base_zjc2 * self.foot_bolt_unit_zjc2

            if self.used_numbers_base_type == "JJC1":
                self.used_numbers_base_jjc1 = self.used_numbers_single_J2_24 + self.used_numbers_double_SJ2_24
                self.c25_unit_jjc1 = self.c25_unit
                self.c25_sum_jjc1 = self.used_numbers_base_jjc1 * self.c25_unit_jjc1
                self.steel_unit_jjc1 = self.steel_unit
                self.steel_sum_jjc1 = self.used_numbers_base_jjc1 * self.steel_unit_jjc1 / 1000
                self.foot_bolt_unit_jjc1 = self.foot_bolt_unit
                self.foot_bolt_sum_jjc1 = self.used_numbers_base_jjc1 * self.foot_bolt_unit_jjc1

            if self.used_numbers_base_type == "JJC2":
                self.used_numbers_base_jjc2 = self.used_numbers_single_J4_24 + self.used_numbers_single_FS_18 \
                                              + self.used_numbers_double_SJ4_24
                self.c25_unit_jjc2 = self.c25_unit
                self.c25_sum_jjc2 = self.used_numbers_base_jjc2 * self.c25_unit_jjc2
                self.steel_unit_jjc2 = self.steel_unit
                self.steel_sum_jjc2 = self.used_numbers_base_jjc2 * self.steel_unit_jjc2 / 1000
                self.foot_bolt_unit_jjc2 = self.foot_bolt_unit
                self.foot_bolt_sum_jjc2 = self.used_numbers_base_jjc2 * self.foot_bolt_unit_jjc2

            if self.used_numbers_base_type == "TW1":
                self.used_numbers_base_tw1 = self.used_numbers_single_Z2_30 + self.used_numbers_double_SZ2_30 \
                                             - self.used_numbers_base_zjc1
                self.c25_unit_tw1 = self.c25_unit
                self.c25_sum_tw1 = round_up(
                    (self.used_numbers_base_tw1 * self.c25_unit_tw1), 2)
                self.steel_unit_tw1 = self.steel_unit
                self.steel_sum_tw1 = self.used_numbers_base_tw1 * self.steel_unit_tw1 / 1000
                self.foot_bolt_unit_tw1 = self.foot_bolt_unit
                self.foot_bolt_sum_tw1 = self.used_numbers_base_tw1 * self.foot_bolt_unit_tw1

            if self.used_numbers_base_type == "TW2":
                self.used_numbers_base_tw2 = self.used_numbers_single_ZK_42 + self.used_numbers_double_SZK_42 \
                                             - self.used_numbers_base_zjc2
                self.c25_unit_tw2 = self.c25_unit
                self.c25_sum_tw2 = round_up(
                    (self.used_numbers_base_tw2 * self.c25_unit_tw2), 2)
                self.steel_unit_tw2 = self.steel_unit
                self.steel_sum_tw2 = self.used_numbers_base_tw2 * self.steel_unit_tw2 / 1000
                self.foot_bolt_unit_tw2 = self.foot_bolt_unit
                self.foot_bolt_sum_tw2 = self.used_numbers_base_tw2 * self.foot_bolt_unit_tw2

            if self.used_numbers_base_type == "基础垫层":
                self.used_numbers_base_layer = self.sum_used_numbers
                self.c25_unit_layer = self.c25_unit
                self.c25_sum_layer = self.used_numbers_base_layer * self.c25_unit_layer
                self.steel_unit_layer = self.steel_unit
                self.steel_sum_layer = self.used_numbers_base_layer * self.steel_unit_layer / 1000
                self.foot_bolt_unit_layer = self.foot_bolt_unit
                self.foot_bolt_sum_layer = self.used_numbers_base_layer * self.foot_bolt_unit_layer