thermoengine-phaselibrary 2.0.0.dev9__cp310-cp310-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- thermoengine_phaselibrary/MELTS/Clinopyroxene_SG94.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Feldspar_EG90.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Fluid_DZ06.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Garnet_BK91.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Liquid_v1_0.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Liquid_v1_2.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Liquid_v2_0.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Olivine_HSG.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Orthopyroxene_SG94.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/PurePhases_Berman.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/Spinel_SG91.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/MELTS/__init__.py +7 -0
- thermoengine_phaselibrary/MELTS/aqueous.cp310-win_amd64.pyd +0 -0
- thermoengine_phaselibrary/__init__.py +4 -0
- thermoengine_phaselibrary/databases/MELTS_v1_0.json +49 -0
- thermoengine_phaselibrary/databases/MELTS_v1_0_Berman_PurePhases.json +106 -0
- thermoengine_phaselibrary/databases/MELTS_v1_2.json +48 -0
- thermoengine_phaselibrary/databases/MELTS_v2_0.json +49 -0
- thermoengine_phaselibrary/databases/__init__.py +0 -0
- thermoengine_phaselibrary/phase_module_lookup/MELTS.json +201 -0
- thermoengine_phaselibrary/phase_module_lookup/__init__.py +0 -0
- thermoengine_phaselibrary/utils.py +32 -0
- thermoengine_phaselibrary-2.0.0.dev9.dist-info/METADATA +693 -0
- thermoengine_phaselibrary-2.0.0.dev9.dist-info/RECORD +27 -0
- thermoengine_phaselibrary-2.0.0.dev9.dist-info/WHEEL +5 -0
- thermoengine_phaselibrary-2.0.0.dev9.dist-info/licenses/LICENSE +661 -0
- thermoengine_phaselibrary-2.0.0.dev9.dist-info/top_level.txt +1 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from . import Olivine_HSG, Liquid_v1_0, Liquid_v1_2, Liquid_v2_0, Spinel_SG91
|
|
2
|
+
from . import Clinopyroxene_SG94, Orthopyroxene_SG94, aqueous, PurePhases_Berman
|
|
3
|
+
from . import Garnet_BK91, Feldspar_EG90, Fluid_DZ06
|
|
4
|
+
|
|
5
|
+
__all__ = [Olivine_HSG, Liquid_v1_0, Liquid_v1_2, Liquid_v2_0,
|
|
6
|
+
Spinel_SG91, Clinopyroxene_SG94, Orthopyroxene_SG94, aqueous,
|
|
7
|
+
PurePhases_Berman, Garnet_BK91, Feldspar_EG90, Fluid_DZ06]
|
|
Binary file
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"database_name": "MELTS_v1_0",
|
|
3
|
+
"database_reference": "Gualda2012",
|
|
4
|
+
"phases": {
|
|
5
|
+
"MELTS_Olivine_HSG" : {
|
|
6
|
+
"abbrev": "Ol"
|
|
7
|
+
},
|
|
8
|
+
"MELTS_Feldspar_EG90": {
|
|
9
|
+
"abbrev": "Fsp"
|
|
10
|
+
},
|
|
11
|
+
"MELTS_Clinopyroxene_SG94": {
|
|
12
|
+
"abbrev": "Cpx"
|
|
13
|
+
},
|
|
14
|
+
"MELTS_Orthopyroxene_SG94": {
|
|
15
|
+
"abbrev": "Opx"
|
|
16
|
+
},
|
|
17
|
+
"MELTS_Spinel_SG91": {
|
|
18
|
+
"abbrev": "SplS"
|
|
19
|
+
},
|
|
20
|
+
"MELTS_Quartz_Berman": {
|
|
21
|
+
"abbrev": "Qz"
|
|
22
|
+
},
|
|
23
|
+
"MELTS_Fayalite_Berman": {
|
|
24
|
+
"abbrev": "Fa"
|
|
25
|
+
},
|
|
26
|
+
"MELTS_Magnetite_Berman": {
|
|
27
|
+
"abbrev": "Mag"
|
|
28
|
+
},
|
|
29
|
+
"MELTS_Tridymite_Berman": {
|
|
30
|
+
"abbrev": "Trd"
|
|
31
|
+
},
|
|
32
|
+
"MELTS_Kyanite_Berman": {
|
|
33
|
+
"abbrev": "Ky"
|
|
34
|
+
},
|
|
35
|
+
"MELTS_Andalusite_Berman": {
|
|
36
|
+
"abbrev": "And"
|
|
37
|
+
},
|
|
38
|
+
"MELTS_Sillimanite_Berman": {
|
|
39
|
+
"abbrev": "Sil"
|
|
40
|
+
},
|
|
41
|
+
"MELTS_Water_Berman": {
|
|
42
|
+
"abbrev": "H2O"
|
|
43
|
+
},
|
|
44
|
+
"MELTS_Liquid_v1_0": {
|
|
45
|
+
"abbrev": "Liq",
|
|
46
|
+
"_parameter_lookup": "samples/filename.json"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"database_name": "MELTS_v1_0_Berman_PurePhases",
|
|
3
|
+
"database_reference": "Ghiorso1995",
|
|
4
|
+
"phases": {
|
|
5
|
+
"MELTS_Olivine_HSG" : {
|
|
6
|
+
"abbrev": "Ol"
|
|
7
|
+
},
|
|
8
|
+
"MELTS_Feldspar_EG90": {
|
|
9
|
+
"abbrev": "Fsp"
|
|
10
|
+
},
|
|
11
|
+
"MELTS_Clinopyroxene_SG94": {
|
|
12
|
+
"abbrev": "Cpx"
|
|
13
|
+
},
|
|
14
|
+
"MELTS_Orthopyroxene_SG94": {
|
|
15
|
+
"abbrev": "Opx"
|
|
16
|
+
},
|
|
17
|
+
"MELTS_Spinel_SG91": {
|
|
18
|
+
"abbrev": "SplS"
|
|
19
|
+
},
|
|
20
|
+
"MELTS_Quartz_Berman": {
|
|
21
|
+
"abbrev": "Qz"
|
|
22
|
+
},
|
|
23
|
+
"MELTS_Fayalite_Berman": {
|
|
24
|
+
"abbrev": "Fa"
|
|
25
|
+
},
|
|
26
|
+
"MELTS_Magnetite_Berman": {
|
|
27
|
+
"abbrev": "Mag"
|
|
28
|
+
},
|
|
29
|
+
"MELTS_Tridymite_Berman": {
|
|
30
|
+
"abbrev": "Trd"
|
|
31
|
+
},
|
|
32
|
+
"MELTS_Kyanite_Berman": {
|
|
33
|
+
"abbrev": "Ky"
|
|
34
|
+
},
|
|
35
|
+
"MELTS_Andalusite_Berman": {
|
|
36
|
+
"abbrev": "And"
|
|
37
|
+
},
|
|
38
|
+
"MELTS_Sillimanite_Berman": {
|
|
39
|
+
"abbrev": "Sil"
|
|
40
|
+
},
|
|
41
|
+
"MELTS_Albite_Berman": {
|
|
42
|
+
"abbrev": "Ab"
|
|
43
|
+
},
|
|
44
|
+
"MELTS_Almandine_Berman": {
|
|
45
|
+
"abbrev": "Alm"
|
|
46
|
+
},
|
|
47
|
+
"MELTS_Anorthite_Berman": {
|
|
48
|
+
"abbrev": "An"
|
|
49
|
+
},
|
|
50
|
+
"MELTS_Antigorite_Berman": {
|
|
51
|
+
"abbrev": "Atg"
|
|
52
|
+
},
|
|
53
|
+
"MELTS_Coesite_Berman": {
|
|
54
|
+
"abbrev": "Coe"
|
|
55
|
+
},
|
|
56
|
+
"MELTS_Corundum_Berman": {
|
|
57
|
+
"abbrev": "Crn"
|
|
58
|
+
},
|
|
59
|
+
"MELTS_Diopside_Berman": {
|
|
60
|
+
"abbrev": "Di"
|
|
61
|
+
},
|
|
62
|
+
"MELTS_Orthoenstatite_Berman": {
|
|
63
|
+
"abbrev": "En"
|
|
64
|
+
},
|
|
65
|
+
"MELTS_Ferrosilite_Berman": {
|
|
66
|
+
"abbrev": "Fs"
|
|
67
|
+
},
|
|
68
|
+
"MELTS_Forsterite_Berman": {
|
|
69
|
+
"abbrev": "Fo"
|
|
70
|
+
},
|
|
71
|
+
"MELTS_Hematite_Berman": {
|
|
72
|
+
"abbrev": "Hem"
|
|
73
|
+
},
|
|
74
|
+
"MELTS_Hydrogen_Gas_Berman": {
|
|
75
|
+
"abbrev": "H2"
|
|
76
|
+
},
|
|
77
|
+
"MELTS_Jadeite_Berman": {
|
|
78
|
+
"abbrev": "Jd"
|
|
79
|
+
},
|
|
80
|
+
"MELTS_Potassium_Feldspar_Berman": {
|
|
81
|
+
"abbrev": "Or"
|
|
82
|
+
},
|
|
83
|
+
"MELTS_Muscovite_Berman": {
|
|
84
|
+
"abbrev": "Ms"
|
|
85
|
+
},
|
|
86
|
+
"MELTS_Oxygen_Gas_Berman": {
|
|
87
|
+
"abbrev": "O2"
|
|
88
|
+
},
|
|
89
|
+
"MELTS_Pyrope_Berman": {
|
|
90
|
+
"abbrev": "Prp"
|
|
91
|
+
},
|
|
92
|
+
"MELTS_Spinel_Berman": {
|
|
93
|
+
"abbrev": "Spl"
|
|
94
|
+
},
|
|
95
|
+
"MELTS_Tremolite_Berman": {
|
|
96
|
+
"abbrev": "Tr"
|
|
97
|
+
},
|
|
98
|
+
"MELTS_Water_Berman": {
|
|
99
|
+
"abbrev": "H2O"
|
|
100
|
+
},
|
|
101
|
+
"MELTS_Liquid_v1_0": {
|
|
102
|
+
"abbrev": "Liq",
|
|
103
|
+
"_parameter_lookup": "samples/filename.json"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"database_name": "MELTS_v1_2",
|
|
3
|
+
"database_reference": "Gualda2015",
|
|
4
|
+
"phases": {
|
|
5
|
+
"MELTS_Olivine_HSG" : {
|
|
6
|
+
"abbrev": "Ol"
|
|
7
|
+
},
|
|
8
|
+
"MELTS_Feldspar_EG90": {
|
|
9
|
+
"abbrev": "Fsp",
|
|
10
|
+
"dH_K_Feldspar": 1000.0
|
|
11
|
+
},
|
|
12
|
+
"MELTS_Clinopyroxene_SG94": {
|
|
13
|
+
"abbrev": "Cpx"
|
|
14
|
+
},
|
|
15
|
+
"MELTS_Orthopyroxene_SG94": {
|
|
16
|
+
"abbrev": "Opx"
|
|
17
|
+
},
|
|
18
|
+
"MELTS_Spinel_SG91": {
|
|
19
|
+
"abbrev": "SplS"
|
|
20
|
+
},
|
|
21
|
+
"MELTS_Quartz_Berman": {
|
|
22
|
+
"abbrev": "Qz",
|
|
23
|
+
"H_TrPr": -1291.0
|
|
24
|
+
},
|
|
25
|
+
"MELTS_Tridymite_Berman": {
|
|
26
|
+
"abbrev": "Trd"
|
|
27
|
+
},
|
|
28
|
+
"MELTS_Kyanite_Berman": {
|
|
29
|
+
"abbrev": "Ky"
|
|
30
|
+
},
|
|
31
|
+
"MELTS_Andalusite_Berman": {
|
|
32
|
+
"abbrev": "And"
|
|
33
|
+
},
|
|
34
|
+
"MELTS_Sillimanite_Berman": {
|
|
35
|
+
"abbrev": "Sil"
|
|
36
|
+
},
|
|
37
|
+
"MELTS_Fluid_DZ06": {
|
|
38
|
+
"abbrev": "Fl"
|
|
39
|
+
},
|
|
40
|
+
"MELTS_Garnet_BK91": {
|
|
41
|
+
"abbrev": "Grt"
|
|
42
|
+
},
|
|
43
|
+
"MELTS_Liquid_v1_2": {
|
|
44
|
+
"abbrev": "Liq",
|
|
45
|
+
"_parameter_lookup": "samples/filename.json"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"database_name": "MELTS_v2_0",
|
|
3
|
+
"database_reference": "Wolf2025",
|
|
4
|
+
"phases": {
|
|
5
|
+
"MELTS_Olivine_HSG" : {
|
|
6
|
+
"abbrev": "Ol"
|
|
7
|
+
},
|
|
8
|
+
"MELTS_Feldspar_EG90": {
|
|
9
|
+
"abbrev": "Fsp"
|
|
10
|
+
},
|
|
11
|
+
"MELTS_Clinopyroxene_SG94": {
|
|
12
|
+
"abbrev": "Cpx"
|
|
13
|
+
},
|
|
14
|
+
"MELTS_Orthopyroxene_SG94": {
|
|
15
|
+
"abbrev": "Opx"
|
|
16
|
+
},
|
|
17
|
+
"MELTS_Spinel_SG91": {
|
|
18
|
+
"abbrev": "SplS"
|
|
19
|
+
},
|
|
20
|
+
"MELTS_Quartz_Berman": {
|
|
21
|
+
"abbrev": "Qz"
|
|
22
|
+
},
|
|
23
|
+
"MELTS_Fayalite_Berman": {
|
|
24
|
+
"abbrev": "Fa"
|
|
25
|
+
},
|
|
26
|
+
"MELTS_Magnetite_Berman": {
|
|
27
|
+
"abbrev": "Mag"
|
|
28
|
+
},
|
|
29
|
+
"MELTS_Tridymite_Berman": {
|
|
30
|
+
"abbrev": "Trd"
|
|
31
|
+
},
|
|
32
|
+
"MELTS_Kyanite_Berman": {
|
|
33
|
+
"abbrev": "Ky"
|
|
34
|
+
},
|
|
35
|
+
"MELTS_Andalusite_Berman": {
|
|
36
|
+
"abbrev": "And"
|
|
37
|
+
},
|
|
38
|
+
"MELTS_Sillimanite_Berman": {
|
|
39
|
+
"abbrev": "Sil"
|
|
40
|
+
},
|
|
41
|
+
"MELTS_aqueous": {
|
|
42
|
+
"abbrev": "H2O"
|
|
43
|
+
},
|
|
44
|
+
"MELTS_Liquid_v2_0": {
|
|
45
|
+
"abbrev": "Liq",
|
|
46
|
+
"_parameter_lookup": "samples/filename.json"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
{
|
|
2
|
+
"MELTS_Liquid_v1_0": {
|
|
3
|
+
"module_name": "MELTS.Liquid_v1_0",
|
|
4
|
+
"type": "solution",
|
|
5
|
+
"interface": "coder"
|
|
6
|
+
},
|
|
7
|
+
"MELTS_Liquid_v1_2": {
|
|
8
|
+
"module_name": "MELTS.Liquid_v1_2",
|
|
9
|
+
"type": "solution",
|
|
10
|
+
"interface": "coder"
|
|
11
|
+
},
|
|
12
|
+
"MELTS_Liquid_v2_0": {
|
|
13
|
+
"module_name": "MELTS.Liquid_v2_0",
|
|
14
|
+
"type": "solution",
|
|
15
|
+
"interface": "coder"
|
|
16
|
+
},
|
|
17
|
+
"MELTS_Olivine_HSG": {
|
|
18
|
+
"module_name": "MELTS.Olivine_HSG",
|
|
19
|
+
"type": "solution",
|
|
20
|
+
"interface": "coder"
|
|
21
|
+
},
|
|
22
|
+
"MELTS_Spinel_SG91": {
|
|
23
|
+
"module_name": "MELTS.Spinel_SG91",
|
|
24
|
+
"type": "solution",
|
|
25
|
+
"interface": "coder"
|
|
26
|
+
},
|
|
27
|
+
"MELTS_Feldspar_EG90": {
|
|
28
|
+
"module_name": "MELTS.Feldspar_EG90",
|
|
29
|
+
"type": "solution",
|
|
30
|
+
"interface": "coder"
|
|
31
|
+
},
|
|
32
|
+
"MELTS_Clinopyroxene_SG94": {
|
|
33
|
+
"module_name": "MELTS.Clinopyroxene_SG94",
|
|
34
|
+
"type": "solution",
|
|
35
|
+
"interface": "coder"
|
|
36
|
+
},
|
|
37
|
+
"MELTS_Orthopyroxene_SG94": {
|
|
38
|
+
"module_name": "MELTS.Orthopyroxene_SG94",
|
|
39
|
+
"type": "solution",
|
|
40
|
+
"interface": "coder"
|
|
41
|
+
},
|
|
42
|
+
"MELTS_Magnetite_Berman": {
|
|
43
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
44
|
+
"type": "pure",
|
|
45
|
+
"interface": "coder"
|
|
46
|
+
},
|
|
47
|
+
"MELTS_Kyanite_Berman": {
|
|
48
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
49
|
+
"type": "pure",
|
|
50
|
+
"interface": "coder"
|
|
51
|
+
},
|
|
52
|
+
"MELTS_Sillimanite_Berman": {
|
|
53
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
54
|
+
"type": "pure",
|
|
55
|
+
"interface": "coder"
|
|
56
|
+
},
|
|
57
|
+
"MELTS_Andalusite_Berman": {
|
|
58
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
59
|
+
"type": "pure",
|
|
60
|
+
"interface": "coder"
|
|
61
|
+
},
|
|
62
|
+
"MELTS_Albite_Berman": {
|
|
63
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
64
|
+
"type": "pure",
|
|
65
|
+
"interface": "coder"
|
|
66
|
+
},
|
|
67
|
+
"MELTS_Almandine_Berman": {
|
|
68
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
69
|
+
"type": "pure",
|
|
70
|
+
"interface": "coder"
|
|
71
|
+
},
|
|
72
|
+
"MELTS_Anorthite_Berman": {
|
|
73
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
74
|
+
"type": "pure",
|
|
75
|
+
"interface": "coder"
|
|
76
|
+
},
|
|
77
|
+
"MELTS_Antigorite_Berman": {
|
|
78
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
79
|
+
"type": "pure",
|
|
80
|
+
"interface": "coder"
|
|
81
|
+
},
|
|
82
|
+
"MELTS_Coesite_Berman": {
|
|
83
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
84
|
+
"type": "pure",
|
|
85
|
+
"interface": "coder"
|
|
86
|
+
},
|
|
87
|
+
"MELTS_Corundum_Berman": {
|
|
88
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
89
|
+
"type": "pure",
|
|
90
|
+
"interface": "coder"
|
|
91
|
+
},
|
|
92
|
+
"MELTS_Diopside_Berman": {
|
|
93
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
94
|
+
"type": "pure",
|
|
95
|
+
"interface": "coder"
|
|
96
|
+
},
|
|
97
|
+
"MELTS_Orthoenstatite_Berman": {
|
|
98
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
99
|
+
"type": "pure",
|
|
100
|
+
"interface": "coder"
|
|
101
|
+
},
|
|
102
|
+
"MELTS_Fayalite_Berman": {
|
|
103
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
104
|
+
"type": "pure",
|
|
105
|
+
"interface": "coder"
|
|
106
|
+
},
|
|
107
|
+
"MELTS_Ferrosilite_Berman": {
|
|
108
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
109
|
+
"type": "pure",
|
|
110
|
+
"interface": "coder"
|
|
111
|
+
},
|
|
112
|
+
"MELTS_Forsterite_Berman": {
|
|
113
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
114
|
+
"type": "pure",
|
|
115
|
+
"interface": "coder"
|
|
116
|
+
},
|
|
117
|
+
"MELTS_Hematite_Berman": {
|
|
118
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
119
|
+
"type": "pure",
|
|
120
|
+
"interface": "coder"
|
|
121
|
+
},
|
|
122
|
+
"MELTS_Hydrogen_Gas_Berman": {
|
|
123
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
124
|
+
"type": "pure",
|
|
125
|
+
"interface": "coder"
|
|
126
|
+
},
|
|
127
|
+
"MELTS_Jadeite_Berman": {
|
|
128
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
129
|
+
"type": "pure",
|
|
130
|
+
"interface": "coder"
|
|
131
|
+
},
|
|
132
|
+
"MELTS_Potassium_Feldspar_Berman": {
|
|
133
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
134
|
+
"type": "pure",
|
|
135
|
+
"interface": "coder"
|
|
136
|
+
},
|
|
137
|
+
"MELTS_Muscovite_Berman": {
|
|
138
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
139
|
+
"type": "pure",
|
|
140
|
+
"interface": "coder"
|
|
141
|
+
},
|
|
142
|
+
"MELTS_Oxygen_Gas_Berman": {
|
|
143
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
144
|
+
"type": "pure",
|
|
145
|
+
"interface": "coder"
|
|
146
|
+
},
|
|
147
|
+
"MELTS_Pyrope_Berman": {
|
|
148
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
149
|
+
"type": "pure",
|
|
150
|
+
"interface": "coder"
|
|
151
|
+
},
|
|
152
|
+
"MELTS_Spinel_Berman": {
|
|
153
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
154
|
+
"type": "pure",
|
|
155
|
+
"interface": "coder"
|
|
156
|
+
},
|
|
157
|
+
"MELTS_Tremolite_Berman": {
|
|
158
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
159
|
+
"type": "pure",
|
|
160
|
+
"interface": "coder"
|
|
161
|
+
},
|
|
162
|
+
"MELTS_Quartz_Berman": {
|
|
163
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
164
|
+
"type": "pure",
|
|
165
|
+
"interface": "coder"
|
|
166
|
+
},
|
|
167
|
+
"MELTS_Tridymite_Berman": {
|
|
168
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
169
|
+
"type": "pure",
|
|
170
|
+
"interface": "coder"
|
|
171
|
+
},
|
|
172
|
+
"MELTS_Water_Berman": {
|
|
173
|
+
"module_name": "MELTS.PurePhases_Berman",
|
|
174
|
+
"type": "pure",
|
|
175
|
+
"interface": "coder"
|
|
176
|
+
},
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
"MELTS_SWIM_Ghiorso": {
|
|
182
|
+
"module_name": "MELTS.aqueous",
|
|
183
|
+
"type": "pure",
|
|
184
|
+
"interface": "coder"
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
"MELTS_Garnet_BK91": {
|
|
192
|
+
"module_name": "MELTS.Garnet_BK91",
|
|
193
|
+
"type": "solution",
|
|
194
|
+
"interface": "legacy"
|
|
195
|
+
},
|
|
196
|
+
"MELTS_Fluid_DZ06": {
|
|
197
|
+
"module_name": "MELTS.Fluid_DZ06",
|
|
198
|
+
"type": "solution",
|
|
199
|
+
"interface": "legacy"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import json
|
|
3
|
+
from importlib import import_module
|
|
4
|
+
from types import ModuleType
|
|
5
|
+
|
|
6
|
+
def load_json_pkg_data(filename:str, dirname:str) -> dict:
|
|
7
|
+
dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
8
|
+
pathname = os.path.join(dir_path, dirname, filename)
|
|
9
|
+
with open(pathname) as f:
|
|
10
|
+
json_data = json.load(f)
|
|
11
|
+
|
|
12
|
+
return json_data
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def load_phase_module(id:str) -> tuple[ModuleType, dict]:
|
|
17
|
+
"""
|
|
18
|
+
Returns phase module from phase library corresponding to id
|
|
19
|
+
|
|
20
|
+
Returns
|
|
21
|
+
=======
|
|
22
|
+
- module
|
|
23
|
+
- metadata dict
|
|
24
|
+
"""
|
|
25
|
+
model_family = id.split('_')[0]
|
|
26
|
+
metadata = load_json_pkg_data(f"{model_family}.json", 'phase_module_lookup')
|
|
27
|
+
metadata = metadata[id]
|
|
28
|
+
metadata['phase_id'] = id
|
|
29
|
+
module = import_module(f"thermoengine_phaselibrary.{metadata['module_name']}")
|
|
30
|
+
|
|
31
|
+
return module, metadata
|
|
32
|
+
|