Skip to main content

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

Project description

Pytzer

Tests Coverage pypi badge DOI License: GPL v3 Code style: black

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

Due to its dependency on JAX, Pytzer can only be installed on Unix systems, although it does work on Windows via WSL.

For general use

Install with pip:

pip install pytzer

Note that you should also install the dependencies (especially NumPy) using pip, not conda, for best performance. This happens automatically with the above command if the dependencies are not already installed.

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 mvdh.xyz/pytzer.

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. (2023). 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.5.3.tar.gz (108.0 kB view details)

Uploaded Source

Built Distribution

pytzer-0.5.3-py3-none-any.whl (118.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytzer-0.5.3.tar.gz
  • Upload date:
  • Size: 108.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pytzer-0.5.3.tar.gz
Algorithm Hash digest
SHA256 95149ae72814630348cfd83ba8bd4ef0677c5c6b7d01f2fa1245d40ccfec1069
MD5 1b58e74d93ca85f197a48acee6517fb8
BLAKE2b-256 1875089198d7d88bb4c3bb5aea702bcb6c9bf1298d2300c745c631bdd1ab2a40

See more details on using hashes here.

File details

Details for the file pytzer-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: pytzer-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 118.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pytzer-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f85292e1900b6f5a36bf52a3517978d2b8072df7e73cc910cf4929e520d97ae4
MD5 c81114d23afd28b74b4585a905ad02cd
BLAKE2b-256 c70d54c8d6bd61c0a00910b73d7b033ecc9df795b0e20fdb3b6ecbc8a7deb9a0

See more details on using hashes here.

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