Skip to main content

DarkNewt

darknewt logo

Tolman–Oppenheimer–Volkoff modelling of dark-matter admixed neutron stars

PyPI version GitLab Python License


Overview

DarkNewt is a Python package for modelling compact stars containing nuclear matter and dark matter using the Tolman–Oppenheimer–Volkoff (TOV) equations.

The package can be used to calculate:

  • Mass–radius relations of neutron stars
  • Pure nuclear-matter neutron-star sequences
  • Two-fluid nuclear-matter + dark-matter configurations
  • Individual nuclear-matter and dark-matter masses
  • Individual fluid radii
  • Total stellar mass and radius
  • Dimensionless tidal deformability
  • Mass–tidal-deformability relations
  • Configurations at fixed dark-matter mass fraction

The package is designed primarily for research and exploratory work in neutron-star and gravitational-wave physics.


Installation

From PyPI

conda create -n darknewt-env python=3.11 -y
conda activate darknewt-env
python -m pip install darknewt

Install from source

Quickest way is this:

conda create -n darknewt-env python=3.11 -y
conda activate darknewt-env
python -m pip install git+https://gitlab.com/samanwaya-mukherjee/darknewt.git

Features

Equation of state

darknewt provides a common EOS interface supporting both tabulated and analytic equations of state.

Built-in nuclear-matter EOS tables include, among others:

  • AP1
  • AP3
  • AP4 / APR4
  • MPA1
  • MS1
  • H1
  • H4
  • SLy

Several Bose–Einstein condensate (BEC) dark-matter EOS tables are also included.

User-supplied EOS tables can be loaded from a file containing:

density [g/cm^3]    pressure [dyn/cm^2]

Project structure

darknewt/
├── assets/
│   └── darknewt_logo.png
├── darknewt/
│   ├── __init__.py
│   ├── constants.py
│   ├── love.py
│   ├── solver.py
│   ├── tov.py
│   ├── utils.py
│   └── eos/
│       ├── __init__.py
│       ├── base.py
│       ├── models.py
│       └── eos_data/
│           ├── AP1.dat
│           ├── ...
├── examples/
│   └── test.py
├── README.md
├── LICENSE
├── CHANGELOG.md
└── pyproject.toml

Metadata

Release files for DarkNewt 1.1.3

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

Source distribution (sdist)

Source distribution for DarkNewt 1.1.3
File Size Uploaded Provenance Actions
darknewt-1.1.3.tar.gz 456.9 kB Without provenance Details for darknewt-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for DarkNewt 1.1.3
File Interpreter ABI Platform Actions
darknewt-1.1.3-py3-none-any.whl Python 3 none any Details for darknewt-1.1.3-py3-none-any.whl

Total release size: 615.7 kB

Release files / darknewt-1.1.3.tar.gz

Download URL darknewt-1.1.3.tar.gz
Size 456.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d2f1c3afe9ea95daf554934003e57e74ad8dfd3ce7043fe27cb8a0c04ec8c204
BLAKE2b-256 checksum
How to use checksums
ff49bb0608b0ca9f855661c0cfa54224b14585b0322296ff9779c7cfd21414dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / darknewt-1.1.3-py3-none-any.whl

Download URL darknewt-1.1.3-py3-none-any.whl
Size 158.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f19b64db43dd7dd056a676013d1202f06582d870da1e7bc7092824c66fe13b2
BLAKE2b-256 checksum
How to use checksums
024f6c2687f5d7c0d5d17e371c5986651738155919f713a45a867ce2d5ef9971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for DarkNewt 1.1.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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