Upload
others
View
6
Download
0
Embed Size (px)
Citation preview
Paula Antoshechkina, CaltechPaul D. Asimow, CaltechMark S. Ghiorso, OFM Research
GeoInformatics alphaMELTS workshopCaltech, 10-12 July 2019
¡ For downloading and installing MATLAB§ https://www.mathworks.com/licensecenter/classroom/ML_CalTech_J
ul2019/¡ For MATLAB Online (does not require space on your laptop)
§ https://www.mathworks.com/licensecenter/classroom/ML_CalTech_11072019/
¡ You need to create a free MathWorks account, to use MATLAB or MATLAB Online workshop license§ https://www.mathworks.com/mwaccount/register
¡ If you are new to MATLAB, then MATLAB Onramp is a collection of short tutorials that can get you going quickly. Even just the first few (30 - 60 mins) would be a great basis for alphaMELTS for MATLAB§ https://www.mathworks.com/learn/tutorials/matlab-onramp.html
¡ Library of C functions, libalphaMELTS, that also underlies the alphaMELTS 2 executable§ Some functions will mimic alphaMELTS 2 menu options§ Also lower level access so it is very flexible and scalable
¡ MATLAB/Python wrappers§ https://gitlab.com/magmasource/MELTS_Matlab
¡ Was originally called MELTS for MATLAB§ Starting to integrate more alphaMELTS-specific features▪ https://agu2018fallmeeting-
agu.ipostersessions.com/default.aspx?s=89-81-04-E9-EA-64-38-13-B4-11-17-CF-90-80-32-85&guestview=true
¡ Linked list of MELTS dynamic nodes§ Can switch between pMELTS and
rhyolite-MELTS models§ GUI and ‘Supplemental calculator’–
like functionality§ Can join, and sort lists of nodes§ Handles errors gracefully
¡ Thermodynamic engine§ ptpath = MELTSdyanmic(4)§ ptpath.engine
¡ Properties§ ptpath.engine.temperature
¡ Methods§ ptpath.engine.findLiquidus
¡ MELTSdynamic handles linked list and system wide properties associated with choice of model (e.g. rhyolite-MELTS 1.2.0; pMELTS…)§ E.g. what phases are available?
¡ All the hard work is done in MELTSengine§ E.g. what phases are actually present?
¡ MELTSstatus (and MELTSevent) track interaction with the C library of MELTS functions§ How many calculations have we done (line number in any
output files)? Did something go wrong, can it clean up?¡ MELTSmap makes it easier to extract vectors and
matrices of data from the ‘paper doll’-like structures of properties needed for thermodynamic calculations
¡ Type “help MELTSengine”§ Click on “Reference page
for MELTSengineӤ Explore the properties and
methods associated with the MELTSengine ‘class’
§ Help is not properly populated yet but will be as code matures
§ Will show how to call ‘methods’ (like functions), what output is like etc.
¡ Can examine particular instance on MATLAB command line§ Tab completion is still
your friend!
alphaMELTS soupa very quick history…
Paula Antoshechkina, & Paul Asimow.
[email protected]@gps.caltech.edu
1978 – 1995 Silmin to MELTS
2001 pMELTS + Calculator
2003 – today xMELTS
2005 – Adiabat_1ph / pHMELTS
2006 – 2015 LEPR to traceDs
http://traceds.ofm-research.orgmirrored at traceds.caltech.edu
� 2012 Adiabat_1pH to alphaMELTS
� 2012 – 2015 rhyolite-MELTS + mixed H2O – CO2 fluid + updated algorithms
� 2018 alphaMELTS 2, MELTS for MATLAB/Python