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