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.9.tar.gz (30.6 MB 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.9-py3-none-any.whl (30.3 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for exogibbs-0.3.9.tar.gz
Algorithm Hash digest
SHA256 2a59dbca03fac4b1cea636bf7bae010516e64e035b202c2746150fea8a19486c
MD5 5cb4b2a8f626bc09d3d3166624fc7100
BLAKE2b-256 c255b006b0505b46ec4dd7438f230c5103b7b7cc78d4e505507d4ab4d0deb2e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exogibbs-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 30.3 MB
  • 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fff1326ae20b5a7aa280d6ee5cf02b8127b0f127b33eef33f594dbd457e7403a
MD5 7e6485b1b7e0ab6f4b2e05d288d22b36
BLAKE2b-256 3d1eab391b04ad80f73bda008189c1ef86a0ff43832b5b7ee6ac6b5165ae41ae

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