Skip to main content

Differentiable Thermochemical Equilibrium Solver for Exoplanet Atmospheres

Project description

ExoGibbs

Ask DeepWiki

Differentiable Thermochemical Equilibrium, powered by JAX.

The optimization scheme is based on the Lagrange multiplier, similar to NASA/CEA algorithm. The terminology follows Smith and Missen, Chemical Reaction Equilibrium Analysis (1983, Wiley-Interscience).

Basic Use

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

from exogibbs.presets.ykb4 import chemsetup
from exogibbs.api.equilibrium import equilibrium_profile, EquilibriumOptions

# chemical setup
chem = chemsetup()

# Thermodynamic conditions
opts = EquilibriumOptions(epsilon_crit=1e-15, max_iter=1000)

res = equilibrium_profile(
    chem,
    temperature_profile,
    pressure_profile,
    chem.element_vector_reference,
    Pref=1.0,
    options=opts,
)
nk_result = res.x #mixing ratio

presets

  • ykb4: number of species: 160 elements: 12
  • fastchem: number of species: 523 elements: 28

ExoGibbs is designed to plug into ExoJAX and enable gradient-based equilibrium retrievals. It is still in a beta stage, so please use it at your own risk.

This package bundles logK data from FastChem in fastchem presets, which is distributed under the GNU General Public License v3 (GPLv3). Accordingly, ExoGibbs is also distributed under the GPLv3 license.

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

exogibbs-0.3.6.tar.gz (826.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exogibbs-0.3.6-py3-none-any.whl (466.7 kB view details)

Uploaded Python 3

File details

Details for the file exogibbs-0.3.6.tar.gz.

File metadata

  • Download URL: exogibbs-0.3.6.tar.gz
  • Upload date:
  • Size: 826.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for exogibbs-0.3.6.tar.gz
Algorithm Hash digest
SHA256 0d4f110e9daacf63804ce0ca07d5a5ae13e6bebf52bd241eb9b454cab327f1e6
MD5 2081a750f94b34d315c42cefd2dec144
BLAKE2b-256 2a8d3d62f5c411983d9d8c498872ceb0a98969774353dd0cf4771402f68a9ef9

See more details on using hashes here.

File details

Details for the file exogibbs-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: exogibbs-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 466.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for exogibbs-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 47a9016abb69ac19f7c949ed7253053fdd8262b6db6c88b4fd340a77991da7c9
MD5 947e7edb2aa394337c0fe3fbf0178d8c
BLAKE2b-256 9c8cee1e944b46093edbb1e5afde67c2ddaed24b6e6161915ed6bc83d2cf9d69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page