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.0.tar.gz (810.1 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.0-py3-none-any.whl (455.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exogibbs-0.3.0.tar.gz
  • Upload date:
  • Size: 810.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for exogibbs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 127de3e020aaaee28842c1dbf1b10fd020a3c284f877e230ee2d08a384d797c1
MD5 177e012368e83072b518684d9f3c9e09
BLAKE2b-256 3adac2c9519b40d3f07e481c49650f4e9a4c7483092d9f9536c2996153b01e34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exogibbs-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 455.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for exogibbs-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 141cc06a05fd773906e16b8470b2674180c8610a96852e03eb9194de07de2b9f
MD5 4331a64915b0ccdb2b33dac770ef4bdf
BLAKE2b-256 93d7b34ad5bc4dbe0e4b595b4c6026d0935af841c6e572e6b944f1fb80139583

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