-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added the option to use aH2O, aO2, aTiO2, aMgO, aFeO and aAl2O3 as buffers - added trace-element partitioning routine using O. Laurent Kd's (PhD 2012) - added several zircon saturation models (Watson & Harrison, 1983; Boehnke et al., 2013; Crisp and Berry 2022) - added routine to save minimization results as CSV - corrected normalization when hitting liquidus
- Loading branch information
1 parent
3165081
commit 752fefe
Showing
13 changed files
with
1,325 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
name = "MAGEMin_C" | ||
uuid = "e5d170eb-415a-4524-987b-12f1bce1ddab" | ||
authors = ["Boris Kaus <[email protected]> & Nicolas Riel <[email protected]>"] | ||
version = "1.4.7" | ||
version = "1.4.8" | ||
|
||
[deps] | ||
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" | ||
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
MAGEMin_jll = "763ebaa8-b0d2-5f6b-90ef-4fc23b5db1c4" | ||
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[compat] | ||
CEnum = "0.4" | ||
MAGEMin_jll = "1.4.4 - 1.4.4" | ||
DataFrames = "1.6.1" | ||
CSV = "0.10.14" | ||
MAGEMin_jll = "1.4.5 - 1.4.5" | ||
ProgressMeter = "1" | ||
julia = "1.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using MAGEMin_C | ||
|
||
# Initialize database - new way | ||
dtb = "ig" | ||
data = Initialize_MAGEMin(dtb, verbose=false); | ||
test = 0 #KLB1 | ||
data = use_predefined_bulk_rock(data, test); | ||
|
||
# Call optimization routine for given P & T & bulk_rock | ||
P = 8.0 | ||
T = 1400.0 | ||
out = point_wise_minimization(P,T, data); | ||
|
||
elem_TE = ["SiO2","TiO2","Al2O3","O","FeO","MnO","MgO","CaO","K2O","Na2O","H2O","Li","Be","B","Sc","V","Cr","Ni","Cu","Zn","Rb","Sr","Y","Zr","Nb","Cs","Ba","La","Ce","Pr","Nd","Sm","Eu","Gd","Tb","Dy","Ho","Er","Tm","Yb","Lu","Hf","Ta","Pb","Th","U"] | ||
bulk_TE = [50.60777553,0.953497243,13.70435413,0.19,11.28130762,0.202560796,8.496024312,9.502380068,0.700881685,2.07434927,4,29.14258603,0.434482763,29.69200003,38.23663423,257.4346716,529.333066,208.2057375,88.87615683,91.7592182,16.60777308,163.4533209,20.74016207,66.90677472,3.808354064,1.529226981,122.8449739,6.938172601,16.04827796,2.253943183,10.18276823,3.3471043,0.915941652,3.28230146,1.417695298,3.851230952,0.914966282,2.20425,0.343734976,2.136202593,0.323405135,1.841502082,0.330971265,5.452969044,1.074692058,0.290233271] | ||
|
||
KDs_dtb = get_OL_KDs_database(); | ||
|
||
C0 = adjust_chemical_system( KDs_dtb,bulk_TE,elem_TE); | ||
|
||
out_TE = TE_prediction(C0,KDs_dtb, "CB",out,dtb); | ||
|
||
|
||
if ~isnothing(out_TE.bulk_cor_wt) #then we can recompute the equilibrium after removing the SiO2 entering zircon | ||
sys_in = "wt" | ||
out = single_point_minimization(P, T, data, X=out_TE.bulk_cor_wt, Xoxides=out.oxides, sys_in=sys_in) | ||
out_TE = TE_prediction(C0,KDs_dtb, "CB",out,dtb) | ||
end | ||
|
||
# add parallel test |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.