Skip to main content

ZEPHYRUS banner ZEPHYRUS banner

License Docs codecov Unit Tests Integration Tests

ZEPHYRUS is the atmospheric escape module of the PROTEUS coupled atmosphere-interior evolution framework. It computes the rate at which a rocky or sub-Neptune planet loses its atmosphere to space, how that loss is shared between chemical species, and the fraction of the atmosphere a giant impact removes.

Named after Zephyrus, the Greek god of the west wind and a messenger of spring. Pronounced ZEF-ir-us.

Escape model

The escape model is the regime dispatcher, zephyrus.dispatch. It takes one planetary state (mass, radius, orbit, stellar fluxes, and an atmosphere profile), decides which escape physics applies, and returns a regime label, the mass-loss rate, the rate of each element, flags, and diagnostics. The six regimes are boil-off, three limits on an XUV-driven hydrodynamic wind (energy-limited, recombination-limited, and photon-limited), hydrostatic Jeans escape with diffusion-limited supply, and Roche-lobe overflow. A hydrodynamic wind is split over species by a fractionation closure, so heavy species can lag the flow or stay behind.

zephyrus.escape.EL_escape applies the energy-limited rate alone, with an optional tidal correction after Erkaev et al. (2007), to every state without checking which regime applies. For giant impacts, zephyrus.collision.impact_loss returns the eroded fraction of the atmosphere from the scaling laws of Kegerreis et al. (2020) and Roche et al. (2026).

Documentation

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

  • Getting started: installation and the quickest path to a first run.
  • Tutorials: dispatching escape regimes on synthetic atmospheres, and a first energy-limited calculation for the Sun-Earth system.
  • How-to guides: install, run the tests, build the documentation.
  • Explanations: model overview, the escape regimes, fractionation, giant impacts, coupling to PROTEUS, limitations, and the testing suite.
  • API reference and validation anchors: every public function with NumPy-style docstrings, plus the reference-pinned test inventory.

Installation

pip install fwl-zephyrus

Or, for development:

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

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

Input data

ZEPHYRUS uses MORS for the stellar XUV flux, which needs a set of stellar evolution tracks from 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 math

from scipy.constants import Stefan_Boltzmann as sigma_sb

from zephyrus import EscapeInputs, dispatch
from zephyrus.constants import au2m
from zephyrus.planets_parameters import Ls, Me, Ms, Re
from zephyrus.profiles import isothermal_profile

# An Earth-mass, Earth-radius planet with a pure CO2 atmosphere at 0.0775 au
a = 0.0775 * au2m
T_eq = (Ls / (16 * math.pi * sigma_sb * a**2)) ** 0.25        # 1000 K
state = EscapeInputs(
    M_p=Me, R_p=Re, M_star=Ms, a=a, e=0.0, T_eq=T_eq,
    F_xuv=10.0,                                  # XUV flux at the planet [W m-2]
    F_bol=Ls / (4 * math.pi * a**2),             # bolometric flux [W m-2]
    F_int=1.0,                                   # interior heat flux [W m-2]
    kappa_photo=0.01,                            # grey photospheric opacity [m2 kg-1]
    profile=isothermal_profile(Me, Re, T_eq, {'CO2': 1.0}, 1e7, 1e-5),
)
result = dispatch(state)
print(result.regime, f'{result.mdot:.3e} kg/s')   # hydrodynamic:EL 2.348e+06 kg/s
print({el: f'{r:.3e}' for el, r in result.per_species.items()})

The dispatcher tutorial builds on this state step by step, and the first-run tutorial applies EL_escape along a MORS stellar history.

License

Apache License 2.0. ZEPHYRUS is part of the PROTEUS framework.

Metadata

Release files for fwl-zephyrus 26.11.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fwl-zephyrus 26.11.14
File Size Uploaded Provenance Actions
fwl_zephyrus-26.11.14.tar.gz 13.8 MB With provenance Details for fwl_zephyrus-26.11.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fwl-zephyrus 26.11.14
File Interpreter ABI Platform Actions
fwl_zephyrus-26.11.14-py3-none-any.whl Python 3 none any Details for fwl_zephyrus-26.11.14-py3-none-any.whl

Total release size: 13.9 MB

Release files / fwl_zephyrus-26.11.14.tar.gz

Download URL fwl_zephyrus-26.11.14.tar.gz
Size 13.8 MB
Tags Source
SHA-256 checksum
How to use checksums
3a6c388acb16675eab370af130cf723978a6e953c0e06dc3d7b28eb72493a4d4
BLAKE2b-256 checksum
How to use checksums
db40969303aba82d27755423f3f33bea44a2880e8bfc2a674bc1a4a3d4070151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / fwl_zephyrus-26.11.14-py3-none-any.whl

Download URL fwl_zephyrus-26.11.14-py3-none-any.whl
Size 100.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92d46242d2204992c24c0d0bf3e0b4ba801f6ef1ade6d0cb19a09711f87566c3
BLAKE2b-256 checksum
How to use checksums
ae9e2b14ef2e43ec3045b845f696557b77938cd4f53907fff7b9a4c1b640d92c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for fwl-zephyrus 26.11.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fwl_zephyrus-26.11.14.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page