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
Release files for stellar-geology 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stellar_geology-0.1.2.tar.gz | 33.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stellar_geology-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.3 kB
Release files / stellar_geology-0.1.2.tar.gz
| Download URL | stellar_geology-0.1.2.tar.gz |
|---|---|
| Size | 33.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
048aee62310978796a8128362e3372af9933da3776d798b87595b9040e6e5803
|
|
BLAKE2b-256 checksum How to use checksums |
41102497be2b7ad75cc7873f38bd3a22556457112dd030186a6fa888b79edc41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.20
|
Release files / stellar_geology-0.1.2-py3-none-any.whl
| Download URL | stellar_geology-0.1.2-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9845bf2077d79d972dc94f4a8a0c7243bf643e1a4e3f5ef6002a48b162eb90f2
|
|
BLAKE2b-256 checksum How to use checksums |
9b76a962ced1dfdba9d9dad9c921ecbe563bf82b2c262b074e179b71dc66de4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.20
|