Skip to main content

ExoGibbs

Ask DeepWiki

Differentiable thermochemical equilibrium, powered by JAX.

ExoGibbs minimizes Gibbs energy subject to elemental conservation. It supports atmospheric chemistry and coupled phase equilibria, with derivatives for gradient-based modeling and ExoJAX retrievals.

Equilibrium modes

Mode Public API Thermodynamic inputs
Gas only exogibbs.api.gas Gas standard thermochemistry
Gas and pure condensates exogibbs.api.condensate Gas and pure-condensate standard thermochemistry
Multiphase, including solution phases exogibbs.api.multiphase Full extensive Gibbs energy for each phase

The solver guide explains units, amount conventions, and derivative support. Condensate and multiphase derivatives apply locally on a fixed support; phase selection is outside differentiation.

Install and run

python -m pip install exogibbs

Enable JAX float64 before constructing a chemical setup. This gas-only example uses the curated preset, evaluated on 1500–4000 K with ions included by default. Temperature is in K, pressure in bar, and result.x contains mole fractions in chem.species order.

import jax
jax.config.update("jax_enable_x64", True)

from exogibbs.api.gas import EquilibriumOptions, solve
from exogibbs.presets.curated import chemsetup

chem = chemsetup()
result, diagnostics = solve(
    chem, T=2500.0, P=1.0, b=chem.element_vector_reference,
    options=EquilibriumOptions(epsilon_crit=1e-13),
    return_diagnostics=True,
)
print("Converged:", bool(diagnostics["converged"]))
print("H2O mole fraction:", float(result.x[chem.species.index("H2O1")]))

Other packaged presets include YKB4, FastChem 3, and FastChem 4 gas and condensates. Install exogibbs[fastchem] for the optional FastChem grid backend or comparison tools; the native solvers and packaged data do not require pyfastchem.

Learn more

To build the HTML manual from a checkout, follow the documentation build guide, then run ./update_doc.sh. Open documents/_build/html/index.html. The Japanese manual is maintained separately and included as the doc_ExoGibbs submodule.

License

ExoGibbs is distributed under GPL-3.0-or-later. Bundled FastChem v3.1.3 and v4.0.3 thermochemistry and abundance data retain their upstream attribution.

Metadata

Release files for exogibbs 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exogibbs 0.7.0
File Size Uploaded Provenance Actions
exogibbs-0.7.0.tar.gz 59.2 MB Without provenance Details for exogibbs-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exogibbs 0.7.0
File Interpreter ABI Platform Actions
exogibbs-0.7.0-py3-none-any.whl Python 3 none any Details for exogibbs-0.7.0-py3-none-any.whl

Total release size: 90.1 MB

Release files / exogibbs-0.7.0.tar.gz

Download URL exogibbs-0.7.0.tar.gz
Size 59.2 MB
Tags Source
SHA-256 checksum
How to use checksums
babbffd2b8b6cd768e03f329b0fc3945a8c05ea72853dac86769a2671d998a8d
BLAKE2b-256 checksum
How to use checksums
bf46c60e7a1c28ab50f26c3979ef297e19240a4b56badc37b0400152eaf333f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.9

Release files / exogibbs-0.7.0-py3-none-any.whl

Download URL exogibbs-0.7.0-py3-none-any.whl
Size 30.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
abc67587d6074fabd3526ca6729df9f0a7eaeeca6e973fbf592e328b806fbbb9
BLAKE2b-256 checksum
How to use checksums
7aeaf59b400a11259f3aa5bd4e9a8353665563230e37425877941be356f19168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.9

Security for exogibbs 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page