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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darknewt-1.1.2.tar.gz (127.3 kB view details)

Uploaded Source

Built Distribution

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

darknewt-1.1.2-py3-none-any.whl (158.8 kB view details)

Uploaded Python 3

File details

Details for the file darknewt-1.1.2.tar.gz.

File metadata

  • Download URL: darknewt-1.1.2.tar.gz
  • Upload date:
  • Size: 127.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for darknewt-1.1.2.tar.gz
Algorithm Hash digest
SHA256 3d6f7fa49eced29255413c661ecc6607c85a6a29b451affbfa0f01b3772be89b
MD5 4ebf361f3d10c9f10e83cadb7dc0d4fa
BLAKE2b-256 8e46a5846ccc1eb1760978839e257e0a393c43f3ff43669b4b3467ea3d92f0a2

See more details on using hashes here.

File details

Details for the file darknewt-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: darknewt-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 158.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for darknewt-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b65fbcf13733812b7fe115ffbe2f1a77a4ab921ba9715ce0eed18071a73910e4
MD5 5eafde2de47bbe274832016ab803168d
BLAKE2b-256 ef02fb62fcc7717ba4dbf8ac46c2b4d6bd73c692988293d2271078b5c0c1e4b3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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