In [1]:
import pyPLY
AS4_3501_6 = pyPLY.CompositeMaterial()
AS4_3501_6.define("AS4_3501_6", "imperial", E11=20010000.0, E22=1301000.0, G12=1001000.0, niu12=0.3, thk=0.005,
Sigma_ut0 = 616.0, Sigma_uc0 = 355.0, Sigma_ut90 = 42.0, Sigma_uc90 = 105.0, Tau_u = 50.0,
alpha_11 = -0.04e-6, alpha_22 = 18.0e-6, beta_11 = 0.01, beta_22 = 0.35)
layer1 = pyPLY.Lamina()
layer2 = pyPLY.Lamina()
layer1.define("Layer_1", 1, 0)
layer2.define("Layer_2", 1, 45)
layer1.update()
layer2.update()
laminate1 = pyPLY.Laminate()
laminate1.add_Lamina(layer1)
laminate1.add_Lamina(layer2)
laminate1.update()
load1 = pyPLY.Loading()
load1.define_Load(0,0,0,2.5,0,0,0,0)
load1.apply_To(laminate1)
from numpy import set_printoptions
set_printoptions(suppress=True)
print "A=", laminate1.A
In [2]:
print "B=", laminate1.B
In [3]:
print "D=", laminate1.D
In [4]:
print "load1.epsilon_K=", load1.epsilon_K
In [5]:
print " layerNo", "epsx", " epsy", " gammaxy"
for i in range (0, 2):
strain = load1.list_ply_strains_xy[i*3 + 0]
print "bottom ", i+1, '{0:+.4}'.format(strain[0,0]), '{0:+.4}'.format(strain[1,0]), '{0:+.4}'.format(strain[2,0])
strain = load1.list_ply_strains_xy[i*3 + 1]
print "centroid", i+1, '{0:+.4}'.format(strain[0,0]), '{0:+.4}'.format(strain[1,0]), '{0:+.4}'.format(strain[2,0])
strain = load1.list_ply_strains_xy[i*3 + 2]
print "top ", i+1, '{0:+.4}'.format(strain[0,0]), '{0:+.4}'.format(strain[1,0]), '{0:+.4}'.format(strain[2,0])
In [6]:
print " layerNo", "sigmax", " sigmay", " sigmaxy"
for i in range (0, 2):
stress = load1.list_ply_stresses_xy[i*3 + 0]
print "bottom ", i+1, '{0:+.4}'.format(stress[0,0]), '{0:+.4}'.format(stress[1,0]), '{0:+.4}'.format(stress[2,0])
stress = load1.list_ply_stresses_xy[i*3 + 1]
print "centroid", i+1, '{0:+.4}'.format(stress[0,0]), '{0:+.4}'.format(stress[1,0]), '{0:+.4}'.format(stress[2,0])
stress = load1.list_ply_stresses_xy[i*3 + 2]
print "top ", i+1, '{0:+.4}'.format(stress[0,0]), '{0:+.4}'.format(stress[1,0]), '{0:+.4}'.format(stress[2,0])
In [7]:
print " layerNo", "eps11", " eps22", " gamma12"
for i in range (0, 2):
strain = load1.list_ply_strains_12[i*3 + 0]
print "bottom ", i+1, '{0:+.4}'.format(strain[0,0]), '{0:+.4}'.format(strain[1,0]), '{0:+.4}'.format(strain[2,0])
strain = load1.list_ply_strains_12[i*3 + 1]
print "centroid", i+1, '{0:+.4}'.format(strain[0,0]), '{0:+.4}'.format(strain[1,0]), '{0:+.4}'.format(strain[2,0])
strain = load1.list_ply_strains_12[i*3 + 2]
print "top ", i+1, '{0:+.4}'.format(strain[0,0]), '{0:+.4}'.format(strain[1,0]), '{0:+.4}'.format(strain[2,0])
In [8]:
print " layerNo", "sigma11", " sigma22", " tau12"
for i in range (0, 2):
stress = load1.list_ply_stresses_12[i*3 + 0]
print "bottom ", i+1, '{0:+.4}'.format(stress[0,0]), '{0:+.4e}'.format(stress[1,0]), '{0:+.4}'.format(stress[2,0])
stress = load1.list_ply_stresses_12[i*3 + 1]
print "centroid", i+1, '{0:+.4}'.format(stress[0,0]), '{0:+.4e}'.format(stress[1,0]), '{0:+.4}'.format(stress[2,0])
stress = load1.list_ply_stresses_12[i*3 + 2]
print "top ", i+1, '{0:+.4}'.format(stress[0,0]), '{0:+.4e}'.format(stress[1,0]), '{0:+.4}'.format(stress[2,0])
print