News:

alphaMELTS 1.9 is available at the download and information site.
alphaMELTS 2 standalone & for MATLAB/Python are available on request
(see the Version 2 tab on the download site for more details).
For news of all MELTS software see the MELTS Facebook page.

Main Menu

Recent posts

#41
alphaMELTS for MATLAB/Python / Re: MATLAB for looping T,P spa...
Last post by Paula - June 20, 2023, 01:03:28 PM
So, there can be various reasons for that. Have a look at the output in the Terminal for clues. That's why I strongly recommend starting MATLAB from the Terminal command line. It's also possible you are hitting a bug in the code.

You can help it a bit by minimizing how much you jump around in P-T-composition space. So, for example, if you are looping over a random selection of pressures then sort the pressures before you start the loop. Also make sure you stay in the range of compositions that MELTS can deal with (that's an error that will show up in the Terminal output).

#42
alphaMELTS for MATLAB/Python / Re: MATLAB for looping T,P spa...
Last post by Ri Cao - June 20, 2023, 03:40:10 AM
Great, thanks and that works now. Just a quick question there:

Sometimes, when I tried to loop around different bulk compositions or pressures, MATLAB stopped working and closed automatically. Is there something we can do there to optimize/ resolve this issue? Thank you very much.

Best regards,
Ri
#43
alphaMELTS for MATLAB/Python / Re: MATLAB for looping T,P spa...
Last post by Paula - June 16, 2023, 10:04:17 AM
Yes, that's the idea!
#44
alphaMELTS for MATLAB/Python / Re: MATLAB for looping T,P spa...
Last post by Ri Cao - June 13, 2023, 07:26:39 AM
Dear Paula,
Thank you very much for your prompt response and clarification.

Yes, I use a Mac computer so the code below works!

For looping around different pressures or FMQ for the same bulk compositions using Matlab-MELTS, perhaps I can just add a ''for'' loop on top of the original RC12frac.m script so that can work? Thank you very much and I look forward to your response.

Best regards,
Ri Cao
#45
alphaMELTS for MATLAB/Python / Re: MATLAB for looping T,P spa...
Last post by Paula - June 12, 2023, 10:24:29 AM
Hi Ri,

From memory I think you are on a Mac(?) If so, you can start MATLAB from the Terminal, which is the recommended way anyway, and then you can do terminal shell commands from within your scripts by adding an exclamation point at the start. In fact, it looks like some of the commands you might want (e.g. pwd for 'print working directory', 'cd' for change directory, 'ls' for list) are built into MATLAB itself. E.g.

mkdir testoutput
!mv *.tbl testoutput
!mv *_tbl.txt testoutput
!mv melts.out testoutput

If you are on Windows, it may be a bit more complicated but there is more information in the 'system' command documentation: https://www.mathworks.com/help/matlab/ref/system.html

Paula
#46
alphaMELTS for MATLAB/Python / Re: MATLAB for looping T,P spa...
Last post by Ri Cao - June 07, 2023, 04:44:54 AM
Dear Paula,
Thank you very much for your response and clarification. Sorry for the slow response since I was involved in fieldwork and many teaching assignments this term.

The above questions have all been resolved. I can now successfully use MATLAB-MELTS to reproduce the results of LLD predicted from Rhyolite-MELTS

I have a follow-up question there regarding setting up the automatic running for looping different temperatures, pressures, or bulk compositions (keeping T, P the same for each run).

For instance, I was wondering shall I write a ''for loop'' based on the RC12frac.m file so that can loop around different pressures? What kind of strings or code can I add on top of the original Matlab script that can help me save the output of each run (i.e., at each pressure) separately? Any thoughts on this would be really helpful! Thank you very much.

Best regards,
Ri Cao  [/b]
#47
Hi Scott,

Sorry I missed this somehow. (Spam signups were getting out of hand again so I upgraded things, which worked for the spam control but still ironing out a few wrinkles.)

Anyway the standard version of MELTS became Rhyolite-MELTS. Despite the name it's good for the same range of compositions and PT conditions as MELTS, and better for granitic compositions.

For more details, see the second Q&A here: https://melts.ofm-research.org/index.html

Paula
#48
I recently downloaded alphaMELTS 2 and noticed that the standard version of MELTS is not listed--only Rhyolite MELTS and pMELTS.  Can anyone tell me where the standard version is?  I have a very vague possible recollection of standard MELTS being merged into pMELTS.
#49
News and updates / Re: Please read this first!
Last post by Paula - May 16, 2023, 01:00:16 PM
Please note that, as of May 16th, 2023, the forum Personal Messages have been retired. You should be able to see your past messages, if needed, but not send new ones. You are always welcome to contact me by email instead - just click the envelope icon on my profile when you are logged into the forum, or use the "contact" link at the bottom of the alphaMELTS 1.9 pages. See the footer on the magmasource.caltech.edu homepage for more details.

Thanks,
Paula
#50
General usage / Re: Offsetting from the NNO bu...
Last post by Paula - April 10, 2023, 11:45:45 AM
Hi Wasim,
Sorry I only just saw your addendum. You should have received an invite.
Paula