Giter Site home page Giter Site logo

mvdh7 / pytzer Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 5.0 6.1 MB

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

Home Page: https://mvdh.xyz/pytzer

License: GNU General Public License v3.0

Python 100.00%
pitzer-model chemical-speciation chemistry seawater oceanography autograd chemical-activities

pytzer's Introduction

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()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.