In [9]:
import pyPLY
# see separate examples for detailed explanations about the paramenters.
GraphiteEpoxy = pyPLY.CompositeMaterial()
GraphiteEpoxy.define("GraphiteEpoxy", "metric", E11=170e9, E22=10e9, G12=13e9, niu12=0.3, thk=0.125e-3,
Sigma_ut0 = 1500e6, Sigma_uc0 = 1200e6, Sigma_ut90 = 50e6, Sigma_uc90 = 100e6, Tau_u = 75e6,
alpha_11 = -0.9e-6, alpha_22 = 27.0e-6, beta_11 = 150e-6, beta_22 = 4800e-6)
layer1 = pyPLY.Lamina()
layer2 = pyPLY.Lamina()
layer3 = pyPLY.Lamina()
layer1.define("Layer_1", 1, 30)
layer2.define("Layer_2", 1, 0)
layer3.define("Layer_3", 1, 90)
layer1.update()
layer2.update()
layer3.update()
laminate1 = pyPLY.Laminate()
laminate1.add_Lamina(layer1)
laminate1.add_Lamina(layer2)
laminate1.add_Lamina(layer3)
laminate1.update()
In [2]:
load1 = pyPLY.Loading()
load1.define_Load(0,0,0,0,0,0,-155,0.5)
load1.apply_To(laminate1)
In [3]:
print "load1=\n", load1.moisture_load
In [7]:
print "epsilon_K=\n", load1.epsilon_K
In [5]:
print " layerNo", "epsx", " epsy", " gammaxy"
for i in range (0, 3):
strain = load1.list_ply_strains_xy[i*3 + 0]
print "bottom ", i+1, '{0:+.4}'.format(strain[0,0]*1e6), '{0:+.4}'.format(strain[1,0]*1e6), '{0:+.4}'.format(strain[2,0]*1e6)
strain = load1.list_ply_strains_xy[i*3 + 1]
print "centroid", i+1, '{0:+.4}'.format(strain[0,0]*1e6), '{0:+.4}'.format(strain[1,0]*1e6), '{0:+.4}'.format(strain[2,0]*1e6)
strain = load1.list_ply_strains_xy[i*3 + 2]
print "top ", i+1, '{0:+.4}'.format(strain[0,0]*1e6), '{0:+.4}'.format(strain[1,0]*1e6), '{0:+.4}'.format(strain[2,0]*1e6)
In [8]:
print " layerNo", "sigmax", " sigmay", " tauxy"
for i in range (0, 3):
stress = load1.list_ply_stresses_xy[i*3 + 0]
print "bottom ", i+1, '{0:+.4}'.format(stress[0,0]*1e-6), '{0:+.4}'.format(stress[1,0]*1e-6), '{0:+.4}'.format(stress[2,0]*1e-6)
stress = load1.list_ply_stresses_xy[i*3 + 1]
print "centroid", i+1, '{0:+.4}'.format(stress[0,0]*1e-6), '{0:+.4}'.format(stress[1,0]*1e-6), '{0:+.4}'.format(stress[2,0]*1e-6)
stress = load1.list_ply_stresses_xy[i*3 + 2]
print "top ", i+1, '{0:+.4}'.format(stress[0,0]*1e-6), '{0:+.4}'.format(stress[1,0]*1e-6), '{0:+.4}'.format(stress[2,0]*1e-6)
In [ ]: