Skip to main content

A collection of petrological simulation tools.

Project description

PetroSim

PetroSim is a collection of petrological simulation tools.

Installation

PetroSim can be installed from the source or with pip as follows:

pip install petrosim

EC-AFC

The EC-AFC1 model is a tool for simulating the evolution of the geochemical composition of a magma body as it intrudes into country rock, assimilating wallrock into the melt and fractionally crystallizing out cumulates.

Usage

An EC-AFC simulation is run with the standalone driver script using the command below, taking the initial parameters via a YAML formatted input.in file and outputting the results in the output.csv CSV file:

python3 -m petrosim.models.ecafc.driver input.in output.csv

Please visit the source for further reading.

References

  1. Spera, F. J.; Bohrson, W. A. Energy-Constrained Open-System Magmatic Processes I. General Model and Energy-Constrained Assimilation and Fractional Crystallization (EC-AFC) Formulation J. Petrol., 2001, 42, 999-1018, DOI: 10.1093/petrology/42.5.999

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

petrosim-0.0.3.tar.gz (32.2 kB view hashes)

Uploaded Source

Built Distribution

petrosim-0.0.3-py3-none-any.whl (34.5 kB view hashes)

Uploaded Python 3

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