Skip to main content

Stellar rotation and activity evolution model

Project description

MORS

License Docs codecov Unit Tests Integration Tests

MORS (Model for Rotation of Stars) is the stellar-evolution module of the PROTEUS coupled atmosphere-interior evolution framework. It models the rotational spin-down and high-energy (X-ray, EUV, Lyman-α) emission of low-mass stars over their lifetimes, following the rotation-activity model of Johnstone, Bartel & Güdel (2021).

Given a stellar mass and an initial rotation rate, or an observed rotation percentile, MORS returns the time evolution of the rotation period, the X-ray, EUV and Lyman-α luminosities, and the bolometric luminosity, radius and effective temperature interpolated from stellar-structure tracks. Within PROTEUS it supplies the stellar XUV history that drives atmospheric escape and photochemistry.

Model

MORS evolves the surface rotation of a low-mass star (0.1-1.25 Msun) with a wind-braking spin-down law calibrated to the rotation distributions of open clusters, then maps rotation to activity through the Rossby-number rotation-activity relation: X-ray luminosity first, then EUV and Lyman-α from empirical band scalings. Structural quantities (bolometric luminosity, radius, effective temperature) are interpolated from Spada et al. (2013) evolutionary tracks by default; Baraffe et al. (2015) tracks (0.01-1.40 Msun, no rotation model) are available as an alternative.

Documentation

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

  • Getting started: installation and a quick path to a first run.
  • Tutorial: a first stellar-evolution run and how to read its output.
  • How-to guides: install, evolve a star, read tracks and activity quantities, compute habitable-zone boundaries, run the tests.
  • Explanations: rotation model, X-ray and EUV activity, stellar structure, spectral synthesis, and coupling to PROTEUS.
  • API reference and validation anchors: every public function with NumPy-style docstrings, plus the per-source reference-pinned test inventory.

Installation

pip install fwl-mors

Or, for development:

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

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

Stellar evolution data

MORS ships without the stellar-evolution tracks, which live in the OSF repository. Set the FWL_DATA environment variable to the directory where the data should live, then download the tracks:

export FWL_DATA=/your/local/path/FWL_DATA   # add to ~/.bashrc to persist
mors download all

Quick start

import mors

star = mors.Star(Mstar=1.0, Prot=2.7)  # 1 Msun, initial rotation period at 1 Myr
print(star.Lx(150.0))                  # X-ray luminosity at 150 Myr [erg s-1]

See the first-run tutorial for the full walkthrough.

Citation

If you use MORS in published work, please cite:

If you use the model cluster distribution or percentiles, also cite the rotation-measurement sources in Table 1 of Johnstone et al. (2021).

License

MIT License. MORS is part of the 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_mors-26.7.12.tar.gz (604.5 kB view details)

Uploaded Source

Built Distribution

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

fwl_mors-26.7.12-py3-none-any.whl (74.2 kB view details)

Uploaded Python 3

File details

Details for the file fwl_mors-26.7.12.tar.gz.

File metadata

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

File hashes

Hashes for fwl_mors-26.7.12.tar.gz
Algorithm Hash digest
SHA256 8122029eb03622e5e81d448f4aa121ec3bad8c281bfc0a4dfd91b7ecd2658120
MD5 4798b594ac89649d155ffeb39241d0e3
BLAKE2b-256 5651512b842f99e26d1966f352f38323805e107110215ee9ae14d66174203321

See more details on using hashes here.

Provenance

The following attestation bundles were made for fwl_mors-26.7.12.tar.gz:

Publisher: publish.yaml on FormingWorlds/MORS

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_mors-26.7.12-py3-none-any.whl.

File metadata

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

File hashes

Hashes for fwl_mors-26.7.12-py3-none-any.whl
Algorithm Hash digest
SHA256 27acc3670db430102bba8297a43a9fe50a1f2df5ec9862be5c158c2d6b6e4327
MD5 3763295eadba4cfcb46a7a57f8653fae
BLAKE2b-256 553772c5cbaec3f3c51b5c696e2beac21517f35601be6150ebbeb8827fd953e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fwl_mors-26.7.12-py3-none-any.whl:

Publisher: publish.yaml on FormingWorlds/MORS

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