Exemple #1
0
    def zero_all_text_fields(self):
        try:
            profile_, surfaceType_, xz_mirror_, xy_mirror_, yz_mirror_, rot_x_, rot_y_, rot_z_, root_le_pos_x_, root_le_pos_y_, root_le_pos_z_, \
            section_1_x_, section_2_x_, section_3_x_, section_4_x_, section_5_x_, \
            section_1_y_, section_2_y_, section_3_y_, section_4_y_, section_5_y_, \
            section_1_z_, section_2_z_, section_3_z_, section_4_z_, section_5_z_, \
            section_1_chord_, section_2_chord_, section_3_chord_, section_4_chord_, \
            section_5_chord_, section_1_twist_angle_, section_2_twist_angle_, \
            section_3_twist_angle_, section_4_twist_angle_, section_5_twist_angle_ = read_surface_data(self._name)

            self.show_default_values(
                profile_=profile_,
                surfaceType_=surfaceType_,
                xz_mirror_=xz_mirror_,
                xy_mirror_=xy_mirror_,
                yz_mirror_=yz_mirror_,
                rot_x_=rot_x_,
                rot_y_=rot_y_,
                rot_z_=rot_z_,
                root_le_pos_x_=root_le_pos_x_,
                root_le_pos_y_=root_le_pos_y_,
                root_le_pos_z_=root_le_pos_z_,
                section_1_x_=section_1_x_,
                section_2_x_=section_2_x_,
                section_3_x_=section_3_x_,
                section_4_x_=section_4_x_,
                section_5_x_=section_5_x_,
                section_1_y_=section_1_y_,
                section_2_y_=section_2_y_,
                section_3_y_=section_3_y_,
                section_4_y_=section_4_y_,
                section_5_y_=section_5_y_,
                section_1_z_=section_1_z_,
                section_2_z_=section_2_z_,
                section_3_z_=section_3_z_,
                section_4_z_=section_4_z_,
                section_5_z_=section_5_z_,
                section_1_chord_=section_1_chord_,
                section_2_chord_=section_2_chord_,
                section_3_chord_=section_3_chord_,
                section_4_chord_=section_4_chord_,
                section_5_chord_=section_5_chord_,
                section_1_twist_angle_=section_1_twist_angle_,
                section_2_twist_angle_=section_2_twist_angle_,
                section_3_twist_angle_=section_3_twist_angle_,
                section_4_twist_angle_=section_4_twist_angle_,
                section_5_twist_angle_=section_5_twist_angle_)
        except:
            self.show_default_values()
Exemple #2
0
 def zero_all_text_fields(self):
     try:
         root_location_x, root_location_y, root_location_z, dihedral, sweep, twist, span, taper_ratio, chord, winglet_width, winglet_rotation, winglet_center_translation_x, winglet_center_translation_y, winglet_center_translation_z, profile = \
             read_surface_data(self.text)
         self.show_default_values(
             root_location_x=root_location_x,
             root_location_y=root_location_y,
             root_location_z=root_location_z,
             dihedral=dihedral,
             sweep=sweep,
             twist=twist,
             span=span,
             taper_ratio=taper_ratio,
             chord=chord,
             winglet_width=winglet_width,
             winglet_rotation=winglet_rotation,
             winglet_center_translation_x=winglet_center_translation_x,
             winglet_center_translation_y=winglet_center_translation_y,
             winglet_center_translation_z=winglet_center_translation_z,
             profile=profile)
     except:
         self.show_default_values()
Exemple #3
0
    def zero_all_text_fields(self):
        try:

            root_location_x, root_location_y, root_location_z, dihedral, sweep, twist, span, taper_ratio, chord, profile = read_surface_data(
                self.text)

            self.show_default_values(root_location_x=root_location_x,
                                     root_location_y=root_location_y,
                                     root_location_z=root_location_z,
                                     dihedral=dihedral,
                                     sweep=sweep,
                                     twist=twist,
                                     span=span,
                                     taper_ratio=taper_ratio,
                                     chord=chord,
                                     profile=profile)
        except (Exception):
            self.show_default_values()
Exemple #4
0
 def read_parameters(self):
     try:
         self.airfoil_type, self.surfaceType_, self.xz_mirror_, self.xy_mirror_, self.yz_mirror_, self.rot_x_, self.rot_y_, self.rot_z_, self.root_le_pos_x_, self.root_le_pos_y_, self.root_le_pos_z_, \
         self.section_1_x_, self.section_2_x_, self.section_3_x_, self.section_4_x_, self.section_5_x_, \
         self.section_1_y_, self.section_2_y_, self.section_3_y_, self.section_4_y_, self.section_5_y_, \
         self.section_1_z_, self.section_2_z_, self.section_3_z_, self.section_4_z_, self.section_5_z_, \
         self.section_1_chord_, self.section_2_chord_, self.section_3_chord_, self.section_4_chord_, \
         self.section_5_chord_, self.section_1_twist_angle_, self.section_2_twist_angle_, \
         self.section_3_twist_angle_, self.section_4_twist_angle_, self.section_5_twist_angle_ = read_surface_data(
             self._name)
     except (Exception):
         self.airfoil_type = "naca0012"
Exemple #5
0
    def read_parameters(self):

        self.root_location_x, self.root_location_y, self.root_location_z, self.dihedral, \
        self.sweep, self.twist, self.span, self.taper_ratio, \
        self.chord, self.profile = read_surface_data(
            self._name)
Exemple #6
0
    def read_parameters(self):

        self.root_location_x, self.root_location_y, self.root_location_z, self.dihedral, \
        self.sweep, self.twist, self.span, self.taper_ratio, \
        self.chord, self.winglet_width, self.winglet_rotation, self.winglet_center_translation_x, \
        self.winglet_center_translation_y, self.winglet_center_translation_z, self.profile = read_surface_data(
            self._name)