In [1]:
import pyPLY
In [2]:
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)
In [3]:
layer1 = pyPLY.Lamina()
layer2 = pyPLY.Lamina()
layer3 = pyPLY.Lamina()
layer4 = pyPLY.Lamina()
In [4]:
layer1.define("Layer_1", 1, 0)
layer2.define("Layer_2", AS4_3501_6, -45)
layer3.define("Layer_3", AS4_3501_6, 45)
layer4.define("Layer_4", 1, 0)
In [5]:
layer1.update()
layer2.update()
layer3.update()
layer4.update()
In [6]:
laminate1 = pyPLY.Laminate()
laminate1.add_Lamina(layer1)
laminate1.add_Lamina(layer2)
laminate1.add_Lamina(layer3)
laminate1.add_Lamina(layer4)
In [7]:
laminate1.update()
In [8]:
print "For the 0degree plies:"
print "---------------------------"
print "Qbar11 = ", '{0:10.0f}'.format(laminate1.QU[0][0,0])
print "Qbar12 = ", '{0:10.0f}'.format(laminate1.QU[0][0,1])
print "Qbar22 = ", '{0:10.0f}'.format(laminate1.QU[0][1,1])
print "Qbar16 = ", '{0:10.0f}'.format(laminate1.QU[0][1,2])
print "Qbar26 = ", '{0:10.0f}'.format(laminate1.QU[0][2,1])
print "Qbar66 = ", '{0:10.0f}'.format(laminate1.QU[0][2,2])
print "---------------------------"
print "For the +/-45degree plies:"
print "---------------------------"
print "Qbar11 = ", '{0:10.0f}'.format(laminate1.QU[1][0,0])
print "Qbar12 = ", '{0:10.0f}'.format(laminate1.QU[1][0,1])
print "Qbar22 = ", '{0:10.0f}'.format(laminate1.QU[1][1,1])
print "Qbar16 = ", '{0:10.0f}'.format(laminate1.QU[1][1,2])
print "Qbar26 = ", '{0:10.0f}'.format(laminate1.QU[1][2,1])
print "Qbar66 = ", '{0:10.0f}'.format(laminate1.QU[1][2,2])
print "---------------------------"
print "Young Modulus:"
print "---------------------------"
print "A11 = ", '{0:10.0f}'.format(laminate1.A[0,0])
print "A12 = ", '{0:10.0f}'.format(laminate1.A[0,1])
print "A22 = ", '{0:10.0f}'.format(laminate1.A[1,1])
print "A16 = ", '{0:10.0f}'.format(laminate1.A[1,2])
print "A26 = ", '{0:10.0f}'.format(laminate1.A[2,1])
print "A66 = ", '{0:10.0f}'.format(laminate1.A[2,2])
print "---------------------------"
print "Young Modulus:"
print "---------------------------"
print "Ex = ", '{0:10.0f}'.format(laminate1.Ex)
In [9]:
from pyPLYTools import LXMatrix
from IPython.display import Latex
Latex("$Q_{0,90} = " + LXMatrix(laminate1.QU[0], '.3e', ipython=True) + "$")
Out[9]:
In [10]:
Latex("$Q_{+/-45} = " + LXMatrix(laminate1.QU[1], '.3e', ipython=True) + "$")
Out[10]:
In [11]:
Latex("$A = " + LXMatrix(laminate1.A, '.3e', ipython=True) + "$")
Out[11]:
In [12]:
Latex("$E_x = " + '{0:10.0f}'.format(laminate1.Ex) + "$")
Out[12]: