
Bulk-rock input file
MAGEMinApp relies on using a bulk-rock input file (.csv or .dat) where the user can provide a list of bulk-rock compositions, the system unit and the thermodynamic database to be used. Such file has to be formatted as follow:
CSV-type Bulk-rock input file
MAGEMinApp bulk-rock input in CSV format. The CSV file should have columns for each oxide and relevant metadata. Below is an example of the expected format:
| title | comments | db | sysUnit | SiO2 | Al2O3 | CaO | MgO | FeO | Fe2O3 | K2O | Na2O | TiO2 | O | MnO | H2O | P2O5 | SiO2_frac2 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Basalt_Xu08 | bulk test | sb21 | mol | 0.5175 | 0.1019 | 0.1388 | 0.1494 | 0.0706 | 0.0218 | 55 | |||||||
| Basalt_Xu08l | testy | sb21 | mol | 0.5175 | 0.1019 | 0.1388 | 0.1494 | 0.0706 | 0.0218 | 55 | |||||||
| title1 | comment,2l | um | wt | 35.66 | 6.51 | 5.12 | 26.62 | 14.56 | 0.08 | 0.04 | 3.78 | 0.52 | 0.47 | 32 | |||
| Renato_2 | test2 | mb | wt | 50.91 | 10.1 | 11.56 | 13.89 | 11.02 | 0.09 | 1.4 | 0.77 | 0.06 | 0.19 | 0 | 45 |
Column descriptions:
title: Sample name or identifiercomments: Any comments or notesdb: Thermodynamic database acronym (see above)sysUnit: Unit system (e.g.,mol,wt)Oxide columns (e.g.,
SiO2,Al2O3, ...): Content of each oxide in the specified unitAdditional columns (e.g.,
SiO2_frac2): Optional. Columns ending with_frac2are used to specify a second bulk-rock composition for P-X, T-X, or PT-X diagrams. When provided, the value in an_frac2column will override the corresponding oxide value from the main composition for that specific diagram calculation. This allows you to easily define compositional variations between two endmembers in a single file.
Notes:
The CSV file must have a header row with column names.
Missing values can be left empty; they will be treated as zero.
You can add or remove oxide columns as needed, but the header must match the data.
Note
If one oxide included in the thermodynamic database is not provided in the bulk-rock input file, the content of the oxide will be automatically be set to 0.0.
Either
FeOandOorFeOandFe2O3can be provided. In the first caseFeO=FeOt.To provide two bulk-rock composition for
P-XorT-Xdiagrams, simply paste a second array of oxdes content as show for bulk-rock compositionTest 2.If you want to use different thermodynamic database for the same bulk rock, copy and paste the line and change the database acronym
Tip
Thermodynamic dataset acronym are the following:
mtl-> mantle (Holland et al., 2013)mp-> metapelite (White et al., 2014)mb-> metabasite (Green et al., 2016)ig-> igneous (Green et al., 2025 updated from and replacing Holland et al., 2018)igad-> igneous alkaline dry (Weller et al., 2024)um-> ultramafic (Evans & Frost, 2021)sb11-> Stixrude & Lithgow-Bertelloni (2011)sb21-> Stixrude & Lithgow-Bertelloni (2021)sb24-> Stixrude & Lithgow-Bertelloni (2024)ume-> ultramafic extended (Green et al., 2016 + Evans & Frost, 2021)mpe-> extended metapelite (White et al., 2014 + Green et al., 2016 + Franzolin et al., 2011 + Diener et al., 2007)mbe-> extended metabasite (Green et al., 2016 + Diener et al., 2007 + Rebay et al., 2022)
DAT-type Bulk-rock input file
# this is a commented line
title; comments; db; sysUnit; oxide; frac; frac2
Test 2;Moo et al., 2000;ig;mol;[SiO2, Al2O3, CaO, MgO, FeO, K2O, Na2O, TiO2, O, Cr2O3, H2O];[48.97, 11.76, 13.87, 4.21, 8.97, 1.66, 10.66, 1.36, 1.66, 0.01, 0.0];[48.97, 11.76, 13.87, 4.21, 8.97, 1.66, 10.66, 1.36, 1.66, 0.01, 5.0]
Test 3;Coin & Kwak, 1984;mb;wt;[SiO2, Al2O3, CaO, MgO, Fe2O3, K2O,Na2O, TiO2, FeO, H2O];[55.12, 12.76, 4.32, 5.21, 2.45, 1.66, 10.66, 1.36, 1.66, 2.0];Bulk-trace-element input file
# this is a commented line
title; comments; elements; frac; frac2
Basalt test 1;Coin & Kwak, 1986;[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];[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];
Basalt test 2;Coin & Kwak, 1986b;[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];[43.713879045, 0.6517241444999999, 44.538000045, 57.354951345, 386.1520074, 793.999599, 312.30860625, 133.314235245, 137.6388273, 24.911659620000002, 245.17998135, 31.110243105000002, 100.36016208000001, 5.712531096, 2.2938404715000003, 184.26746085, 10.4072589015, 24.07241694, 3.3809147745, 15.274152345000001, 5.02065645, 1.373912478, 4.92345219, 2.126542947, 5.776846428, 1.372449423, 3.306375, 0.5156024640000001, 3.2043038895000002, 0.4851077025, 2.7622531230000003, 0.4964568975, 8.179453566, 1.6120380869999997, 0.43534990650000005];[43.713879045, 0.6517241444999999, 44.538000045, 57.354951345, 386.1520074, 793.999599, 312.30860625, 133.314235245, 137.6388273, 24.911659620000002, 245.17998135, 31.110243105000002, 100.36016208000001, 5.712531096, 2.2938404715000003, 184.26746085, 10.4072589015, 24.07241694, 3.3809147745, 15.274152345000001, 5.02065645, 1.373912478, 4.92345219, 2.126542947, 5.776846428, 1.372449423, 3.306375, 0.5156024640000001, 3.2043038895000002, 0.4851077025, 2.7622531230000003, 0.4964568975, 8.179453566, 1.6120380869999997, 1.43534990650000005];Note
- If one element included in the partitioning coefficient database is not provided in the trace-element bulk input file, the content of the element will be automatically be set to 0.0.