本文整理汇总了Python中burnman.mineral.Mineral类的典型用法代码示例。如果您正苦于以下问题:Python Mineral类的具体用法?Python Mineral怎么用?Python Mineral使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mineral类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
self.params = {
'equation_of_state':'slb3',
'V_0': 11.24e-6,
'K_0': 161.0e9,
'Kprime_0': 3.8,
'G_0': 131.0e9,
'Gprime_0': 2.1,
'molar_mass': .0403,
'n': 2,
'Debye_0': 767.,
'grueneisen_0': 1.36,
'q_0': 1.7, #1.7
'eta_s_0': 2.8 } # 2.8
self.uncertainties = {
'err_K_0': 3.e9,
'err_Kprime_0':.2,
'err_G_0':1.0e9,
'err_Gprime_0':.1,
'err_Debye_0':9.,
'err_grueneisen_0':.05,
'err_q_0':.2,
'err_eta_s_0':.2 }
Mineral.__init__(self)
示例2: __init__
def __init__(self):
self.params = {
'equation_of_state':'slb3',
'V_0': 24.45e-6,
'K_0': 250.5e9,
'Kprime_0': 4.01,
'G_0': 172.9e9,
'Gprime_0': 1.74,
'molar_mass': .1000,
'n': 5,
'Debye_0': 905.9,
'grueneisen_0': 1.44,
'q_0': 1.09,
'eta_s_0': 2.13 } #2.6
self.uncertainties = {
'err_K_0': 3.e9,
'err_Kprime_0': 0.1,
'err_G_0': 2.e9,
'err_Gprime_0' : 0.0,
'err_Debye_0': 5.,
'err_grueneisen_0':.05,
'err_q_0': .3,
'err_eta_s_0':.3}
Mineral.__init__(self)
示例3: __init__
def __init__(self):
formula='CO2'
formula = dictionarize_formula(formula)
self.params = {
'name': 'carbon dioxide',
'formula': formula,
'equation_of_state': 'cork',
'cork_params': [[5.45963e1,-8.63920e0], [9.18301e-1], [-3.30558e-2,2.30524e-3], [6.93054e-4,-8.38293e-5]],
'cork_T': 304.2,
'cork_P': 0.0738e8,
'H_0': -393.51e3,
'S_0': 213.7,
'Cp': [87.8, -2.644e-3, 706.4e3, -998.9]}
Mineral.__init__(self)
示例4: __init__
def __init__(self):
self.params = {
'equation_of_state':'mgd2',
'V_0': 24.43e-6,
'K_0': 250.0e9,
'Kprime_0': 4.0,
'G_0': 175.0e9,
'Gprime_0': 1.8,
'molar_mass': .1020,
'n': 5,
'Debye_0': 1070.,
'grueneisen_0': 1.48,
'q_0': 1.4}
Mineral.__init__(self)
示例5: __init__
def __init__(self):
self.params = {
'equation_of_state':'slb3',
'V_0': 11.24e-6,
'K_0': 161.0e9,
'Kprime_0': 3.8,
'G_0': 131.0e9,
'Gprime_0': 2.1,
'molar_mass': .0403,
'n': 2,
'Debye_0': 773.,
'grueneisen_0': 1.5,
'q_0': 1.5,
'eta_s_0': 2.8 }
Mineral.__init__(self)
示例6: __init__
def __init__(self):
self.params = {
'equation_of_state':'slb2',
'V_0': 24.607e-6,
'K_0': 251.9e9,
'Kprime_0': 4.01,
'G_0': 164.7e9,
'Gprime_0': 1.58,
'molar_mass': .102,
'n': 5,
'Debye_0': 1054.,
'grueneisen_0': 1.48,
'q_0': 1.4,
'eta_s_0': 2.4 }
Mineral.__init__(self)
示例7: set_state
def set_state(self, pressure, temperature):
for mat in self.base_materials:
mat.method = self.method
mat.set_state(pressure, temperature)
itrange = range(0, len(self.base_materials))
self.params = {}
# some do arithmetic averaging of the end members
for prop in self.base_materials[0].params:
try:
self.params[prop] = sum([ self.base_materials[i].params[prop] * self.molar_fraction[i] for i in itrange ])
except TypeError:
#if there is a type error, it is probably a string. Just go with the value of the first base_material.
self.params[prop] = self.base_materials[0].params[prop]
Mineral.set_state(self, pressure, temperature)
示例8: __init__
def __init__(self):
formula='MgSiO3'
formula = dictionarize_formula(formula)
self.params = {
'name': 'mcor',
'formula': formula,
'equation_of_state': 'hp_tmt',
'H_0': -1468000.0 ,
'S_0': 59.3 ,
'V_0': 2.635e-05 ,
'Cp': [147.8, 0.002015, -2395000.0, -801.8] ,
'a_0': 2.12e-05 ,
'K_0': 2.11e+11 ,
'Kprime_0': 4.55 ,
'Kdprime_0': -2.2e-11 ,
'n': sum(formula.values()),
'molar_mass': formula_mass(formula, atomic_masses)}
self.uncertainties = {
'err_H_0': 880.0 }
Mineral.__init__(self)
示例9: __init__
def __init__(self):
formula='Fe1.0'
formula = dictionarize_formula(formula)
self.params = {
'name': 'BCC iron',
'formula': formula,
'equation_of_state': 'hp_tmt',
'H_0': 9149.0 ,
'S_0': 36.868 ,
'V_0': 7.09e-06 ,
'Cp': [21.09, 0.0101455, -221508., 47.1947] ,
'a_0': 3.56e-05 ,
'K_0': 1.64e+11 ,
'Kprime_0': 5.16 ,
'Kdprime_0': -3.1e-11 ,
'n': sum(formula.values()),
'molar_mass': formula_mass(formula, atomic_masses),
'curie_temperature': [1043., 0.0] ,
'magnetic_moment': [2.22, 0.0] ,
'magnetic_structural_parameter': 0.4 }
Mineral.__init__(self)