Skip to content

Commit

Permalink
MAGEMin v1.3.6 updated test routine
Browse files Browse the repository at this point in the history
- updated tests to test local vs online lib version
  • Loading branch information
NicolasRiel authored Jan 26, 2024
2 parents ed3e4f5 + 0d9a389 commit 0a4106a
Show file tree
Hide file tree
Showing 276 changed files with 46,685 additions and 33,500 deletions.
Binary file modified EquilibriumPath_MAGEMin.mlx
100755 → 100644
Binary file not shown.
Binary file modified Install_MAGEMin.mlapp
100755 → 100644
Binary file not shown.
Binary file added MAGEMin_EquilibriumPath.mlx
Binary file not shown.
Empty file modified Makefile
100755 → 100644
Empty file.
Binary file modified PlotPseudosection.mlapp
100755 → 100644
Binary file not shown.
1 change: 0 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
CEnum = "0.4"
MAGEMin_jll = "1.3.1"
ProgressMeter = "1"
julia = "1.6"
35 changes: 6 additions & 29 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://computationalthermodynamics.github.io/MAGEMin/index.html)
[![DOI](https://zenodo.org/badge/449732854.svg)](https://zenodo.org/doi/10.5281/zenodo.8070923)

<img src="./pics/GUI.png" alt="drawing" width="640" alt="centered image"/>

Expand Down Expand Up @@ -37,19 +36,20 @@ if you wish, you can also compile MAGEMin yourself, which requires you to instal
- LAPACKE (C version of LAPACK)
- NLopt (https://nlopt.readthedocs.io/)

Details and guidelines are given in the extended documentation: https://computationalthermodynamics.github.io/MAGEMin/index.html
Details and guidelines are given in the extended documentation: https://computationalthermodynamics.github.io/MAGEMin/index.html

In addition, we make use of [uthash](https://troydhanson.github.io/uthash/) and [ketopt](https://github.com/attractivechaos/klib/blob/master/ketopt.h).


## Available thermodynamic datasets
The MAGEMin algorithm is general and can be used with any thermodynamic database that are hardcoded for speed reasons. Presently the igneous (Holland et al., 2018), the ultramafic (Evans & Frost, 2021), the metabasite (Green et al., 2016) and the metapelite (White et al., 2014) database are available.
The MAGEMin algorithm is general and can be used with any thermodynamic database that are hardcoded for speed reasons. Presently the igneous (Holland et al., 2018) and the metapelite (White et al., 2014) database are available.

**Igneous thermodynamic dataset**

The hydrous mafic melting model of Holland et al. 2018 can be used to simulate the fractional crystallisation from a hydrous basalt to a felsic melt.
**Igneous database**

- Added May 2022, `MAGEMin v1.0.0`
The hydrous mafic melting model of Holland et al. 2018 can be used to simulate the fractional crystallisation from a hydrous basalt to a felsic melt.

The details of this thermodynamic solid solution and endmember database are:
- Holland et al., 2018 (see http://hpxeosandthermocalc.org)
- K2O-Na2O-CaO-FeO-MgO-Al2O3-SiO2-H2O-TiO2-O-Cr2O3 chemical system
- Equations of state for
Expand All @@ -69,29 +69,6 @@ The metapelitic model (extended with MnO, White et al., 2014) allows to compute
- Solution phases spinel (spn), biotite (bi), cordierite (cd), orthopyroxene (opx), epidote (ep), garnet (g), ilmenite (ilm), silicate melt (liq), muscovite (mu), ternary feldspar (pl4T), sapphirine (sa), staurolite (st), magnetite (mt), chlorite (chl), chloritoid (ctd) and margarite (ma).


**Ultramafic thermodynamic dataset**

THe ultramafic model allow to compute phase equilibrium in serpentinites

- Added May 2023, `MAGEMin v1.3.2`
- Evans & Frost, 2021 (see http://hpxeosandthermocalc.org)
- SiO2-Al2O3MgO-FeO-O-H2O-S chemical system
- Equations of state for
- Pure stoichiometric phases quartz (q), cristobalite (crst), tridymite (trd), coesite (coe), stishovite (stv), kyanite (ky), sillimanite (sill), pyrite (pyr)
- Solution phases fluid (fluid), brucite (br), antigorite (atg), garnet (g), talc (t), chlorite (chl), spinel (spi), orthopyroxene (opx), pyrrhotite (po) and anthophylite (anth)

**Metabasite thermodynamic dataset**

- added October 2023, `MAGEMin v1.3.5`
- Green et al., 2016 (see http://hpxeosandthermocalc.org)
- K2O-Na2O-CaO-FeO-MgO-Al2O3-SiO2-H2O-TiO2-O chemical system
- Equations of state for
- Pure stoichiometric phases quartz (q), cristobalite (crst), tridymite (trd), coesite (coe), stishovite (stv), kyanite (ky), sillimanite (sill), andalusite (and), rutile (ru) and sphene (sph).
- Solution phases spinel (sp), biotite (bi), orthopyroxene (opx), epidote (ep), garnet (g), ilmenite (ilm), silicate melt (liq), muscovite (mu), ternary feldspar (pl4T), chlorite (chl), Omphacite(omph) and Augite(aug).




Please keep in mind that the datasets are only calibrated for a limited range of `P`,`T` and `bulk rock` conditions. If you go too far outside those ranges, `MAGEMin` (or most other thermodynamic software packages for that matter) may not converge or give bogus results.
Developing new, more widely applicable, thermodynamic datasets is a huge research topic, which will require funding to develop the models themselves, as well as to perform targeted experiments to calibrate those models.

Expand Down
Empty file modified doc_raw/.vscode/configurationCache.log
100644 → 100755
Empty file.
Empty file modified doc_raw/.vscode/dryrun.log
100644 → 100755
Empty file.
Empty file modified doc_raw/.vscode/settings.json
100644 → 100755
Empty file.
Empty file modified doc_raw/.vscode/targets.log
100644 → 100755
Empty file.
Empty file modified doc_raw/ckbk/predef.rst
100644 → 100755
Empty file.
Empty file modified doc_raw/figs/GUI.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_PS_refine.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_PT.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_bulk.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_custom_bulk.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_figs.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_infos.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_label.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_mpi.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_pcolor.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_plot_menu.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_pseudo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_ready.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_refine.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_running.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_save.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/GUI_variance.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/TX_diag.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/TX_fig.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/X_fig.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/arg.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/dataout.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/export_fig.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/faq.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc_raw/figs/install.png
100644 → 100755
Empty file modified doc_raw/figs/iso_both.png
100644 → 100755
Empty file modified doc_raw/figs/iso_emFrac.png
100644 → 100755
Empty file modified doc_raw/figs/iso_mode_phase.png
100644 → 100755
Empty file modified doc_raw/figs/iso_panel.png
100644 → 100755
Empty file modified doc_raw/figs/julia.png
100644 → 100755
Empty file modified doc_raw/figs/julia_out.png
100644 → 100755
Empty file modified doc_raw/figs/julia_out_struct.png
100644 → 100755
Empty file modified doc_raw/figs/julia_pack.png
100644 → 100755
Empty file modified doc_raw/figs/julia_term.png
100644 → 100755
Empty file modified doc_raw/figs/julia_test.png
100644 → 100755
Empty file modified doc_raw/figs/predefined_bulks.csv
100644 → 100755
Empty file.
Empty file modified doc_raw/figs/save_data.png
100644 → 100755
Empty file modified doc_raw/figs/tips.png
100644 → 100755
Empty file modified doc_raw/figs/wip.png
100644 → 100755
2 changes: 1 addition & 1 deletion doc_raw/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

|
**MAGEMin v1.3.5**
**MAGEMin v1.3.6**
==================

MAGEMin (Mineral Assemblage Gibbs Energy Minimization) is a parallel C library callable from any petrological/geodynamic tool. For a given set of pressure, temperature and bulk-rock composition MAGEMin uses a combination of linear programming, extended Partitioning Gibbs free Energy and gradient-based local minimization to compute the most stable mineral assemblage
Expand Down
Loading

0 comments on commit 0a4106a

Please sign in to comment.