CHRIS / polymers.py
David Saylor
fixed Ap for PMMA
923e7e7
raw
history blame
1.34 kB
import numpy as np
def Polymers():
# Named polymer matrices and Ap values
nPoly = 20
PolyData = np.zeros((nPoly,), dtype=[('name', 'a75'), ('Ap', 'f')])
PolyData[0] = ('Silicone', 16.9)
PolyData[1] = ('Polyethylene (density <= 0.94 g/cm3)', 11.7)
PolyData[2] = ('Polyethylene (density > 0.94 g/cm3)', 8.2)
PolyData[3] = ('Polyethylene terephthalate', 2.6)
PolyData[4] = ('Polyurethane (polyether)', 11.7)
PolyData[5] = ('Polycarbonate', 2.6)
PolyData[6] = ('Polyoxymethylene', 8.2)
PolyData[7] = ('Poly(methyl methacrylate)', 2.6)
PolyData[8] = ('Acrylonitrile butadiene styrene', 8.2)
PolyData[9] = ('Polyether block amide', 11.7)
PolyData[10] = ('Polyamide', 2.6)
PolyData[11] = ('Polystyrene', 2.6)
PolyData[12] = ('Polyvinyl chloride (plasticized)', 16.9)
PolyData[13] = ('Polytetrafluoroethylene', 8.2)
PolyData[14] = ('Polyvinyl acetate', 11.7)
PolyData[15] = ('Polypropylene', 8.2)
PolyData[16] = ('Polybutylene terephthalate', 2.6)
PolyData[17] = ('Polyetheretherketone', 2.6)
PolyData[18] = ('Fluorinated ethylene propylene', 8.2)
PolyData[19] = ('Other polymer', None)
# Convert the list to a format the html likes
polymers = np.zeros(nPoly, dtype='object')
Ap = np.zeros(nPoly)
for i in range(nPoly):
polymers[i] = PolyData[i][0].decode('UTF-8')
Ap[i] = PolyData[i][1]
return polymers, Ap