Skip to main content

A library for thermodynamic modeling with the Pitzer model and its application in quantification of fluid inclusion data.

Project description

PyPitzer

DOI

authors: Yiping Liu, Thomas Wagner, Tobias Fußwinkel

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:

  • measure microthemometry
    • 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

preparing...

Example

After installation. Here is an example:

# import the FluidPitzer class
from Pitzer.models import FluidPitzer

# aqueous species determined in LA-ICP-MS analysis
species = {
    'Na+': 1, # always be 1 if Na is the internal standard
    'K+': 2,  # K/Na = 2
}

# create a fluid object with information from microthemometric and LA-ICP-MS data
fluid = FluidPitzer(
    # the initial guess
    x0=(3, 3),
  
    # species defined before
    species=species,
  
    # the last melting solid
    solids=['KCl'],
  
    # melting temperature of the last solid, °C
    t = 25,
)

result = fluid.optimize()

print(result)

the output will be:

# Na        Cl
1.84525981, 5.53577942

in molality.

Cite this package

...

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

pypitzer-0.0.1.tar.gz (56.1 kB view hashes)

Uploaded Source

Built Distribution

pypitzer-0.0.1-py3-none-any.whl (72.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