ExoGibbs
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. The current
curated-gas-v2 includes the cumulative reviewed molecular updates recorded in
Gas curation v0.1. Named earlier
presets remain available for reproducing previous models.
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.
To inspect scientific support and known thermochemical differences, start with
exogibbs.provenance.describe(chem).
MCEG is optional: calculations and provenance lookup work without it, while
its species-level report explains each version’s adoption and open questions.
The bundled HCN comparison belongs to the original curated_v1 dataset.
Learn more
- Documentation and public API.
- Condensate profiles and rainout.
- Multiphase guide and the illustrated plagioclase exsolution tutorial.
- Model assumptions and evidence (MCEG).
- v0.8.0 release notes and upgrade guidance.
Source distributions contain the runtime package and its required data. Use a Git checkout for tests, examples, documentation and archived model evidence.
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.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exogibbs-0.8.0.tar.gz | 31.1 MB | Without provenance | Details for exogibbs-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exogibbs-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for exogibbs-0.8.0-py3-none-any.whl |
Total release size: 62.4 MB
Release files / exogibbs-0.8.0.tar.gz
| Download URL | exogibbs-0.8.0.tar.gz |
|---|---|
| Size | 31.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1de015ee06afbba511fa6899e1480c64640d710a6fe0b2e878c4db33867e776b
|
|
BLAKE2b-256 checksum How to use checksums |
4f20e7d20a9b9141d047230addf696b25e9354559e67a6a91575b4fcabd19e60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Release files / exogibbs-0.8.0-py3-none-any.whl
| Download URL | exogibbs-0.8.0-py3-none-any.whl |
|---|---|
| Size | 31.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8ecc1b9106cf7b3169273e304e0190b4f782bc2ce7b1e23d61d6a5028c8857b
|
|
BLAKE2b-256 checksum How to use checksums |
2b2500e6913abef33118fdfcfaa1e546923b481148c1bd9ecd54c5b286e5580e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Security for exogibbs 0.8.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.