Exemplo n.º 1
0
def S009_EC3(conn):
    # Report and results manager
    rp = reports.Report(conn)

    # Setting up parts
    bolt = bolts.EuroBolt(conn.bolts['MAIN'], rp)
    bolt_group = bolts.ShearTensionBoltArray(conn.bolt_arrays['MAIN'], bolt,
                                             rp)
    sls_forces = loads.ForcesSet(conn.forces['SLS'], rp)
    uls_forces = loads.ForcesSet(conn.forces['ULS'], rp)

    beam_2 = steel.Profile(conn.profiles['ARRIVING'], rp)
    beam_1 = steel.Profile(conn.profiles['LANDING'], rp)
    end_plate = steel.BoltedPlate(conn.plates['END_PLATE'], rp)

    # set the conected plate so the snug front plate solver can work
    bolt_group.connected_plate = end_plate

    # Solving bolts

    if all([
            bolt_group.check(sls_forces, uls_forces, rp),
            beam_1.check(rp),
            beam_2.check(rp),
            end_plate.check(bolt_group, uls_forces, rp),
            end_plate.check_collisions(bolt_group, beam_2, rp),
            end_plate.check_collisions(bolt_group, beam_1, rp),
            end_plate.check_t_stubs(bolt_group, uls_forces, beam_2, rp),
            end_plate.check_t_stubs(bolt_group, uls_forces, beam_1, rp),
    ]):
        rp.set_safe()
    else:
        rp.set_unsafe()

    return rp
Exemplo n.º 2
0
def S099_EC3(parts):
    # Report and results manager
    rp = reports.Report(parts['calc'])

    # Setting up parts
    bolt = bolts.EuroBolt(parts['main_bolt'], rp)
    bolt_group = bolts.ShearTensionBoltArray(
        parts['main_bolt_array'], bolt, rp)
    sls_forces = loads.ForcesSet(parts['sls_force'], rp)
    uls_forces = loads.ForcesSet(parts['uls_force'], rp)

    beam_profile = steel.Profile(parts['beam_profile'], rp)
    column_profile = steel.Profile(parts['column_profile'], rp)
    end_plate = steel.BoltedPlate(parts['end_plate'], rp)
    position = steel.SectionPosition(parts['main_position'], rp)
    position.profile = beam_profile
    position.bolt_array = bolt_group

    # set the conected plate so the snug front plate solver can work
    bolt_group.connected_plate = end_plate

    # Solving bolts

    if all([bolt_group.check(sls_forces, uls_forces, rp),
            beam_profile.check(rp), column_profile.check(rp),
            end_plate.check(bolt_group, uls_forces, rp),
            end_plate.check_collisions_legacy(bolt_group, beam_profile, position, rp),
            end_plate.check_t_stubs_legacy(
                bolt_group, uls_forces, beam_profile, position, rp)]):
        rp.set_safe()
    else:
        rp.set_unsafe()

    return rp
Exemplo n.º 3
0
 def flange_setup(self):
     self.flange_bolt = bolts.EuroBolt(self.conn.bolts['FLANGE'], self.rp)
     self.flange_bolt_group = bolts.ShearTensionBoltArray(
         self.conn.bolt_arrays['FLANGE'], self.flange_bolt, self.rp)
     self.flange_cover_plate = steel.BoltedPlate(
         self.conn.plates['FLANGE_COVER_PLATE'], self.rp)
     self.bottom_column.bolt_the_flange(self.flange_bolt_group,
                                        self.flange_cover_plate, self.rp)
     self.top_column.bolt_the_flange(self.flange_bolt_group,
                                     self.flange_cover_plate, self.rp)
     self.flange_ecc = self.flange_bolt_group.p2_sum() / 2 +\
         self.flange_cover_plate.e2_other + self.joint_gap
Exemplo n.º 4
0
 def web_setup(self):
     self.web_bolt = bolts.EuroBolt(self.conn.bolts['WEB'], self.rp)
     self.web_bolt_group = bolts.ShearTensionBoltArray(
         self.conn.bolt_arrays['WEB'], self.web_bolt, self.rp)
     self.web_cover_plate = steel.BoltedPlate(
         self.conn.plates['WEB_COVER_PLATE'], self.rp)
     self.beam_1.bolt_the_web(
         self.web_bolt_group, self.web_cover_plate, self.rp)
     self.beam_2.bolt_the_web(
         self.web_bolt_group, self.web_cover_plate, self.rp)
     self.web_ecc = self.web_bolt_group.p2_sum() / 2 +\
         self.web_cover_plate.e2_other + self.joint_gap
Exemplo n.º 5
0
def S005_EC3(parts):
    # Report and results manager
    rp = reports.Report(parts['calc'])

    # Setting up parts
    bolt = bolts.EuroBolt(parts['main_bolt'], rp)
    bolt_array = bolts.ShearTensionBoltArray(parts['main_bolt_array'], bolt,
                                             rp)
    sls_forces = loads.ForcesSet(parts['sls_force'], rp)
    uls_forces = loads.ForcesSet(parts['uls_force'], rp)

    # Now, computing the resultant forces

    beam_profile = steel.Profile(parts['beam_profile'], rp)
    landing_profile = steel.Profile(parts['landing_profile'], rp)
    end_plate = steel.BoltedPlate(parts['end_plate'], rp)
    position = steel.SectionPosition(parts['main_position'], rp)
    position.profile = beam_profile
    position.bolt_array = bolt_array

    # set the conected plate so the snug front plate solver can work
    bolt_array.connected_plate = end_plate

    # If frontplate connected to U Beam Web:
    if parts['main_extra_data'].U_beam_position in ['ANY', 'WEB']\
            and parts['landing_profile'].profile_type == "U"\
            and not parts['main_extra_data'].dont_check_U_web:
        U_bolted_web = steel.BoltedWeb(landing_profile, bolt_array,
                                       parts['end_plate'], rp)
        U_bolted_web_checked = U_bolted_web.check(uls_forces, rp)
    else:
        U_bolted_web_checked = True  # Not needed OBVIAMENTE

    if all([
            U_bolted_web_checked,
            bolt_array.check(sls_forces, uls_forces, rp),
            beam_profile.check(rp),
            landing_profile.check(rp),
            end_plate.check(bolt_array, uls_forces, rp),
            end_plate.check_collisions_legacy(bolt_array, beam_profile,
                                              position, rp),
            end_plate.check_t_stubs_legacy(bolt_array, uls_forces,
                                           beam_profile, position, rp)
    ]):
        rp.set_safe()
    else:
        rp.set_unsafe()

    return rp
Exemplo n.º 6
0
def S009_EC3(parts):
    # Report and results manager
    rp = reports.Report(parts['calc'])

    # Setting up parts
    bolt = bolts.EuroBolt(parts['main_bolt'], rp)
    bolt_array = bolts.ShearTensionBoltArray(parts['main_bolt_array'], bolt,
                                             rp)
    sls_forces = loads.ForcesSet(parts['sls_force'], rp)
    uls_forces = loads.ForcesSet(parts['uls_force'], rp)

    beam_1 = steel.Profile(parts['beam_1_profile'], rp)
    beam_2 = steel.Profile(parts['beam_2_profile'], rp)
    end_plate = steel.BoltedPlate(parts['end_plate'], rp)

    side_gap = parts['main_extra_data'].side_gap
    # g1 = plate.h / 2 - beam.h / 2 - side_gap
    beam1_g1 = end_plate.length.magnitude / 2 - \
        beam_1.mat_db_profile.h / 2 - side_gap
    position1 = steel.SectionPosition.from_g1(beam1_g1, rp)
    position1.profile = beam_1
    position1.bolt_array = bolt_array
    beam2_g1 = end_plate.length.magnitude / 2 - \
        beam_2.mat_db_profile.h / 2 - side_gap
    position2 = steel.SectionPosition.from_g1(beam2_g1, rp)
    position2.profile = beam_2
    position2.bolt_array = bolt_array

    # set the conected plate so the snug front plate solver can work
    bolt_array.connected_plate = end_plate

    if all([
            bolt_array.check(sls_forces, uls_forces, rp),
            end_plate.check(bolt_array, uls_forces, rp),
            end_plate.check_collisions_legacy(bolt_array, beam_1, position1,
                                              rp),
            end_plate.check_collisions_legacy(bolt_array, beam_2, position2,
                                              rp),
            end_plate.check_t_stubs_legacy(bolt_array, uls_forces, beam_1,
                                           position1, rp),
            end_plate.check_t_stubs_legacy(bolt_array, uls_forces, beam_2,
                                           position2, rp)
    ]):
        rp.set_safe()
    else:
        rp.set_unsafe()
    return rp
Exemplo n.º 7
0
def S005_EC3(conn):
    # Report and results manager
    rp = reports.Report(conn)

    # Setting up parts
    bolt = bolts.EuroBolt(conn.bolts['MAIN'], rp)
    bolt_group = bolts.ShearTensionBoltArray(conn.bolt_arrays['MAIN'], bolt,
                                             rp)
    sls_forces = loads.ForcesSet(conn.forces['SLS'], rp)
    uls_forces = loads.ForcesSet(conn.forces['ULS'], rp)

    beam_profile = steel.Profile(conn.profiles['ARRIVING'], rp)
    landing_profile = steel.Profile(conn.profiles['LANDING'], rp)
    end_plate = steel.BoltedPlate(conn.plates['END_PLATE'], rp)

    # set the conected plate so the snug front plate solver can work
    bolt_group.connected_plate = end_plate
    # If frontplate connected to U Beam Web:
    if conn.profiles['LANDING']['section_orientation'] in ['ANY', 'WEB']\
            and conn.profiles['LANDING']['profile_type'] == "U"\
            and not landing_profile.mat_db_profile.is_any_reference:
        U_bolted_web = steel.BoltedWeb(landing_profile, bolt_group,
                                       conn.plates['END_PLATE'], rp)
        U_bolted_web_checked = U_bolted_web.check(uls_forces, rp)
    else:
        U_bolted_web_checked = True  # Not needed OBVIAMENTE

    if all([
            U_bolted_web_checked,
            bolt_group.check(sls_forces, uls_forces, rp),
            beam_profile.check(rp),
            landing_profile.check(rp),
            end_plate.check(bolt_group, uls_forces, rp),
            end_plate.check_collisions(bolt_group, beam_profile, rp),
            end_plate.check_t_stubs(bolt_group, uls_forces, beam_profile, rp)
    ]):
        rp.set_safe()
    else:
        rp.set_unsafe()

    return rp
Exemplo n.º 8
0
def S004_EC3(conn):
    # Report and results manager
    rp = reports.Report(conn)

    # Setting up parts
    bolt = bolts.EuroBolt(conn.bolts['MAIN'], rp)
    bolt_group = bolts.ShearTensionBoltArray(conn.bolt_arrays['MAIN'], bolt,
                                             rp)
    sls_forces = loads.ForcesSet(conn.forces['SLS'], rp)
    uls_forces = loads.ForcesSet(conn.forces['ULS'], rp)
    bracs_forces = loads.ExtraBracingForces(
        conn.extra_data['arriving_bracings'], rp)

    # Now, computing the resultant forces
    sls_forces = bracs_forces.sum_to_this_sls(sls_forces, rp)
    uls_forces = bracs_forces.sum_to_this_uls(uls_forces, rp)

    beam_profile = steel.Profile(conn.profiles['ARRIVING'], rp)
    column_profile = steel.Profile(conn.profiles['LANDING'], rp)
    end_plate = steel.BoltedPlate(conn.plates['END_PLATE'], rp)

    # set the conected plate so the snug front plate solver can work
    bolt_group.connected_plate = end_plate

    # Solving bolts

    if all([
            bolt_group.check(sls_forces, uls_forces, rp),
            beam_profile.check(rp),
            column_profile.check(rp),
            end_plate.check(bolt_group, uls_forces, rp),
            end_plate.check_collisions(bolt_group, beam_profile, rp),
            end_plate.check_t_stubs(bolt_group, uls_forces, beam_profile, rp)
    ]):
        rp.set_safe()
    else:
        rp.set_unsafe()

    return rp
Exemplo n.º 9
0
def S007_EC3(parts):
    # Report and results manager
    rp = reports.Report(parts['calc'])

    # Setting up parts
    bolt = bolts.EuroBolt(parts['main_bolt'], rp)
    bolt_array = bolts.ShearTensionBoltArray(parts['main_bolt_array'], bolt,
                                             rp)
    sls_forces = loads.ForcesSet(parts['sls_force'], rp)
    uls_forces = loads.ForcesSet(parts['uls_force'], rp)

    bottom_column = steel.Profile(parts['bottom_column_profile'], rp)
    top_column = steel.Profile(parts['top_column_profile'], rp)
    end_plate = steel.BoltedPlate(parts['end_plate'], rp)
    position = steel.SectionPosition(parts['main_position'], rp)
    position.profile = top_column
    position.bolt_array = bolt_array
    zero_position = steel.SectionPosition.centered()

    # set the conected plate so the snug front plate solver can work
    bolt_array.connected_plate = end_plate

    if all([
            bolt_array.check(sls_forces, uls_forces, rp),
            # bottom_column.check(rp), top_column.check(rp),  # NOT NEEDED
            end_plate.check(bolt_array, uls_forces, rp),
            end_plate.check_collisions_legacy(bolt_array, top_column, position,
                                              rp),
            end_plate.check_collisions_legacy(bolt_array, bottom_column,
                                              zero_position, rp),
            end_plate.check_t_stubs_legacy(bolt_array, uls_forces,
                                           bottom_column, position, rp)
    ]):
        rp.set_safe()
    else:
        rp.set_unsafe()
    return rp
Exemplo n.º 10
0
def S006_EC3(conn):
    """ Main S006_EC3 Solver """

    # Report and results manager
    rp = reports.Report(conn)

    # LOS BOLTS DEL ALMA DEL LANDING PROFILE EN EL CASO DE CLIP SE SUPONEN =s
    # HAY QUE PENSAR QUE SE HACE. SE CALCULA TAMBIEN??? F**K!

    # Setting up common parts
    bolt = bolts.EuroBolt(conn.bolts['MAIN'], rp)
    bolt_group = bolts.ShearTensionBoltArray(conn.bolt_arrays['MAIN'], bolt,
                                             rp)
    sls_forces = loads.ForcesSet(conn.forces['SLS'], rp)
    uls_forces = loads.ForcesSet(conn.forces['ULS'], rp)
    beam_profile = steel.Profile(conn.profiles['ARRIVING'], rp)
    landing_profile = steel.Profile(conn.profiles['LANDING'], rp)

    # -LA- OBJECTS:
    #    - Beam web * +rp
    #    - Lateral bolts  * +rp
    #    - Lateral forces *
    #    - Clip Angle * +rp
    #    - Frontal bolts * +rp
    #    - Frontal forces *
    #    - Landing web * +rp
    if conn.extra_data['angles'] is "LA":
        bolted_web = steel.BoltedWeb(beam_profile, bolt_group,
                                     conn.plates['DUMMY_PLATE'], rp)
        bolted_angle = steel.BoltedClipAngle(conn.profiles['CLIP_ANGLE'],
                                             conn.plates['DUMMY_PLATE'], rp)
        # FORCES
        lat_uls_forces = uls_forces.rot90(2, 3, "SIDE_ULS", None)
        lat_sls_forces = sls_forces.rot90(2, 3, "SIDE_SLS", None)
        ec1 = bolted_angle.dist_bolts_to_plate(bolt_group)
        ec2 = Q(D(0), 'mm')
        # ec3 = - ec1 asumes a simmetrical boltedclipangle...
        # let's see what happens with time but this is a f*****g problem
        ec3 = -ec1
        front_uls_forces = uls_forces.from_eccentricity(
            ec1, ec2, ec3, "FRONT_ULS", None)
        front_sls_forces = sls_forces.from_eccentricity(
            ec1, ec2, ec3, "FRONT_SLS", None)

        # BOLT ARRAYS (SAME BOLT ARRAY TO BE CHECKED WITH BOTH FORCES)
        # WHY? BECAUSE L ANGLE PROFILE IS SUPOSED SYMMETRICAL !!!!
        bolt_group.connected_plate = bolted_angle
        lat_bolt_group = bolt_group
        front_bolt_group = bolt_group
        front_bolted_web = steel.BoltedWeb(landing_profile, bolt_group,
                                           conn.plates['DUMMY_PLATE'], rp)

        if all([
                bolted_web.check(lat_uls_forces, rp),
                lat_bolt_group.check(lat_sls_forces, lat_uls_forces, rp),
                bolted_angle.check(bolt_group, front_uls_forces, rp),
                front_bolt_group.check(front_sls_forces, front_uls_forces, rp),
                front_bolted_web.check(front_uls_forces, rp),
        ]):
            rp.set_safe()
        else:
            rp.set_unsafe()

    # -RA- OBJECTS:
    #    - Beam web * +rp
    #    - Lateral bolts  * +rp
    #    - Lateral forces *
    #    - Clip Angle * +rp
    #    - Frontal bolts * +rp
    #    - Frontal forces *
    #    - Landing web * +rp
    if conn.extra_data['angles'] is "RA":
        bolted_web = steel.BoltedWeb(beam_profile, bolt_group,
                                     conn.plates['DUMMY_PLATE'], rp)
        bolted_angle = steel.BoltedClipAngle(conn.profiles['CLIP_ANGLE'],
                                             conn.plates['DUMMY_PLATE'], rp)
        # FORCES
        lat_uls_forces = uls_forces.rot90(2, 1, "SIDE_ULS", None)
        lat_sls_forces = sls_forces.rot90(2, 1, "SIDE_SLS", None)
        ec1 = bolted_angle.dist_bolts_to_plate(bolt_group)
        ec2 = Q(D(0), 'mm')
        # ec3 = ec1 asumes a simmetrical boltedclipangle...
        # let's see what happens with time but this is a f*****g problem
        ec3 = ec1
        front_uls_forces = uls_forces.from_eccentricity(
            ec1, ec2, ec3, "FRONT_ULS", None)
        front_sls_forces = sls_forces.from_eccentricity(
            ec1, ec2, ec3, "FRONT_SLS", None)

        # BOLT ARRAYS (SAME BOLT ARRAY TO BE CHECKED WITH BOTH FORCES)
        # WHY? BECAUSE L ANGLE PROFILE IS SUPOSED SYMMETRICAL !!!!
        bolt_group.connected_plate = bolted_angle
        lat_bolt_group = bolt_group
        front_bolt_group = bolt_group
        front_bolted_web = steel.BoltedWeb(landing_profile, bolt_group,
                                           conn.plates['DUMMY_PLATE'], rp)

        if all([
                bolted_web.check(lat_uls_forces, rp),
                lat_bolt_group.check(lat_sls_forces, lat_uls_forces, rp),
                bolted_angle.check(bolt_group, front_uls_forces, rp),
                front_bolt_group.check(front_sls_forces, front_uls_forces, rp),
                front_bolted_web.check(front_uls_forces, rp),
        ]):
            rp.set_safe()
        else:
            rp.set_unsafe()

    # -BA- OBJECTS:
    #    - Beam web +rp *
    #    - Lateral bolts +rp *
    #    - Lateral forces *
    #    - Clip Angle Pair +rp *
    #    - Frontal bolts +rp *
    #    - Frontal forces *
    #    - Landing web +rp *
    if conn.extra_data['angles'] is "BA":
        bolted_web = steel.BoltedWeb(beam_profile, bolt_group,
                                     conn.plates['DUMMY_PLATE'], rp)
        bolted_angle_pair = steel.BoltedClipAnglePair(
            conn.profiles['CLIP_ANGLE'], conn.plates['DUMMY_PLATE'], rp)
        # FORCES
        lat_uls_forces = uls_forces.rot90(2, 3, "SIDE_ULS", None)\
            .from_factor(D(0.5), "SIDE_ULS", None)
        lat_uls_forces.P = Q(D(0), "kN")
        lat_sls_forces = sls_forces.rot90(2, 3, "SIDE_SLS", None)\
            .from_factor(D(0.5), "SIDE_ULS", None)
        lat_sls_forces.P = Q(D(0), "kN")
        ec1 = bolted_angle_pair.dist_bolts_to_plate(bolt_group)
        ec2 = Q(D(0), 'mm')
        # ec3 = - ec1 asumes a simmetrical boltedclipangle...
        # let's see what happens with time but this is a f*****g problem
        ec3 = Q(D(0), 'mm')
        front_uls_forces = uls_forces.from_eccentricity(
            ec1, ec2, ec3, "FRONT_ULS", None)\
            .from_factor(D(0.5), "FRONT_ULS", None)
        front_sls_forces = sls_forces.from_eccentricity(
            ec1, ec2, ec3, "FRONT_SLS", None)\
            .from_factor(D(0.5), "FRONT_ULS", None)

        # Ojo aquí, habría que quitar el .form_factor(0.5) y crear una chapa
        # frontplate con el doble de ancho y tal. ancho de la L mas alma de
        # la beam. Sería lo apropiado. Y calcular así otros bolts también
        # creados así. Y la bolted web lo mismo. Más que nada por posibles
        # comprobaciones a las que les afecte esta interaccion entre tornillos
        # o simplemente simplificar?

        # DE MOMENTO SIMPLIFICAR !!! JAJAJA MUAJAJAJA !!
        bolt_group.connected_plate = bolted_angle_pair
        lat_bolt_group = bolt_group
        front_bolt_group = bolt_group
        front_bolted_web = steel.BoltedWeb(
            landing_profile,
            bolt_group,
            conn.plates['DUMMY_PLATE'],  # <- OJO ESTO PUEDE SER UN BUG !!!!!!!
            rp)

        if all([
                bolted_web.check(lat_uls_forces, rp),
                lat_bolt_group.check(lat_sls_forces, lat_uls_forces, rp),
                bolted_angle_pair.check(bolt_group, front_uls_forces, rp),
                front_bolt_group.check(front_sls_forces, front_uls_forces, rp),
                front_bolted_web.check(front_uls_forces, rp),
        ]):
            rp.set_safe()
        else:
            rp.set_unsafe()

    # -LS- OBJECTS:
    #    - Beam web +rp *
    #    - Lateral bolts +rp *
    #    - Lateral forces *
    #    - Bolted Stiffener +rp *
    if conn.extra_data['angles'] is "LS":
        bolted_web = steel.BoltedWeb(beam_profile, bolt_group,
                                     conn.plates['BOLTED_STIFFENER'], rp)

        stiffener = stiffeners.BoltedStiffener(conn.plates['BOLTED_STIFFENER'],
                                               landing_profile, bolt_group, rp)
        # FORCES
        lat_uls_forces = uls_forces.rot90(2, 3, "SIDE_ULS", None)
        lat_sls_forces = sls_forces.rot90(2, 3, "SIDE_SLS", None)
        # set the conected plate so the snug front plate solver can work
        bolt_group.connected_plate = stiffener
        lat_bolt_group = bolt_group

        if all([
                bolted_web.check(lat_uls_forces, rp),
                lat_bolt_group.check(lat_sls_forces, lat_uls_forces, rp),
                stiffener.check(bolt_group, lat_uls_forces, rp),
        ]):
            rp.set_safe()
        else:
            rp.set_unsafe()

    # -RS- OBJECTS:
    #    - Beam web +rp
    #    - Lateral bolts +rp
    #    - Lateral forces
    #    - Bolted Stiffener +rp
    if conn.extra_data['angles'] is "RS":
        bolted_web = steel.BoltedWeb(beam_profile, bolt_group,
                                     conn.plates['BOLTED_STIFFENER'], rp)
        stiffener = stiffeners.BoltedStiffener(conn.plates['BOLTED_STIFFENER'],
                                               landing_profile, bolt_group, rp)
        # FORCES
        lat_uls_forces = uls_forces.rot90(2, 1, "SIDE_ULS", None)
        lat_sls_forces = sls_forces.rot90(2, 1, "SIDE_SLS", None)
        # set the conected plate so the snug front plate solver can work
        bolt_group.connected_plate = stiffener
        lat_bolt_group = bolt_group

        if all([
                bolted_web.check(lat_uls_forces, rp),
                lat_bolt_group.check(lat_sls_forces, lat_uls_forces, rp),
                stiffener.check(bolt_group, lat_uls_forces, rp),
        ]):
            rp.set_safe()
        else:
            rp.set_unsafe()

    # Finally, we always return a report from a solver
    return rp