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.4

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.4
File Size Uploaded Provenance Actions
darknewt-1.1.4.tar.gz 457.3 kB Without provenance Details for darknewt-1.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 616.4 kB

Release files / darknewt-1.1.4.tar.gz

Download URL darknewt-1.1.4.tar.gz
Size 457.3 kB
Tags Source
SHA-256 checksum
How to use checksums
de3b494f6bf05197bdf44d03af8904aceffec5874f722cdf1a982e042376a069
BLAKE2b-256 checksum
How to use checksums
007f54f06eaf14cd4ac566ab1ff5cea96827773cf73a9e6ce2c189da159726f8
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.4-py3-none-any.whl

Download URL darknewt-1.1.4-py3-none-any.whl
Size 159.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d16672924dbe5050010a783fc7a5cddd28d6f918d7c14407cb55bdce2ca395aa
BLAKE2b-256 checksum
How to use checksums
34e513c1361a6d3c0cc03d166bf597e3e0a72dd907f8ace8a49acb328ada9151
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.4

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