def read_crystal_from_melts(self, filename=None):
crystal_fraction = []
temperature = []
if filename == None:
filename = '../pyflowgo/MaunaUlu74/Results-melts_MU74.csv'
with open(filename) as csvfile:
f_crystal_fraction = csv.DictReader(csvfile, delimiter=',')
for row in f_crystal_fraction:
temperature.append(float(row['temperature'])+273.15)
crystal_fraction.append(float(row['fraq_microlite']))
self._crystal_spline = interpolate.InterpolatedUnivariateSpline(temperature, crystal_fraction, k=1.)
flowgo_crystallization_rate_model_melts.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录