Skip to main content

pyMelt mantle melting library

Python package flake8 Documentation Status PyPI version

Binder DOI

Introduction

pyMelt is a python library for calculating the melting behaviour of mantle comprising multiple lithologies. The pyMelt library implements the melting equations developed by Phipps Morgan (2001), alongside many existing lherzolite and pyroxenite melting parameterisations.

Parameters that can be calculated:

  • The geotherm for decompressing mantle
  • Melt fractions for each lithology
  • Crustal thickness for passive-upwelling at a mid-ocean ridge
  • Crystallisation temperatures (following the method in Matthews et al., 2016)
  • Magma flux at intra-plate settings
  • Lava trace element concentrations

The hydrousLithology module allows hydrous melting to be approximated given any anhydrous lithology melting model using a modified version of the Katz et al. (2003) hydrous melting equations.

Documentation

Full documentation, further information about the package, and a tutorial for getting started are provided at pymelt.readthedocs.io.

Installation

pyMelt is available on pip, and can be installed by running pip install pyMelt in a terminal.

Run pyMelt on the cloud with myBinder

Binder You can use pyMelt and go through the tutorials right now without installing anything.

pyMelt_MultiNest

pyMelt can be used in conjunction with the MultiNest algorithm (Feroz and Hobson, 2008; Feroz et al., 2009, 2013) via its python frontend, pyMultinest (Buchner et al., 2014). This permits the inversion of measured data (e.g. crystallisation temperature, crustal thickness) to obtain unknowns (e.g. potential temperature) via Bayesian inference. More details of the inversion methods are provided in Matthews et al., 2021.

For pyMelt_MultiNest to work, MultiNest and pyMultinest must be installed. The user is directed to the pyMultinest installation instructions for further guidance.

Note that the pyMelt_MultiNest library is built for an old version of pyMelt and has not yet been updated.

Citing pyMelt

If pyMelt enables or aids your research please cite the pyMelt paper, published in Volcanica. To ensure reproducibility please also state the version of pyMelt that you used. The latest release is v2.00, which is archived in a Zenodo repository with DOI: DOI

You should also cite the relevant publications for the pure-lithology melting models. If you use our models, you should cite:

Matthews, S., Wong, K., Shorttle, O., Edmonds, M., & Maclennan, J. (2021). Do olivine crystallization temperatures faithfully record mantle temperature variability?. Geochemistry, Geophysics, Geosystems, 22(4), e2020GC009157. https://doi.org/10.1029/2020GC009157

See the documentation for the citations for the other models included in pyMelt.

Release files for pyMelt 2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyMelt 2.3
File Size Uploaded
pymelt-2.3.tar.gz 57.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyMelt 2.3
File Interpreter ABI Platform
pyMelt-2.3-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 MB

Release files / pymelt-2.3.tar.gz

Download URL pymelt-2.3.tar.gz
Size 57.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bcd888c911785636bd2251fded43e2ea66d234a0fb50eb5cd614b227032b92fa
BLAKE2b-256 checksum
How to use checksums
a121d35d6440fcb1c54bd75fbcf2a64ee42b3253e762746aa5d8ec1306e1fac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / pyMelt-2.3-py3-none-any.whl

Download URL pyMelt-2.3-py3-none-any.whl
Size 30.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
84653234b5edad0e2a25dc38dc914e84ed1218f2c29b7ff8edf30a17bd6a8107
BLAKE2b-256 checksum
How to use checksums
5818c77c5a2c8fda0e9ad9b1a9b3667dc0fe61cdcb518042fdd46457fb63c4de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

2.3 This release

2 release files

2.2

3 release files

2.1

2 release files

2.0

2 release files

1.960

2 release files

1.931

2 release files

1.930

2 release files

1.915

2 release files

1.95

2 release files

1.93

1 release file

1.92

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page