Skip to main content

The Pitzer model for chemical activities and equilibria in aqueous solutions in Python

Project description

Pytzer

Tests Coverage pypi badge Conda Version DOI License: GPL v3 Ruff

Pytzer is a Python implementation of the Pitzer model for chemical activities in aqueous solutions [P91] plus solvers to determine the equilibrium state of the system.

Pytzer is in beta! Use at your own peril.

Installation

For general use

Install with pip (any OS):

pip install pytzer

On Mac or Linux, you can alternatively install from conda-forge:

conda install conda-forge::pytzer

However, the above will not work on Windows, because jax is not on conda-forge for Windows - so use pip instead.

Once installed, you will need to set the environment variable JAX_ENABLE_X64=True. For example, using conda:

conda env config vars set JAX_ENABLE_X64=True

Documentation

A work in progress at pytzer.hseao3.group.

Citation

Pytzer is maintained by Dr Matthew P. Humphreys at the NIOZ Royal Netherlands Institute for Sea Research (Texel, the Netherlands).

For now, the appropriate citation is:

Humphreys, Matthew P. and Schiller, Abigail J. (2024). Pytzer: the Pitzer model for chemical activities and equilibria in aqueous solutions in Python (beta). Zenodo. doi:10.5281/zenodo.2637914.

Please report which version of Pytzer you are using. You can find this in Python with:

import pytzer as pz
pz.hello()

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

pytzer-0.6.0.tar.gz (107.7 kB view details)

Uploaded Source

Built Distribution

Pytzer-0.6.0-py3-none-any.whl (123.7 kB view details)

Uploaded Python 3

File details

Details for the file pytzer-0.6.0.tar.gz.

File metadata

  • Download URL: pytzer-0.6.0.tar.gz
  • Upload date:
  • Size: 107.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pytzer-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d6ac57c1cdc02e100f7a07272f49d67b6cdd5aac1f5dd57d551356dbcbc8c8c0
MD5 bac63d89dc173d37b4a57c6d794223c4
BLAKE2b-256 e3e8e63a481663ccca9673e6824024532a1683e853c498a75b62a39bc6f20e04

See more details on using hashes here.

File details

Details for the file Pytzer-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: Pytzer-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 123.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for Pytzer-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f032edee6fba2373dd53a0da9cf8f99837d1041c8c5be3a747e25f0eff6f8b
MD5 9afec0bc420868d432d0adb6765ac1f0
BLAKE2b-256 b04886110ff951c5236ca276c2b16e7f48e2f71e7fb96b75aeedd32ccc8f5b11

See more details on using hashes here.

Supported by

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