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()
In [4]:
layer1.define("Layer_1", 1, 0)
layer2.define("Layer_2", 1, 45)
In [5]:
layer1.update()
layer2.update()
In [6]:
laminate1 = pyPLY.Laminate()
laminate1.add_Lamina(layer1)
laminate1.add_Lamina(layer2)
In [7]:
laminate1.update()
from numpy import set_printoptions
set_printoptions(suppress=True)
# print the results
print "A = ", laminate1.A
print "B = ", laminate1.B
print "D = ", laminate1.D
print "Ex = ", '{0:10.0f}'.format(laminate1.Ex)
In [8]:
from pyPLYTools import LXMatrix
from IPython.display import Latex
Latex("$B = " + LXMatrix(laminate1.B, '.3e', ipython=True) + "$")
Out[8]:
In [9]:
Latex("$D = " + LXMatrix(laminate1.D, '.3e', ipython=True) + "$")
Out[9]:
In [10]:
Latex("$E_x = " + '{0:10.0f}'.format(laminate1.Ex) + "$")
Out[10]: