Skip to main content

Planetary accretion and volatile delivery model

Project description

CALLIOPE

License Docs codecov Unit Tests Integration Tests

CALLIOPE is the equilibrium outgassing solver of the PROTEUS coupled atmosphere-interior evolution framework. It computes the partitioning of volatile elements (H, C, N, S) between a partially molten silicate mantle and an overlying gas-phase atmosphere, assuming both reservoirs are in thermochemical equilibrium at the planetary surface.

Given an elemental inventory, a magma ocean temperature, a melt fraction, and an oxygen fugacity (specified as a log10 shift from the iron-wüstite buffer), CALLIOPE returns the surface partial pressures of eleven volatile species, the dissolved volatile masses, and the atmospheric mass.

Named after the Greek muse of eloquence and epic poetry. Pronounced kal-IGH-uh-pee.

Supported species

H2O, CO2, N2, S2 (primary unknowns); H2, CH4, CO, NH3, SO2, H2S, O2 (derived from gas-phase equilibrium).

Documentation

Full documentation is at proteus-framework.org/CALLIOPE, including:

  • Getting started — installation and a quick path to running.
  • First-run tutorial — Earth-like solve with a Δ-IW redox sweep.
  • How-to guides — install, configure, run, couple to PROTEUS, test, release.
  • Explanations — model overview, equilibrium chemistry, solubility laws, oxygen fugacity, mass balance, code architecture.
  • API reference — every public function with NumPy-style docstrings.

Installation

pip install fwl-calliope

Or, for development:

git clone https://github.com/FormingWorlds/CALLIOPE.git
cd CALLIOPE
pip install -e .[develop,docs]

The docs extra pulls in Zensical so you can build this documentation locally with zensical serve.

Quick start

from calliope.solve import equilibrium_atmosphere, get_target_from_params
from calliope.constants import volatile_species

ddict = {
    'M_mantle': 4.03e24,                      # kg
    'gravity': 9.81, 'radius': 6.371e6,
    'T_magma': 2500.0, 'Phi_global': 1.0,
    'fO2_shift_IW': 0.5,                      # log10 shift relative to IW
    'hydrogen_earth_oceans': 1.0, 'CH_ratio': 0.1,
    'nitrogen_ppmw': 2.0, 'sulfur_ppmw': 200.0,
}
for sp in volatile_species:
    ddict[f'{sp}_included'] = 1
    ddict[f'{sp}_initial_bar'] = 0.0

target = get_target_from_params(ddict)
result = equilibrium_atmosphere(target, ddict)
print(f"P_surf = {result['P_surf']:.1f} bar, "
      f"H2O = {result['H2O_bar']:.1f} bar")

See the first-run tutorial for the full walkthrough.

Citation

If you use CALLIOPE in published work, please cite the three methods papers below. The full reference list (chemistry constants, solubility laws, oxygen-fugacity buffers, applications) is on the Publications page.

  • Bower, D.J., Kitzmann, D., Wolf, A.S., Sanan, P., Dorn, C., & Oza, A.V. (2019). Linking the evolution of terrestrial interiors and an early outgassed atmosphere to astrophysical observations. A&A 631, A103. [ADS] [DOI]
  • Bower, D.J., Hakim, K., Sossi, P.A., & Sanan, P. (2022). Retention of water in terrestrial magma oceans and carbon-rich early atmospheres. PSJ 3, 93. [ADS] [DOI]
  • Nicholls, H., Lichtenberg, T., Bower, D.J., & Pierrehumbert, R. (2024). Magma ocean evolution at arbitrary redox state. JGR Planets 129, e2024JE008576. [ADS] [DOI] [arXiv]

License

Apache License 2.0. CALLIOPE is part of the Forming Worlds Lab PROTEUS framework.

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

fwl_calliope-26.5.10.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

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

fwl_calliope-26.5.10-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file fwl_calliope-26.5.10.tar.gz.

File metadata

  • Download URL: fwl_calliope-26.5.10.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fwl_calliope-26.5.10.tar.gz
Algorithm Hash digest
SHA256 ae52cb7b2f424b700d745acd4e722fbb4b8e5fcf186119350cd98d13ca8a863b
MD5 988375eb7828219ba8e0006f2de44181
BLAKE2b-256 8a3d1d99cc1055f00db0dabbe57d74574b3e1297a36a065bd43bfbd1d34bedef

See more details on using hashes here.

Provenance

The following attestation bundles were made for fwl_calliope-26.5.10.tar.gz:

Publisher: publish.yaml on FormingWorlds/CALLIOPE

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fwl_calliope-26.5.10-py3-none-any.whl.

File metadata

  • Download URL: fwl_calliope-26.5.10-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fwl_calliope-26.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d7824857f872b64dd683757f195586bf8f95d35965bc382232951865f7c8fd9d
MD5 fb6e5a20ace6d4b7ad2b2b13728be7a2
BLAKE2b-256 e9401650d265fac1e0f91a75ee0727a441af5273f31798cd456733776e3b22aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for fwl_calliope-26.5.10-py3-none-any.whl:

Publisher: publish.yaml on FormingWorlds/CALLIOPE

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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