David Saylor commited on
Commit
1f8322e
·
1 Parent(s): f7574c7

cleaned up unused function

Browse files
Files changed (1) hide show
  1. CHRIS.py +0 -19
CHRIS.py CHANGED
@@ -116,24 +116,5 @@ def app_post():
116
  chemName=chemName, impurity=impurity, iMOS=iMOS)
117
 
118
 
119
- def calcexposure(MW, amount, vol, area, time, pIndex):
120
- Ap = np.array((16.9, 11.7, 8.2, 2.6))
121
- L = vol / area
122
- if PolyData[pIndex][1] < 4:
123
- D = 1e4 * np.exp(Ap[PolyData[pIndex][1]] - 0.1351 * MW ** (2. / 3.) + 0.003 * MW - 10454. / 310.)
124
- else:
125
- Va = 4.76 + 1.32 * MW
126
- D = 7.4e-8 * (18. * 2.6) ** 0.5 * 310. / 0.6913 / Va ** 0.6
127
-
128
- D = D * 3600.
129
- tau = D * time / L ** 2.
130
- if tau <= 0.2:
131
- release = 2. * amount * np.sqrt(tau / np.pi)
132
- else:
133
- release = amount * (1. - (8. / (np.pi ** 2.)) * np.exp(-tau * np.pi ** 2. / 4.))
134
-
135
- return release, D
136
-
137
-
138
  if __name__ == '__main__':
139
  app.run()
 
116
  chemName=chemName, impurity=impurity, iMOS=iMOS)
117
 
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  if __name__ == '__main__':
120
  app.run()