Functions | Variables
glue Namespace Reference

Functions

def tot_weight (compos)
 
def tot_fractions ()
 
def elem_frac (compos, elem)
 
def elem_frac_total (elem)
 
def glue_composition ()
 

Variables

dictionary compositions
 
dictionary fractions
 

Function Documentation

def glue.elem_frac (   compos,
  elem 
)

Definition at line 68 of file glue.py.

References tot_weight().

Referenced by elem_frac_total().

68 def elem_frac(compos, elem):
69  if elem in compos:
70  return compos[elem] * atomic_weight[elem] / tot_weight(compos)
71  else:
72  return 0
73 
def tot_weight(compos)
Definition: glue.py:56
def elem_frac(compos, elem)
Definition: glue.py:68
def glue.elem_frac_total (   elem)

Definition at line 74 of file glue.py.

References elem_frac(), and tot_fractions().

74 def elem_frac_total(elem):
75  frac = 0
76  for material, compos in compositions.items():
77  frac += elem_frac(compos, elem) * fractions[material]
78  return frac / tot_fractions()
79 
def elem_frac_total(elem)
Definition: glue.py:74
def elem_frac(compos, elem)
Definition: glue.py:68
def tot_fractions()
Definition: glue.py:62
def glue.glue_composition ( )

Definition at line 80 of file glue.py.

References util.make_composition().

81  return make_composition("glue", fractions, compositions)
82 
def glue_composition()
Definition: glue.py:80
def make_composition(name, fractions, compositions)
Definition: util.py:46
def glue.tot_fractions ( )

Definition at line 62 of file glue.py.

Referenced by elem_frac_total().

63  tions = 0
64  for material, fraction in fractions.items():
65  tions += fraction
66  return tions
67 
def tot_fractions()
Definition: glue.py:62
def glue.tot_weight (   compos)

Definition at line 56 of file glue.py.

Referenced by elem_frac().

56 def tot_weight(compos):
57  weight = 0
58  for element, number in compos.items():
59  weight += number * atomic_weight[element]
60  return weight
61 
def tot_weight(compos)
Definition: glue.py:56

Variable Documentation

dictionary glue.compositions
Initial value:
1 = {
2  # Methacrylic acid
3  'adhesive MAA' : { 'C':4, 'H':6, 'O':2 },
4 
5  # methyl methacrylate
6  'adhesive MMA' : { 'C':5, 'H':8, 'O':2 },
7 
8  # Cholorosulfonated polyethylene
9  'adhesive CSP' : { 'C':101, 'H':173, 'Cl':13, 'O':2, 'S':1 },
10 
11  # Carbon tetrachloride
12  'adhesive CCl4' : { 'C':1, 'Cl':4 },
13 
14  # p(BD/MMA/STY), CAS 25053092,
15  # 2-Propenoic acid, 2-methyl-, methyl ester, polymer with
16  # 1,3-butadiene and ethenylbenzene
17  # Not sure this is really an exact formula. Given on one data sheet and
18  # listed as "trade secret" on another.
19  'adhesive other': { 'C':17, 'H': 22, 'O': 2 },
20 
21  'activator MMA': { 'C':5, 'H':8, 'O':2 },
22 
23  # 3,5-Diethyl-1,2-dihydro-1-phenyl-2-propylpyridine
24  'activator PDHP': { 'C':18, 'H':25, 'N': 1}
25 }

Definition at line 4 of file glue.py.

dictionary glue.fractions
Initial value:
1 = {
2  # Trade secret components are ignored, since we have no idea
3  # what they are. The rest is scaled up to match.
4 
5  # One data sheet says 1-10 and another says 5-10...
6  'adhesive MAA': 6,
7 
8  # Listed as 30-60 on one sheet and 40-60 on another. Take into account
9  # that doc-8946 suggests that 5% of the cured mixture is lost to
10  # outgassing MMA vapors.
11  'adhesive MMA': 47.7-2*5,
12 
13  # Listed as 20-30 on one sheet and 30-60 on another. What.
14  'adhesive CSP': 30,
15 
16  # 0.1-1 on one sheet, <1 on another.
17  'adhesive CCl4': 0.3,
18 
19  # Both sheets say 60-100. Amazing!
20  'activator MMA': 80,
21 
22  # 1-5 on one sheet and 1-10 on another
23  'activator PDHP': 4,
24 }

Definition at line 30 of file glue.py.