PetThermoTools 0.2.30__py3-none-any.whl → 0.2.31__py3-none-any.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.
- PetThermoTools/MELTS.py +15 -14
- PetThermoTools/PhaseDiagrams.py +12 -7
- PetThermoTools/_version.py +1 -1
- {PetThermoTools-0.2.30.dist-info → PetThermoTools-0.2.31.dist-info}/METADATA +1 -1
- {PetThermoTools-0.2.30.dist-info → PetThermoTools-0.2.31.dist-info}/RECORD +7 -7
- {PetThermoTools-0.2.30.dist-info → PetThermoTools-0.2.31.dist-info}/WHEEL +0 -0
- {PetThermoTools-0.2.30.dist-info → PetThermoTools-0.2.31.dist-info}/top_level.txt +0 -0
PetThermoTools/MELTS.py
CHANGED
@@ -911,21 +911,22 @@ def path_MELTS(Model = None, comp = None, Frac_solid = None, Frac_fluid = None,
|
|
911
911
|
bulk = list(100*np.array(bulk)/np.sum(bulk))
|
912
912
|
|
913
913
|
if Suppress_except is False:
|
914
|
-
if Suppress
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
if p != "
|
922
|
-
|
923
|
-
|
924
|
-
if type(Suppress) == list:
|
925
|
-
for p in Suppress:
|
926
|
-
melts.engine.setSystemProperties("Suppress", p)
|
914
|
+
if Suppress is not None:
|
915
|
+
if Suppress == "All":
|
916
|
+
melts.engine.pressure = np.random.normal(500, 500/10)
|
917
|
+
melts.engine.temperature = 1200 + 200
|
918
|
+
melts.engine.setBulkComposition(bulk)
|
919
|
+
PL = melts.engine.calcSaturationState()
|
920
|
+
for p in PL:
|
921
|
+
if p != "fluid":
|
922
|
+
if p != "water":
|
923
|
+
melts.engine.setSystemProperties("Suppress", p)
|
927
924
|
else:
|
928
|
-
|
925
|
+
if type(Suppress) == list:
|
926
|
+
for p in Suppress:
|
927
|
+
melts.engine.setSystemProperties("Suppress", p)
|
928
|
+
else:
|
929
|
+
melts.engine.setSystemProperties("Suppress", Suppress)
|
929
930
|
else:
|
930
931
|
melts.engine.pressure = np.random.normal(500, 500/10)
|
931
932
|
melts.engine.temperature = 1200 + 200
|
PetThermoTools/PhaseDiagrams.py
CHANGED
@@ -148,12 +148,12 @@ def phaseDiagram_calc(cores = None, Model = None, bulk = None, T_C = None, P_bar
|
|
148
148
|
j = j + 1
|
149
149
|
|
150
150
|
for i in range(cores):
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
151
|
+
if "MELTS" in Model:
|
152
|
+
T_path_C = T_flat[i*A:(i+1)*A]
|
153
|
+
P_path_bar = P_flat[i*A:(i+1)*A]
|
154
|
+
else:
|
155
|
+
T_path_C = np.array(subarrays_T[i])
|
156
|
+
P_path_bar = np.array(subarrays_P[i])
|
157
157
|
|
158
158
|
|
159
159
|
if "MELTS" in Model:
|
@@ -191,7 +191,12 @@ def phaseDiagram_calc(cores = None, Model = None, bulk = None, T_C = None, P_bar
|
|
191
191
|
# T_path_C = np.array(T_randomized)
|
192
192
|
# P_path_bar = np.array(P_randomized)
|
193
193
|
|
194
|
-
p = Process(target = path, args = (q,i), kwargs = {'Model': Model, 'comp': comp,
|
194
|
+
p = Process(target = path, args = (q,i), kwargs = {'Model': Model, 'comp': comp,
|
195
|
+
'T_path_C': T_path_C,
|
196
|
+
'P_path_bar': P_path_bar,
|
197
|
+
'fO2_buffer': fO2_buffer,
|
198
|
+
'fO2_offset': fO2_offset,
|
199
|
+
'Suppress': ['rutile', 'tridymite']})
|
195
200
|
|
196
201
|
ps.append(p)
|
197
202
|
p.start()
|
PetThermoTools/_version.py
CHANGED
@@ -4,16 +4,16 @@ PetThermoTools/GenFuncs.py,sha256=u2GWqH--Wmqd0WXHxfulEAatQb6uswjl1s9SyyoHSa8,16
|
|
4
4
|
PetThermoTools/Holland.py,sha256=udBFeVUyTBpSfLIhx7Hy6o0I8ApNCDvwU_gZa0diY5w,7251
|
5
5
|
PetThermoTools/Installation.py,sha256=UfVOW1NZFdzMWPyID5u7t0KwvpJA0AqYohzidXIAwYs,6098
|
6
6
|
PetThermoTools/Liq.py,sha256=I-vYp2i7CpQjzoo-nZ8gQNTP5jrao6pZtmkmwLtjodY,35043
|
7
|
-
PetThermoTools/MELTS.py,sha256
|
7
|
+
PetThermoTools/MELTS.py,sha256=-nkyo3yx7dZXVnRwZhlMRGCc5SkYSm1nP3qDbLDNNyY,72354
|
8
8
|
PetThermoTools/Melting.py,sha256=iQpSXXDhwfEUTlHa80-XFK1lahb_VNrLW8ISbVCE8lY,10773
|
9
9
|
PetThermoTools/Path.py,sha256=RChQYqDayqc0hVugmX3j3uE1x2BvWIfcINFqcqwrRxw,32642
|
10
10
|
PetThermoTools/Path_wrappers.py,sha256=_0pBs_cK2hICxAHkYxKXICUnUEBSiUg07-qhgBeuTdc,26555
|
11
|
-
PetThermoTools/PhaseDiagrams.py,sha256=
|
11
|
+
PetThermoTools/PhaseDiagrams.py,sha256=8S_BcqggBzfUbiCPcsJRWFBenGL4tcCevte3-ATQjQI,30884
|
12
12
|
PetThermoTools/Plotting.py,sha256=biM4QJFCH6xVDpK-nG2oAIGIFFJCzBt5Uez6XzTFiGY,28107
|
13
13
|
PetThermoTools/Saturation.py,sha256=XXY6fKVouQM3RLgQgXur4xSq7_uGp7bCw_k7NNlWYi8,14095
|
14
14
|
PetThermoTools/__init__.py,sha256=PbiwQj_mNNEwuIZOLETmtMMshiXa50wjCA6mfvpOpOs,2393
|
15
|
-
PetThermoTools/_version.py,sha256=
|
16
|
-
PetThermoTools-0.2.
|
17
|
-
PetThermoTools-0.2.
|
18
|
-
PetThermoTools-0.2.
|
19
|
-
PetThermoTools-0.2.
|
15
|
+
PetThermoTools/_version.py,sha256=x3oJ2coFvekDMGQwrW7LzNxduPT9SxWIZWCKamBahjQ,296
|
16
|
+
PetThermoTools-0.2.31.dist-info/METADATA,sha256=TDZlBVXnbinSw2bKIR_YvA9KJqR4w2XxlqSGVEe4klg,796
|
17
|
+
PetThermoTools-0.2.31.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
18
|
+
PetThermoTools-0.2.31.dist-info/top_level.txt,sha256=IqK8iYBR3YJozzMOTRZ8x8mU2k6x8ycoMBxZTm-I06U,15
|
19
|
+
PetThermoTools-0.2.31.dist-info/RECORD,,
|
File without changes
|
File without changes
|