MagmaForge#
MagmaForge is designed to provide an easy user interface for running MELTS-style routines such as crystallization or melting. For instance, a basic equilibrium crystallization calculation can be run in only a few lines of code:
from thermoengine import magmaforge # import the magmaforge module
X = ... # define a liquid composition
P = ... # define the pressure of interest
T = ... # define the temperature of interest
sys = magmaforge.System(X, P, T) # create a system at a user-defined composition, pressure, and temperature
sys.crystallize(method='equil', Tstep=15, fix_fO2=True) # crystallize the system
For a minimum working example, and to learn about all of MagmaForge’s capabilities, check out our MagmaForge Tutorial Notebook.
More information about available MagmaForge functions can be found in the API Reference
[More coming soon!]