15
Paula Antoshechkina, Caltech Paul D. Asimow, Caltech Mark S. Ghiorso, OFM Research GeoInformatics alphaMELTS workshop Caltech, 10-12 July 2019

Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

Paula Antoshechkina, CaltechPaul D. Asimow, CaltechMark S. Ghiorso, OFM Research

GeoInformatics alphaMELTS workshopCaltech, 10-12 July 2019

Page 2: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

¡ 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

Page 3: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

¡ 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

Page 4: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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
Page 5: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

¡ 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

Page 6: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

¡ 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

Page 7: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

¡ 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.

Page 8: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

¡ Can examine particular instance on MATLAB command line§ Tab completion is still

your friend!

Page 9: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

alphaMELTS soupa very quick history…

Paula Antoshechkina, & Paul Asimow.

[email protected]@gps.caltech.edu

Page 10: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

1978 – 1995 Silmin to MELTS

Page 11: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

2001 pMELTS + Calculator

Page 12: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

2003 – today xMELTS

Page 13: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

2005 – Adiabat_1ph / pHMELTS

Page 14: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

2006 – 2015 LEPR to traceDs

http://traceds.ofm-research.orgmirrored at traceds.caltech.edu

Page 15: Paula Antoshechkina, Caltech Paul D. Asimow, …...¡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

� 2012 Adiabat_1pH to alphaMELTS

� 2012 – 2015 rhyolite-MELTS + mixed H2O – CO2 fluid + updated algorithms

� 2018 alphaMELTS 2, MELTS for MATLAB/Python