예제 #1
0
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
sc.calculate_properties()
sc.summary()
# Create and calculate internal loads
sc.loads = dict()
예제 #2
0
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
sc.materials = mts
sc.points = pts
sc.segments = sgs
# Calculate section properties
sc.calculate_properties()
예제 #3
0
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')
sgs[12] = ab.Segment(12, 13, 2, 'Top 2')
sgs[13] = ab.Segment(13, 14, 2, 'Top 3')
sgs[14] = ab.Segment(14, 15, 1, 'Top 4')
sgs[15] = ab.Segment(15, 16, 1, 'Top 5')
sgs[21] = ab.Segment(1, 11, 4, 'Web 1')
sgs[22] = ab.Segment(2, 12, 3, 'Web 2')
sgs[23] = ab.Segment(3, 13, 2, 'Web 3')
sgs[24] = ab.Segment(4, 14, 2, 'Web 4')
sgs[25] = ab.Segment(5, 15, 1, 'Web 5')
sgs[26] = ab.Segment(6, 16, 1, 'Web 6')
예제 #4
0
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')
sgs[11] = ab.Segment(6, 7, 2, 'Hat_Left_Web')
sgs[12] = ab.Segment(7, 8, 3, 'Hat_Top')
sgs[13] = ab.Segment(8, 9, 2, 'Hat_Right_Web')
sgs[14] = ab.Segment(9, 10, 2, 'Hat_Right_Foot')
sgs[91] = ab.Segment(1, 5, 4, 'Connector_1')
sgs[92] = ab.Segment(2, 6, 4, 'Connector_1')
sgs[93] = ab.Segment(3, 9, 4, 'Connector_1')
sgs[94] = ab.Segment(4, 10, 4, 'Connector_1')
# Point the dictionaries to the section
sc.materials = mts
sc.points = pts
sc.segments = sgs
예제 #5
0
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))
# Create a single load case and calculate its internal loads
sc.loads[1] = ab.Load(Px=200, Mz=10, Vz_s=-100)
sc.calculate_internal_loads()
# Plot internal loads
예제 #6
0
pts[24] = ab.Point(3, 1.105)
pts[25] = ab.Point(2, 1.105)
pts[26] = ab.Point(1, 1.105)
pts[31] = ab.Point(11, -3.895)
pts[32] = ab.Point(12, -3.895)
pts[33] = ab.Point(13, -3.895)
pts[34] = ab.Point(14, -3.895)
pts[35] = ab.Point(15, -3.895)
pts[36] = ab.Point(11, 1.105)
pts[37] = ab.Point(12, 1.105)
pts[38] = ab.Point(13, 1.105)
pts[39] = ab.Point(14, 1.105)
pts[40] = ab.Point(15, 1.105)
# Create a segments dictionary referencing point and material ids:
sgs = dict()
sgs[1] = ab.Segment(1, 2, 1, 'Bottom Skin')
sgs[2] = ab.Segment(2, 3, 1, 'Bottom Skin')
sgs[3] = ab.Segment(3, 4, 1, 'Bottom Skin')
sgs[4] = ab.Segment(4, 5, 1, 'Bottom Skin')
sgs[11] = ab.Segment(11, 12, 1, 'Top Skin')
sgs[12] = ab.Segment(12, 13, 1, 'Top Skin')
sgs[13] = ab.Segment(13, 14, 1, 'Top Skin')
sgs[14] = ab.Segment(14, 15, 1, 'Top Skin')
sgs[21] = ab.Segment(21, 22, 1, 'Fwd Spar')
sgs[22] = ab.Segment(22, 23, 1, 'Fwd Spar')
sgs[23] = ab.Segment(23, 24, 1, 'Fwd Spar')
sgs[24] = ab.Segment(24, 25, 1, 'Fwd Spar')
sgs[25] = ab.Segment(25, 26, 1, 'Fwd Spar')
sgs[31] = ab.Segment(31, 32, 1, 'Rear Spar')
sgs[32] = ab.Segment(32, 33, 1, 'Rear Spar')
sgs[33] = ab.Segment(33, 34, 1, 'Rear Spar')