import abdbeam as ab sc = ab.Section() # Create a dictionary for the isotropic material mts = dict() mts[1] = ab.Isotropic(2, 70000, 0.3) # Create a points dictionary based on Y and Z point coordinates pts = dict() pts[1] = ab.Point(0, -200) pts[2] = ab.Point(-100, -200) pts[3] = ab.Point(-100, 0) pts[4] = ab.Point(-200, 0) pts[5] = ab.Point(-200, -100) pts[6] = ab.Point(0, 0) pts[7] = ab.Point(100, -200) pts[8] = ab.Point(100, 0) pts[9] = ab.Point(200, 0) pts[10] = ab.Point(200, -100) # Create a segments dictionary referencing point and material ids sgs = dict() sgs[1] = ab.Segment(1, 2, 1) sgs[2] = ab.Segment(2, 3, 1) sgs[3] = ab.Segment(3, 4, 1) sgs[4] = ab.Segment(4, 5, 1) sgs[5] = ab.Segment(3, 6, 1) sgs[6] = ab.Segment(1, 7, 1) sgs[7] = ab.Segment(7, 8, 1) sgs[8] = ab.Segment(8, 9, 1) sgs[9] = ab.Segment(9, 10, 1) sgs[10] = ab.Segment(8, 6, 1) # Point the dictionaries to the section
import abdbeam as ab sc = ab.Section() # Create a materials dictionary: mts = dict() mts[1] = ab.Laminate() ply_mat = ab.PlyMaterial(0.166666, 148000, 9650, 4550, 0.3) mts[1].ply_materials[1] = ply_mat mts[1].plies = [[0, 1]] * 6 + [[45, 1]] * 6 # Create a points dictionary based on Y and Z point coordinates: pts = dict() pts[1] = ab.Point(0, -35) pts[2] = ab.Point(-50, -35) pts[3] = ab.Point(-50, 35) pts[4] = ab.Point(0, 35) pts[5] = ab.Point(50, 35) pts[6] = ab.Point(50, -35) # Create a segments dictionary referencing point and material ids: sgs = dict() sgs[1] = ab.Segment(1, 2, 1) sgs[2] = ab.Segment(2, 3, 1) sgs[3] = ab.Segment(3, 4, 1) sgs[4] = ab.Segment(4, 1, 1) sgs[5] = ab.Segment(4, 5, 1) sgs[6] = ab.Segment(5, 6, 1) sgs[7] = ab.Segment(6, 1, 1) # Point the dictionaries to the section sc.materials = mts sc.points = pts sc.segments = sgs # Calculate and output section properties
import abdbeam as ab sc = ab.Section() # Create a dictionary for the shear connector materials mts = dict() mts[1] = ab.ShearConnector(0.03, 3846154) mts[2] = ab.ShearConnector(0.04, 3846154) mts[3] = ab.ShearConnector(0.05, 3846154) mts[4] = ab.ShearConnector(0.064, 3846154) # Create a points dictionary based on Y and Z point coordinates pts = dict() pts[1] = ab.Point(0, 0, 2e7, 0, 'a') pts[2] = ab.Point(10, 0, 1e7, 0, 'b') pts[3] = ab.Point(20, 0, 5e6, 0, 'c') pts[4] = ab.Point(30, 0, 5e6, 0, 'd') pts[5] = ab.Point(40, 0, 5e6, 0, 'e') pts[6] = ab.Point(50, 0, 1e7, 0, 'f') pts[11] = ab.Point(0, 10, 2e7, 0, 'a_') pts[12] = ab.Point(10, 10, 1e7, 0, 'b_') pts[13] = ab.Point(20, 10, 5e6, 0, 'c_') pts[14] = ab.Point(30, 10, 5e6, 0, 'd_') pts[15] = ab.Point(40, 10, 5e6, 0, 'e_') pts[16] = ab.Point(50, 10, 1e7, 0, 'f_') # Create a segments dictionary referencing point and material ids sgs = dict() sgs[1] = ab.Segment(1, 2, 2, 'Bottom 1') sgs[2] = ab.Segment(2, 3, 2, 'Bottom 2') sgs[3] = ab.Segment(3, 4, 2, 'Bottom 3') sgs[4] = ab.Segment(4, 5, 1, 'Bottom 4') sgs[5] = ab.Segment(5, 6, 1, 'Bottom 5') sgs[11] = ab.Segment(11, 12, 2, 'Top 1')
mts[1].ply_materials[2] = ply_mts[2] mts[1].plies = [[45, 2], [-45, 2]] + [[0, 2]] * 3 mts[1].symmetry = 'S' mts[2] = ab.Laminate() mts[2].ply_materials[2] = ply_mts[2] mts[2].plies = [[45, 2], [-45, 2]] * 2 + [[0, 2]] mts[2].symmetry = 'S' mts[3] = ab.Laminate() mts[3].ply_materials[1] = ply_mts[1] mts[3].ply_materials[2] = ply_mts[2] mts[3].plies = [[45, 2], [-45, 2]] + [[0, 1]] * 3 + [[0, 2]] + [[0, 1]] * 2 mts[3].symmetry = 'SM' mts[4] = ab.ShearConnector(0.075, 2605615) # Create a points dictionary based on Y and Z point coordinates: pts = dict() pts[1] = ab.Point(-2, 0) pts[2] = ab.Point(-1, 0) pts[3] = ab.Point(1, 0) pts[4] = ab.Point(2, 0) pts[5] = ab.Point(-2, 0.075) pts[6] = ab.Point(-1, 0.075) pts[7] = ab.Point(-0.35, 0.8) pts[8] = ab.Point(0.35, 0.8) pts[9] = ab.Point(1, 0.075) pts[10] = ab.Point(2, 0.075) # Create a segments dictionary referencing point and material ids: sgs = dict() sgs[1] = ab.Segment(1, 2, 1, 'Skin_Left') sgs[2] = ab.Segment(2, 3, 1, 'Skin_Center') sgs[3] = ab.Segment(3, 4, 1, 'Skin_Right') sgs[10] = ab.Segment(5, 6, 2, 'Hat_Left_Foot')
import abdbeam as ab sc = ab.Section() # Create a materials dictionary: mts = dict() mts[1] = ab.Laminate() mts[1].ply_materials[1] = ab.PlyMaterial(0.0001, 148e9, 9.65e9, 4.55e9, 0.3) mts[1].ply_materials[2] = ab.PlyMaterial(0.0002, 16.39e9, 16.39e9, 38.19e9, 0.801) mts[1].plies = [[0, 1]] * 10 + [[45, 1]] * 10 mts[1].symmetry = 'T' # Create a points dictionary based on Y and Z point coordinates: pts = dict() pts[1] = ab.Point(-0.025, -0.035) pts[2] = ab.Point(0.025, -0.035) pts[3] = ab.Point(0.025, 0.035) pts[4] = ab.Point(-0.025, 0.035) # Create a segments dictionary referencing point and material ids: sgs = dict() sgs[1] = ab.Segment(1, 2, 1) sgs[2] = ab.Segment(2, 3, 1) sgs[3] = ab.Segment(3, 4, 1) sgs[4] = ab.Segment(4, 1, 1) # Point the dictionaries to the section sc.materials = mts sc.points = pts sc.segments = sgs # Calculate and output section properties sc.calculate_properties() sc.summary() ab.plot_section(sc, segment_coord=True, figsize=(6.4 * 0.8, 4.8 * 0.8))
import abdbeam as ab sc = ab.Section() # Create a materials dictionary: mts = dict() mts[1] = ab.Laminate() mts[1].ply_materials[1] = ab.PlyMaterial(0.0001, 148e9, 9.65e9, 4.55e9, 0.3) mts[1].ply_materials[2] = ab.PlyMaterial(0.0002, 16.39e9, 16.39e9, 38.19e9, 0.801) mts[1].plies = [[0, 2], [0, 2], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1]] mts[1].symmetry = 'S' # Create a points dictionary based on Y and Z point coordinates: pts = dict() pts[1] = ab.Point(0.0, 0.0) pts[2] = ab.Point(0.049, 0.0) pts[3] = ab.Point(0.049, 0.062) pts[4] = ab.Point(0.0, 0.062) # Create a segments dictionary referencing point and material ids: sgs = dict() sgs[1] = ab.Segment(1, 2, 1) sgs[2] = ab.Segment(2, 3, 1) sgs[3] = ab.Segment(3, 4, 1) # Point the dictionaries to the section sc.materials = mts sc.points = pts sc.segments = sgs # Calculate and output section properties sc.calculate_properties() sc.summary() ab.plot_section(sc, figsize=(6.4 * 0.8, 4.8 * 0.8)) # Create a single load case and calculate its internal loads
import abdbeam as ab sc = ab.Section() # Create a dictionary to store ply materials shared by laminates ply_mts = dict() ply_mts[1] = ab.PlyMaterial(0.0075, 1.149e7, 1.149e7, 6.6e5, 0.04) # Create the materials dictionary for the laminates and shear connector: mts = dict() mts[1] = ab.Laminate() mts[1].ply_materials[1] = ply_mts[1] mts[1].plies = [[45, 1], [-45, 1]] * 2 + [[0, 1]] * 3 mts[1].symmetry = 'S' mts[2] = ab.ShearConnector(0.25, 6381760) # Create a points dictionary based on Y and Z point coordinates: pts = dict() pts[1] = ab.Point(1, -4) pts[2] = ab.Point(2, -4) pts[3] = ab.Point(12, -4) pts[4] = ab.Point(14, -4) pts[5] = ab.Point(15, -4) pts[11] = ab.Point(1, 1.21) pts[12] = ab.Point(2, 1.21) pts[13] = ab.Point(12, 1.21) pts[14] = ab.Point(14, 1.21) pts[15] = ab.Point(15, 1.21) pts[21] = ab.Point(1, -3.895) pts[22] = ab.Point(2, -3.895) pts[23] = ab.Point(3, -3.895) pts[24] = ab.Point(3, 1.105) pts[25] = ab.Point(2, 1.105) pts[26] = ab.Point(1, 1.105)