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 exogibbs.presets.ykb4 import prepare_ykb4_setup
from exogibbs.api.equilibrium import equilibrium_profile, EquilibriumOptions

# chemical setup
chem = prepare_ykb4_setup()

# Thermodynamic conditions
Pref = 1.0  # bar, reference pressure
opts = EquilibriumOptions(epsilon_crit=1e-11, max_iter=1000)

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

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

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.2.4.tar.gz (637.9 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.2.4-py3-none-any.whl (313.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for exogibbs-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e8c32baef87d203c6387759d5eec496033d00b9b6a8f5a5ad880f41a37e216c1
MD5 7de5d9ffcecd964735b7e895498661a0
BLAKE2b-256 d2d0161e80e5c7c6b8e9ef539c46a3674fbc67743c0b81b5bbff7487d1793ea6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exogibbs-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 313.1 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.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 53d38254ec540f55e5702490f460c4badb9bfcc686a6368a1794d84d65101ea0
MD5 f80e372db30d62817add6c53350efc39
BLAKE2b-256 17b254df826785986141fea9e4081536ccb7a63d3752fd74146fbf6c1ac3649d

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