Skip to main content

FastChem, an ultra-fast equilibrium chemistry

Project description

FastChem Cond (FastChem 3.1.x)

Authors: Daniel Kitzmann, Joachim Stock

Important Notice

The FastChem repository has been transferred from Exoclime to the new GitHub Team "New Strange Worlds". All previous links to the repository remain active and are being forwarded to the new location. However, it is recommended to update your local repositories with:

git remote set-url origin https://github.com/newstrangeworlds/fastchem

The new repository location also has the discussion forum turned on. You can post questions and suggestions for FastChem there.

Overview

FastChem is an equilibrium chemistry code that calculates the chemical composition of the gas and condensed phase for given temperatures and pressures. The calculation of the gas phase is based on a semi-analytic approach, described in detail in Stock et al. (2018) and Stock et al. (2022). The new version 3 version of FastChem, called FastChem Cond, adds condensation to the code. It can now compute the chemical composition using equilibrium condensation or the rainout approximation that is commonly used in the field of exoplanets or brown dwarfs. FastChem Cond is described in detail in Kitzmann, Stock & Patzer (2023).

The code is written in object-oriented C++, including template programming that allows the model to run with either double or long double precision. The exact computational precision of long double depends on your compiler and operating system. Long double precision usually allows the model to properly converge for very low temperatures. FastChem has been tested for temperatures as low as 100 K. For many cases, we were also able to obtain converged results for temperatures well below 100 K. Overall, the model has been successfully tested for temperatures from 100 K to 6000 K and pressures from 1e-13 bar to 1000 bar for solar element abundances.

Besides the actual FastChem model, we provide a C++ stand-alone version in the model_src folder that allows to calculate the equilibrium chemistry for a given temperature-pressure structure. This stand-alone version can be adapted further to perform also more sophisticated calculations. In addition to the C++ stand-alone version, we also provide the Python interface PyFastChem.

Version 3.1 includes updates to the calculation of the gas-phase chemistry. The new version will now switch to a multi-dimensional Newton's method for more complicated scenarios that were previously challenging to solve with the standard hierarchical approach of FastChem.

PyFastChem

FastChem includes the Python interface, PyFastChem, that allows to run the C++ code as a normal Python module. PyFastChem is also available as a PyPy package and can easily be installed via pip. We provide several examples that show how to call FastChem from within a Python script, including the possibility to, for example, iterate over different metallicity values or C/O ratios or how to compute chemical compositions with condensation. The Python examples can be found in the python directory.

User guide

FastChem comes with a user guide that can be found here: https://newstrangeworlds.github.io/FastChem/ . It describes the installation and usage of FastChem and covers both the C++ stand-alone version as well as the Python interface. The manual also contains detailed information on the internal interface functions that the FastChem object class and its Python interface provide.

Licence

This project is Copyright (c) Daniel Kitzmann and Joachim Stock.

FastChem is released under the GNU Public Licence (GPL) 3.0. That means, it can be freely copied, edited, and re-distributed. If the code is re-distributed it has to be released under at least a GPL 3.0 licence as well. The full licence of FastChem can be found in the repository licence.md file or under https://www.gnu.org/licenses/gpl-3.0.html.

The user guide is released under the Creative Commons Licence (CC BY SA). Licensees may copy and distribute the work and make derivative works based on it only if they give the authors (Daniel Kitzmann & Joachim Stock) the credits by providing a reference to the original guide and this GitHub repository. Licensees may also distribute derivative works only under a license identical to ("not more restrictive than") the license that governs the original work.

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

pyfastchem-3.1.2.tar.gz (10.0 MB view hashes)

Uploaded Source

Built Distributions

pyfastchem-3.1.2-cp313-cp313-win_amd64.whl (305.6 kB view hashes)

Uploaded CPython 3.13 Windows x86-64

pyfastchem-3.1.2-cp313-cp313-win32.whl (263.1 kB view hashes)

Uploaded CPython 3.13 Windows x86

pyfastchem-3.1.2-cp313-cp313-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.13 musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp313-cp313-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.13 musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.1 kB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl (620.7 kB view hashes)

Uploaded CPython 3.13 manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp313-cp313-macosx_11_0_arm64.whl (419.1 kB view hashes)

Uploaded CPython 3.13 macOS 11.0+ ARM64

pyfastchem-3.1.2-cp313-cp313-macosx_10_13_x86_64.whl (514.5 kB view hashes)

Uploaded CPython 3.13 macOS 10.13+ x86-64

pyfastchem-3.1.2-cp312-cp312-win_amd64.whl (305.6 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pyfastchem-3.1.2-cp312-cp312-win32.whl (263.1 kB view hashes)

Uploaded CPython 3.12 Windows x86

pyfastchem-3.1.2-cp312-cp312-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp312-cp312-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.1 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (620.5 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp312-cp312-macosx_11_0_arm64.whl (419.0 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pyfastchem-3.1.2-cp312-cp312-macosx_10_13_x86_64.whl (514.4 kB view hashes)

Uploaded CPython 3.12 macOS 10.13+ x86-64

pyfastchem-3.1.2-cp311-cp311-win_amd64.whl (305.3 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyfastchem-3.1.2-cp311-cp311-win32.whl (263.0 kB view hashes)

Uploaded CPython 3.11 Windows x86

pyfastchem-3.1.2-cp311-cp311-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp311-cp311-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (620.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp311-cp311-macosx_11_0_arm64.whl (419.8 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pyfastchem-3.1.2-cp311-cp311-macosx_10_9_x86_64.whl (514.5 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyfastchem-3.1.2-cp310-cp310-win_amd64.whl (304.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyfastchem-3.1.2-cp310-cp310-win32.whl (262.0 kB view hashes)

Uploaded CPython 3.10 Windows x86

pyfastchem-3.1.2-cp310-cp310-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp310-cp310-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (590.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (619.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp310-cp310-macosx_11_0_arm64.whl (418.5 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pyfastchem-3.1.2-cp310-cp310-macosx_10_9_x86_64.whl (513.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyfastchem-3.1.2-cp39-cp39-win_amd64.whl (304.3 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyfastchem-3.1.2-cp39-cp39-win32.whl (262.4 kB view hashes)

Uploaded CPython 3.9 Windows x86

pyfastchem-3.1.2-cp39-cp39-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp39-cp39-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (619.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp39-cp39-macosx_11_0_arm64.whl (418.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pyfastchem-3.1.2-cp39-cp39-macosx_10_9_x86_64.whl (513.3 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyfastchem-3.1.2-cp38-cp38-win_amd64.whl (304.0 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyfastchem-3.1.2-cp38-cp38-win32.whl (262.1 kB view hashes)

Uploaded CPython 3.8 Windows x86

pyfastchem-3.1.2-cp38-cp38-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp38-cp38-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (589.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (619.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp38-cp38-macosx_11_0_arm64.whl (418.5 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pyfastchem-3.1.2-cp38-cp38-macosx_10_9_x86_64.whl (513.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pyfastchem-3.1.2-cp37-cp37m-win_amd64.whl (304.2 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyfastchem-3.1.2-cp37-cp37m-win32.whl (263.4 kB view hashes)

Uploaded CPython 3.7m Windows x86

pyfastchem-3.1.2-cp37-cp37m-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp37-cp37m-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (591.2 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (621.5 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp37-cp37m-macosx_10_9_x86_64.whl (512.5 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

pyfastchem-3.1.2-cp36-cp36m-win_amd64.whl (304.5 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pyfastchem-3.1.2-cp36-cp36m-win32.whl (267.5 kB view hashes)

Uploaded CPython 3.6m Windows x86

pyfastchem-3.1.2-cp36-cp36m-musllinux_1_2_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.2+ x86-64

pyfastchem-3.1.2-cp36-cp36m-musllinux_1_2_i686.whl (1.8 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.2+ i686

pyfastchem-3.1.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (590.6 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

pyfastchem-3.1.2-cp36-cp36m-manylinux_2_17_i686.manylinux2014_i686.whl (621.5 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ i686

pyfastchem-3.1.2-cp36-cp36m-macosx_10_9_x86_64.whl (511.8 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

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