A python library for calculating planet geochemistry from stellar compositions.
Project description
Stellar Geology
A python library for calculating planet geochemistry from stellar compositions.
stellar_geology takes a star’s elemental abundances (in dex notation), converts them through a geochemical pipeline, and predicts the bulk and silicate composition of rocky planets. It then calculates CIPW normative mineralogy for the resulting silicate mantles — olivine, pyroxene, garnet, and more.
import stellar_geology as sg
# make a star
star = sg.Star(stellar_dex={"Fe": 0.1, "Mg": -0.05, "Si": -0.05, "Ca": 0.02, "Al": 0.03})
# derive a planet
planet = sg.Planet.from_star(star)
bsp = sg.Planet(bulk_planet=planet.bulk_planet, alphas={"Fe": 0.49, "Ni": 0.49})
bsp = bsp.get_composition("bulk_silicate_planet", units="wtpt_oxides")
# calculate its mineralogy
mineralogy = sg.calculate_mineralogy(bsp)
Installation
pip install stellar-geology
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 stellar_geology-0.1.1.tar.gz.
File metadata
- Download URL: stellar_geology-0.1.1.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17d617bbf3d2a9b292e6b41f02c2adb35f9f5d4619feba0d661a2dbee1235ef3
|
|
| MD5 |
3dc5fde85a74176dc86e51a472ca094e
|
|
| BLAKE2b-256 |
6e11d0418b333c9609c0e0837f4b05057734252e01a7020f54463e5c6648737e
|
File details
Details for the file stellar_geology-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stellar_geology-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b946aa4a0b3e5a95876a1739cc98ceeaadea067272eff130c79a6a144514814
|
|
| MD5 |
38622d68b5f9d0eaf6f6432f75b0d916
|
|
| BLAKE2b-256 |
87b708d40eec7f60d69b3a986f05b319932c7227fd7ce04a3c80b59575498f5d
|