A library for thermodynamic modeling with the Pitzer model and its application in quantification of fluid inclusion data.
Project description
PyPitzer
Introduction
This package is for low-temperature themodynamic modeling with the accurate Pitzer model and its application in quantification fluid inclsuion data and calculation of uncertainties propagated in this modeling / quantification process.
To quantify fluid inclusion data, you the following necessary data:
- microthemometric data
- accurate last solid phase (e.g. NaCl·H2O)
- melting temperatre of this last phase (Tm)
- element/Na ratios from LA-ICP-MS analysis
- note the elemental/Na refers to molar ratios, some conversion may be needed.
Installation
pip install:
pip install pypitzer
conda install:
conda install pypitzer
Example
After installation. Here is an example:
from src.Pitzer.models import FluidPitzer
from src.Pitzer.methods import binary_query
species = {
'Na+': 1, # always be 1 if Na is the internal standard
'K+': 2 , # K/Na = 2
# 'Mg+2':0
}
# create a fluid object with information from microthemometric and LA-ICP-MS data
fluid = FluidPitzer(
# the initial guess
x0=(1,1),
# species defined before
species=species,
# the equilibirum of the last melting solid phase
equilibrium='KCl(s) = K+(aq) + Cl-(aq)',
# melting temperature of the last-melting solid phase, [°C]
t = 25,
)
result = fluid.optimize()
# result = fluid.get_b((1,1))
print(result)
the output will be:
# Na Cl
1.84525981, 5.53577942
in molality.
Cite this package
Liu, Y., Wagner, T., & Fußwinkel, T. (2024). An integrated approach for quantifying fluid inclusion data combining microthermometry, LA-ICP-MS, and thermodynamic modeling. Chemical Geology, 644, 121863.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypitzer-1.1.5.tar.gz.
File metadata
- Download URL: pypitzer-1.1.5.tar.gz
- Upload date:
- Size: 62.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d65170ef83253d16bcad403992d8ec626ed71f9f9ccff44fb8837cb365c25246
|
|
| MD5 |
27fc64e87006d7b1adc1190c15f0b60a
|
|
| BLAKE2b-256 |
0669d0c97e08f08ddecf1f2d6b7143d49728e044bd57c4b60c4c04f187bfce06
|
File details
Details for the file pypitzer-1.1.5-py3-none-any.whl.
File metadata
- Download URL: pypitzer-1.1.5-py3-none-any.whl
- Upload date:
- Size: 83.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2216c1ea4452c97fd14f71d19de8b2db179b564da090822981dc4a4e656d220
|
|
| MD5 |
b9ddc9cbc21b3566b2d70d9307d7014b
|
|
| BLAKE2b-256 |
3b100e51ced533a84c19eca44a0817ecf45058c7d03265f67851fe5fbba2c332
|