Skip to main content

A python library for calculating planet geochemistry from stellar compositions.

Project description

Stellar Geology

Documentation Status DOI

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

stellar_geology is not yet on PyPI, but you can pip install by git cloning or via the following:

pip install git+https://github.com/kaylai/stellar-geology.git

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

stellar_geology-0.1.0.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

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

stellar_geology-0.1.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file stellar_geology-0.1.0.tar.gz.

File metadata

  • Download URL: stellar_geology-0.1.0.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for stellar_geology-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7cc865475ebe521f6e7e2c550e01efe607d242368286959d9bf84401808bc36
MD5 1a39b72b9490fbb2600849006a98aa21
BLAKE2b-256 4d70862561d7e56676a401a46def5095f2253052296855b3644c3e0588e1d3ee

See more details on using hashes here.

File details

Details for the file stellar_geology-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stellar_geology-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e17dbfad3a4b26ba01ab59ddd9ecaa15fba7ca9c71897769499c6a0bc08ff3e
MD5 fc909a1015c4baff2e5b55cc5d001ebf
BLAKE2b-256 e600539f2e30f123e848ee2a99d03c79ea4199569f2a1360ff48b9a05c868400

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