Skip to main content

A python library for calculating the melting behaviour of Earth's mantle.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymelt-2.2.tar.gz (57.2 kB view details)

Uploaded Source

Built Distributions

pyMelt-2.2-py3-none-any.whl (30.3 MB view details)

Uploaded Python 3

pyMelt-2.2-1-py3-none-any.whl (30.3 MB view details)

Uploaded Python 3

File details

Details for the file pymelt-2.2.tar.gz.

File metadata

  • Download URL: pymelt-2.2.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pymelt-2.2.tar.gz
Algorithm Hash digest
SHA256 9e5b4a67e3a45bfcefadb59a1c385fafae5036d433f54aafe7745fb388aa6eb3
MD5 982f832e0a2107655f4d4ad455cede68
BLAKE2b-256 0af79f461d86814f0d74cbb5786d2098ca57b46da0b78dd1f5ee5ab7e402099d

See more details on using hashes here.

File details

Details for the file pyMelt-2.2-py3-none-any.whl.

File metadata

  • Download URL: pyMelt-2.2-py3-none-any.whl
  • Upload date:
  • Size: 30.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyMelt-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e772f49ee86d292bcea9dae8d20b743177cfe71c3b6b536eaea9e22769bbe221
MD5 2904081d8a79b4766813beeca3655815
BLAKE2b-256 5b1d2977cc2fe36cc3318e046a4fac3ae2be61f104cd91604f0ebf8e60a67190

See more details on using hashes here.

File details

Details for the file pyMelt-2.2-1-py3-none-any.whl.

File metadata

  • Download URL: pyMelt-2.2-1-py3-none-any.whl
  • Upload date:
  • Size: 30.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyMelt-2.2-1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd66674b892aed6fc4b6dc5f9d7bf450bc03c98ef725170c1856dbfe131af9e1
MD5 dc66d21ef824e45f4b182e52c3d88328
BLAKE2b-256 c8617d9185e6a8a5dbf7a83a74cd157f3f19a88e69d860206e0619ee0d5d244d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page