News:

alphaMELTS 2.3 standalone & for MATLAB/Python is now open source and available on GitHub (https://github.com/magmasource/alphaMELTS).
alphaMELTS 1.9 is available at the legacy download and information site.
For news of all MELTS software see the MELTS Facebook page.

Main Menu

How to combine the output of alphaMELTS to get tables and plots

Started by hyjwhyjw, January 16, 2024, 12:42:02 AM

Previous topic - Next topic

hyjwhyjw

Using EASYMELTS, I had access to MELTS.OUT and many TBL files, and later via

https://magmasource.caltech.edu/gitlist/Combine_tbl.git/blob/master/MELTS_Excel-Combine_tbl_2.zip

, the results were easily combined to automatically create tables and charts similar to the MELTS for Excel

However,

I followed the alphaMELTS (double-click) version of the tutorial

https://magmasource.caltech.edu/forum/index.php/topic,752.msg974.html#msg974

At the end of the program run, I don't see MELTS.OUT in the specified OUTPUT folder, and the output filenames are all. txt:

alphaMELTS_tbl.txt

Bulk_comp_tbl.txt

Liquid_comp_tbl.txt

logfile.txt

Phase_main_tbl.txt

Phase_main_tbl.txt

......

What should I do to combine the output of alphaMELTS and get tables and plots similar to MELTS for Excel?

Paula

Hi,

alphaMELTS 1.9 (double-click) doesn't have a way to generate the melts.out and .tbl files. You just have to import the .txt files into Excel individually (though you don't need logfile.txt or alphaMELTS_tbl.txt if you do the others). Using column_pick.command to generate a single file with the values you are interested in is an option. That way you only have to import one or two .txt files instead of 5.

Alternatively, alphaMELTS 2 has an option to output GUI-style files like the easyMelts ones, as described in its tutorial:

https://magmasource.caltech.edu/forum/index.php/topic,975.0.html

It also has a more flexible column-pick.command script, which not only allows you to pick columns from existing files but also to automate calculation of variables. E.g. see this workshop example:

https://magmasource.caltech.edu/gitlist/Workshops.git/tree/main/workshop_files/RC12frac_b_withcolcustom/alphaMELTS2/

You can use the value from an earlier column by putting curly brackets around the name, like in the example which calculates FeOtot, Mg#, and Mg# as %:
Quote! custom expressions need to be at the end and are processed left to right; avoid special characters like in FeO* or Mg#
File: Liquid_comp_tbl.txt
Table: "Liquid Composition"
Columns: SiO2 TiO2 Al2O3 Fe2O3 Cr2O3 FeO MnO MgO NiO CaO Na2O K2O P2O5 H2O CO2 FeOtot={FeO}+0.9*{Fe2O3} Mgnum=({MgO}/40.3044)/(({MgO}/40.3044)+({FeO}/71.8464)) Mgpc=100*{Mgnum}

Paula

hyjwhyjw

Quote from: Paula on January 16, 2024, 10:21:07 AMHi,

alphaMELTS 1.9 (double-click) doesn't have a way to generate the melts.out and .tbl files. You just have to import the .txt files into Excel individually (though you don't need logfile.txt or alphaMELTS_tbl.txt if you do the others). Using column_pick.command to generate a single file with the values you are interested in is an option. That way you only have to import one or two .txt files instead of 5.

Alternatively, alphaMELTS 2 has an option to output GUI-style files like the easyMelts ones, as described in its tutorial:

https://magmasource.caltech.edu/forum/index.php/topic,975.0.html

It also has a more flexible column-pick.command script, which not only allows you to pick columns from existing files but also to automate calculation of variables. E.g. see this workshop example:

https://magmasource.caltech.edu/gitlist/Workshops.git/tree/main/workshop_files/RC12frac_b_withcolcustom/alphaMELTS2/

You can use the value from an earlier column by putting curly brackets around the name, like in the example which calculates FeOtot, Mg#, and Mg# as %:
Quote! custom expressions need to be at the end and are processed left to right; avoid special characters like in FeO* or Mg#
File: Liquid_comp_tbl.txt
Table: "Liquid Composition"
Columns: SiO2 TiO2 Al2O3 Fe2O3 Cr2O3 FeO MnO MgO NiO CaO Na2O K2O P2O5 H2O CO2 FeOtot={FeO}+0.9*{Fe2O3} Mgnum=({MgO}/40.3044)/(({MgO}/40.3044)+({FeO}/71.8464)) Mgpc=100*{Mgnum}

Paula

Thank you Paula!
But where can I download the alphaMELTS 2 ?

Paula

Click the alphaMELTS 2 link in the reply (https://github.com/magmasource/alphaMELTS). It'll take you to the alphaMELTS source repository. Soon the releases will be hosted there, but in the short term, there are separate links to download pages for alphaMELTS 2 and alphaMELTS for MATLAB/Python.

Paula