Skip to main content

encounter-outcomes

A reduced model for passages of stellar-mass black holes through massive stars. It maps encounter parameters, the stellar structure, the black-hole mass, the pericentre and the incoming speed, to an outcome. It also supplies the encounter statistics for stars and black holes embedded in an AGN disk.

What it contains

Module Purpose
profiles Read stellar profiles (MESA format) and compute chord summaries
trajectories Integrate conservative and drag-coupled trajectories through a spherical star
drag, windtunnel Drag closures: Ostriker (1999) dynamical friction and common-envelope wind-tunnel coefficients
screening Admission criteria for where two drag closures disagree on capture
stellar_response Layer-resolved response of the star between passages
tides Tidal energy deposition by mode overlap (Press & Teukolsky 1977)
core_shock Diagnostic for a black hole crossing a helium core
fits, literature Transcribed published fits and literature coordinates, each with provenance
agn_encounters, hill_shear_kernel, resonance_records Encounter cross-sections in AGN disks
triple_truncation* Diagnostics for tidal truncation of triples
regimes, interface Regime routing and the single evaluation call

The package ships the small transcribed tables and kernels it needs. Stellar profiles and the results behind the papers are in the separate data release.

Install

pip install encounter-outcomes

Requires Python 3.10 or later, NumPy and SciPy.

Papers

The model and its results are described in the paper series on star–black-hole encounters in AGN disks by Rosenberg and O'Shaughnessy. Cite the papers and the data release when you use this package.

Licence

MIT. See LICENSE.

Metadata

Release files for encounter-outcomes 0.1.0

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

Source distribution (sdist)

Source distribution for encounter-outcomes 0.1.0
File Size Uploaded Provenance Actions
encounter_outcomes-0.1.0.tar.gz 2.9 MB With provenance Details for encounter_outcomes-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for encounter-outcomes 0.1.0
File Interpreter ABI Platform Actions
encounter_outcomes-0.1.0-py3-none-any.whl Python 3 none any Details for encounter_outcomes-0.1.0-py3-none-any.whl

Total release size: 5.8 MB

Release files / encounter_outcomes-0.1.0.tar.gz

Download URL encounter_outcomes-0.1.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
11c8580086f55410f89d9af4094fb81594646aa375a23b7b3f3eaac0734c7e18
BLAKE2b-256 checksum
How to use checksums
c9ad76e8582f382950011c13e9e06e7ce0b5accdd0e3c858ac5331c46a93119a
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 28, 2026.

Transparency log

Release files / encounter_outcomes-0.1.0-py3-none-any.whl

Download URL encounter_outcomes-0.1.0-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e71e0afc38ac968a88ff30719cd8fa79b010ab4b346f0e75e61e4eae86b2379f
BLAKE2b-256 checksum
How to use checksums
50150ebb3ec31cafff691d82678add8bd85b32d42e58b33a0f979fb5a19786ae
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 28, 2026.

Transparency log

Security for encounter-outcomes 0.1.0

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 encounter_outcomes-0.1.0.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 28, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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