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

Uploaded Python 3

File details

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

File metadata

  • Download URL: exogibbs-0.3.7.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.7.tar.gz
Algorithm Hash digest
SHA256 6dec70a26df28a063ad62bb6e76e05bfe457014a7135f1ed2aff88abded978a8
MD5 c8ec426f0420305ac98e88a5dd04ac11
BLAKE2b-256 9d774dd3bc8ae866b36f6a52370c289f24030726e869c8ac10f3cc00df4b81b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exogibbs-0.3.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cf02089ee205709221b5c4f6204b1181a82420f3aeb69fc30a22138b39b8381b
MD5 95c07131cd071228370ee6999f39588d
BLAKE2b-256 1073326e90c8cca9b5b770c50e4b2f6699feeced773be9d7cb38ff148ed40c7c

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