Volatile partitioning between a rocky interior and atmosphere
Project description
Atmodeller
About
Atmodeller is a Python package that uses JAX to compute the partitioning of volatiles between a planetary atmosphere and its rocky interior. It is released under The GNU General Public License v3.0 or later.
Documentation
The documentation is available online, with options to download it in EPUB or PDF format:
https://atmodeller.readthedocs.io/en/latest/
Quick install
Atmodeller is a Python package that can be installed on a variety of platforms (e.g. Mac, Windows, Linux). It is recommended to install Atmodeller in a dedicated Python environment. Before installation, create and activate the environment, then run:
pip install atmodeller
Downloading the source code is also recommended if you'd like access to the example notebooks in notebooks/.
Citation
If you use Atmodeller please cite (prior to manuscript submission, check back to see if this reference has been updated):
- Bower, D. J., Thompson, M. A., Hakim, K., Tian, M., and Sossi P. A. (2025), Diversity of rocky planet atmospheres in the C-H-O-N-S-Cl system with interior dissolution, non-ideality and condensation: Application to TRAPPIST-1e and sub-Neptunes, The Astrophysical Journal, submitted.
Basic usage
Jupyter notebooks in the notebooks/ directory demonstrate how to perform single and batch calculations, and how to integrate Atmodeller into time-dependent simulations. A simple example of how to use Atmodeller is provided below:
from atmodeller import (
InteriorAtmosphere,
Planet,
Species,
SpeciesCollection,
earth_oceans_to_hydrogen_mass,
)
from atmodeller.solubility import get_solubility_models
solubility_models = get_solubility_models()
# Get the available solubility models
print("solubility models = ", solubility_models.keys())
H2_g = Species.create_gas("H2_g")
H2O_g = Species.create_gas("H2O_g", solubility=solubility_models["H2O_peridotite_sossi23"])
O2_g = Species.create_gas("O2_g")
species = SpeciesCollection((H2_g, H2O_g, O2_g))
planet = Planet()
interior_atmosphere = InteriorAtmosphere(species)
oceans = 1
h_kg = earth_oceans_to_hydrogen_mass(oceans)
o_kg = 6.25774e20
mass_constraints = {
"H": h_kg,
"O": o_kg,
}
# If you do not specify an initial solution guess then a default will be used
# Initial solution guess number density (molecules/m^3)
initial_log_number_density = 50
interior_atmosphere.solve(
planet=planet,
initial_log_number_density=initial_log_number_density,
mass_constraints=mass_constraints,
)
output = interior_atmosphere.output
# Quick look at the solution
solution = output.quick_look()
# Get complete solution as a dictionary
solution_asdict = output.asdict()
print("solution_asdict =", solution_asdict)
# Write the complete solution to Excel
output.to_excel("example_single")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atmodeller-0.6.1.tar.gz.
File metadata
- Download URL: atmodeller-0.6.1.tar.gz
- Upload date:
- Size: 9.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb21fd958b3af9270462e38206d5af0a951df524273b30d4d890c5dcadddf4f9
|
|
| MD5 |
fd593a9bf293a85a23a7e9666e3811b8
|
|
| BLAKE2b-256 |
142d1505bfc28916c91af32f54ee58ae34b71805f3f802ba42fdab1095483107
|
Provenance
The following attestation bundles were made for atmodeller-0.6.1.tar.gz:
Publisher:
publish.yaml on ExPlanetology/atmodeller
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atmodeller-0.6.1.tar.gz -
Subject digest:
eb21fd958b3af9270462e38206d5af0a951df524273b30d4d890c5dcadddf4f9 - Sigstore transparency entry: 249468152
- Sigstore integration time:
-
Permalink:
ExPlanetology/atmodeller@379cdec4ea06b4c7900988eeceb53235efb0cf20 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/ExPlanetology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@379cdec4ea06b4c7900988eeceb53235efb0cf20 -
Trigger Event:
release
-
Statement type:
File details
Details for the file atmodeller-0.6.1-py3-none-any.whl.
File metadata
- Download URL: atmodeller-0.6.1-py3-none-any.whl
- Upload date:
- Size: 9.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea8851ee6b52b61298b37abd88e6b69005a4570e15760d299da567acd5954bd9
|
|
| MD5 |
2ca49b1d6d288e9451127e84e5c30036
|
|
| BLAKE2b-256 |
6bd68466b356a904a77d3fd175494b38844239433311e465557a17227aa0d50c
|
Provenance
The following attestation bundles were made for atmodeller-0.6.1-py3-none-any.whl:
Publisher:
publish.yaml on ExPlanetology/atmodeller
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atmodeller-0.6.1-py3-none-any.whl -
Subject digest:
ea8851ee6b52b61298b37abd88e6b69005a4570e15760d299da567acd5954bd9 - Sigstore transparency entry: 249468168
- Sigstore integration time:
-
Permalink:
ExPlanetology/atmodeller@379cdec4ea06b4c7900988eeceb53235efb0cf20 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/ExPlanetology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@379cdec4ea06b4c7900988eeceb53235efb0cf20 -
Trigger Event:
release
-
Statement type: