def S002_EC3(conn): # Report and results manager rp = reports.Report(conn) # Setting up parts bolt = bolts.EuroBolt(conn.bolts['MAIN'], rp) bolt_group = bolts.ShearBoltArray(conn.bolt_arrays['MAIN'], bolt, rp) sls_forces = loads.ForcesSet(conn.forces['SLS'], rp) uls_forces = loads.ForcesSet(conn.forces['ULS'], rp) # Rotated forces to check plates and bolts rot_sls = sls_forces.rot90(2, 1, "SIDE_SLS", rp) rot_uls = uls_forces.rot90(2, 1, "SIDE_ULS", rp) bracing_profile = steel.Profile(conn.profiles['ARRIVING'], rp) landing_profile = steel.Profile(conn.profiles['LANDING'], rp) cover_plates = steel.BoltedPlate(conn.plates['COVER_PLATE'], rp) in_pipe_plate = steel.WeldedBoltedPlate(conn.plates['INPIPE_PLATE'], rp) in_pipe_plate.locked_edges = ['e1_main'] pipe_stiffener = steel.WeldedPlate(conn.plates['PIPE_STIFFENER'], rp) # Solving bolts if all([bolt_group.check(rot_sls, rot_uls, rp), bracing_profile.check(rp), landing_profile.check(rp), cover_plates.check(bolt_group, rot_uls, rp), in_pipe_plate.check(bolt_group, rot_uls, rp), pipe_stiffener.check(rot_uls, rp)]): rp.set_safe() else: rp.set_unsafe() return rp
def S003_EC3(conn): # Report and results manager rp = reports.Report(conn) # Setting up parts bolt = bolts.EuroBolt(conn.bolts['MAIN'], rp) bolt_group = bolts.ShearBoltArray(conn.bolt_arrays['MAIN'], bolt, rp) sls_forces = loads.ForcesSet(conn.forces['SLS'], rp) uls_forces = loads.ForcesSet(conn.forces['ULS'], rp) # Rotated forces to check plates and bolts rot_sls = sls_forces.rot90(2, 1, "SIDE_SLS", rp) rot_uls = uls_forces.rot90(2, 1, "SIDE_ULS", rp) bracing_profile = steel.Profile(conn.profiles['ARRIVING'], rp) landing_profile = steel.Profile(conn.profiles['LANDING'], rp) gusset_plate = steel.BoltedPlate(conn.plates['GUSSET_PLATE'], rp) gusset_plate.locked_edges = ['e1_main'] bracing_profile.bolt_the_web(bolt_group, gusset_plate, rp) if all([ bolt_group.check(rot_sls, rot_uls, rp), bracing_profile.check(rp), landing_profile.check(rp), bracing_profile.bolted_web.check(rot_uls, rp), gusset_plate.check(bolt_group, rot_uls, rp) ]): rp.set_safe() else: rp.set_unsafe() return rp
def P003_EC3(parts): # Report and results manager rp = reports.Report(parts['calc']) # Setting up parts bolt = bolts.EuroBolt(parts['main_bolt'], rp) bolt_group = bolts.ShearBoltArray(parts['main_bolt_array'], bolt, rp) sls_forces = loads.ForcesSet(parts['sls_force'], rp) uls_forces = loads.ForcesSet(parts['uls_force'], rp) profile = steel.Profile(parts['main_profile'], rp) position = steel.SectionPosition(parts['main_position'], rp) position.profile = profile position.bolt_array = bolt_group plate = steel.BoltedPlate(parts['end_plate'], rp) # set the conected plate so the snug front plate solver can work bolt_group.connected_plate = plate # Solving bolts if bolt_group.check(sls_forces, uls_forces, rp) and\ plate.check(bolt_group, uls_forces, rp) and\ plate.check_collisions_legacy(bolt_group, profile, position, rp): rp.set_safe() else: rp.set_unsafe() return rp
def P001_EC3(conn): # Report and results manager rp = reports.Report(conn) # Setting up parts bolt = bolts.EuroBolt(conn.bolts['MAIN'], rp) bolt_group = bolts.ShearBoltArray(conn.bolt_arrays['MAIN'], bolt, rp) sls_forces = loads.ForcesSet(conn.forces['SLS'], rp) uls_forces = loads.ForcesSet(conn.forces['ULS'], rp) # Solving bolts if bolt_group.check(sls_forces, uls_forces, rp): rp.set_safe() else: rp.set_unsafe() return rp
def P001_EC3(parts): # Report and results manager rp = reports.Report(parts['calc']) # Setting up parts bolt = bolts.EuroBolt(parts['main_bolt'], rp) bolt_group = bolts.ShearBoltArray(parts['main_bolt_array'], bolt, rp) sls_forces = loads.ForcesSet(parts['sls_force'], rp) uls_forces = loads.ForcesSet(parts['uls_force'], rp) # Solving bolts if bolt_group.check(sls_forces, uls_forces, rp): rp.set_safe() else: rp.set_unsafe() return rp
def S003_EC3(parts): # Report and results manager rp = reports.Report(parts['calc']) # Setting up parts bolt = bolts.EuroBolt(parts['main_bolt'], rp) bolt_group = bolts.ShearBoltArray(parts['main_bolt_array'], bolt, rp) sls_forces = loads.ForcesSet(parts['sls_force'], rp) uls_forces = loads.ForcesSet(parts['uls_force'], rp) # Rotated forces to check plates and bolts rot_sls = sls_forces.rot90(2, 1, "SIDE_SLS", rp) rot_uls = uls_forces.rot90(2, 1, "SIDE_ULS", rp) bracing_profile = steel.Profile(parts['bracing_profile'], rp) landing_profile = steel.Profile(parts['landing_profile'], rp) gusset_plate = steel.BoltedPlate(parts['gusset_plate'], rp) bracing_profile.bolt_the_web(bolt_group, gusset_plate, rp) # e_dict needed to be passed to the web block tearing function. # e_dict = { # "e1_main": gusset_plate.e1_main, # "e2_main": gusset_plate.e2_main, # "e1_other": gusset_plate.e1_other, # "e2_other": gusset_plate.e1_other, # } # in_pipe_plate = steel.WeldedBoltedPlate(parts['in_pipe_plate'], # rp, e_dict=e_dict) # Solving bolts if all([ bolt_group.check(rot_sls, rot_uls, rp), # bracing_profile.check(rp), landing_profile.check(rp), bracing_profile.bolted_web.check(rot_uls, rp), gusset_plate.check(bolt_group, rot_uls, rp) ]): rp.set_safe() else: rp.set_unsafe() return rp
def S002_EC3(parts): # Report and results manager rp = reports.Report(parts['calc']) # Setting up parts bolt = bolts.EuroBolt(parts['main_bolt'], rp) bolt_group = bolts.ShearBoltArray(parts['main_bolt_array'], bolt, rp) sls_forces = loads.ForcesSet(parts['sls_force'], rp) uls_forces = loads.ForcesSet(parts['uls_force'], rp) # Rotated forces to check plates and bolts rot_sls = sls_forces.rot90(2, 1, "SIDE_SLS", rp) rot_uls = uls_forces.rot90(2, 1, "SIDE_ULS", rp) bracing_profile = steel.Profile(parts['bracing_profile'], rp) landing_profile = steel.Profile(parts['landing_profile'], rp) cover_plates = steel.BoltedPlate(parts['cover_plate'], rp) e_dict = { "e1_main": cover_plates.e1_main, "e2_main": cover_plates.e2_main, "e1_other": cover_plates.e1_other, "e2_other": cover_plates.e1_other, } in_pipe_plate = steel.WeldedBoltedPlate(parts['inpipe_plate'], rp, e_dict=e_dict) pipe_stiff = steel.WeldedPlate(parts['stiffener_plate'], rp) # Solving bolts if all([ bolt_group.check(rot_sls, rot_uls, rp), bracing_profile.check(rp), landing_profile.check(rp), cover_plates.check(bolt_group, rot_uls, rp), in_pipe_plate.check(bolt_group, rot_uls, rp), pipe_stiff.check(rot_uls, rp) ]): rp.set_safe() else: rp.set_unsafe() return rp
def S010_EC3(parts): # Report and results manager rp = reports.Report(parts['calc']) # Setting up parts flange_bolt = bolts.EuroBolt(parts['flange_bolt'], rp) flange_bolt_array = bolts.ShearBoltArray(parts['flange_bolt_array'], flange_bolt, rp) web_bolt = bolts.EuroBolt(parts['web_bolt'], rp) web_bolt_array = bolts.ShearBoltArray(parts['web_bolt_array'], web_bolt, rp) flange_cover_plate = steel.BoltedPlate(parts['flange_cover_plate'], rp) web_cover_plate = steel.BoltedPlate(parts['web_cover_plate'], rp) bottom_column = steel.Profile(parts['bottom_column_profile'], rp) top_column = steel.Profile(parts['top_column_profile'], rp) if bottom_column.mat_db_profile.h > top_column.mat_db_profile.h: biggest_column = bottom_column else: biggest_column = top_column # SOME BACKEND COMPROBATIONS ABOUT PROFILES if bottom_column.profile_type != top_column.profile_type: raise Exception("Bottom column and top column must be same type" ", prolly there is a frontend error") bottom_column.bolt_the_flange(flange_bolt_array, flange_cover_plate, rp) bottom_column.bolt_the_web(web_bolt_array, web_cover_plate, rp) top_column.bolt_the_flange(flange_bolt_array, flange_cover_plate, rp) top_column.bolt_the_web(web_bolt_array, web_cover_plate, rp) if bottom_column.profile_type == "U" and\ bottom_column.name != top_column.name: width_diff = bottom_column.mat_db_profile.b -\ top_column.mat_db_profile.b if width_diff > 0: bf = bottom_column.bolted_flange bf.e1_main = bf.e1_main - width_diff / 2 # web side bf.e1_other = bf.e1_other + width_diff / 2 # free side else: bf = top_column.bolted_flange bf.e1_main = bf.e1_main + width_diff / 2 bf.e1_other = bf.e1_other - width_diff / 2 if bf.e1_main != bf_e1_other: bf.is_e1_sym = False sls_forces = loads.ForcesSet(parts['sls_force'], rp) uls_forces = loads.ForcesSet(parts['uls_force'], rp) # Generating positioned forces. Needed 4 checkn' that cover plates. joint_gap = Q(parts['main_extra_data'].joint_gap, 'mm') zero = Q(D(0), 'mm') flange_ecc = flange_bolt_array.p2_sum() / 2 +\ flange_cover_plate.e2_other + joint_gap web_ecc = web_bolt_array.p2_sum() / 2 +\ web_cover_plate.e2_other + joint_gap flange_sls, web_sls = sls_forces.from_eccentricity( -flange_ecc, zero, zero, None, None).get_flange_and_web_tuple(biggest_column, rp) flange_uls, web_uls = uls_forces.from_eccentricity( -web_ecc, zero, zero, None, None).get_flange_and_web_tuple(biggest_column, rp) # # set the conected plate so the snug front plate solver can work flange_bolt_array.connected_plate = flange_cover_plate web_bolt_array.connected_plate = web_cover_plate # Solving flange_ok = flange_bolt_array.check(flange_sls, flange_uls, rp) &\ flange_cover_plate.check(flange_bolt_array, flange_uls, rp) web_ok = web_bolt_array.check(web_sls, web_uls, rp) &\ web_cover_plate.check(web_bolt_array, web_uls, rp) if bottom_column.name == top_column.name: # Then we dont need to check both columns columns_ok =\ bottom_column.bolted_flange.check(flange_uls, rp) &\ bottom_column.bolted_web.check(web_uls, rp) else: columns_ok =\ bottom_column.bolted_flange.check(flange_uls, rp) &\ bottom_column.bolted_web.check(web_uls, rp) &\ top_column.bolted_flange.check(flange_uls, rp) &\ top_column.bolted_web.check(web_uls, rp) # Return report print(flange_ok, web_ok, columns_ok) if all([flange_ok, web_ok, columns_ok]): rp.set_safe() else: rp.set_unsafe() return rp