Skip to main content

Fast Cosmological N-body Simulation

Project description

Cosmological N-body Simulation

Cosmological N‑body simulation framework developed at the National Institute of Technology, Calicut.
It reads an input P(k) from a CSV file, generates Zel'dovich initial conditions, and evolves the density field in a cosmological box.

Installation

From PyPI (when published):

pip install nbodycosmos

From source (editable, for development):

git clone https://github.com/AstroAkshay/Cosmological-N-body-Simulation.git
cd Cosmological-N-body-Simulation
pip install -e .

Usage

From Python

from nbodycosmos import run_simulation
from nbodysim.params import PyParams

run_simulation(
    params     = PyParams(N1=64, N2=64, N3=64, Nbin=10, LL=0.07, NF=1, vaa=0.047),
    csv_path   = "data/P_CDM.csv",
    output_dir = "output/",
)

From command line

run-cosmos

With custom inputs:

run-cosmos --csv data/my_Pk.csv --output

Project details


Download files

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

Source Distribution

nbodycosmos-0.1.1.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

nbodycosmos-0.1.1-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file nbodycosmos-0.1.1.tar.gz.

File metadata

  • Download URL: nbodycosmos-0.1.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nbodycosmos-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e4d748ded34f5e8f1689b147e0ee58d2742655a9d0218e289e222ad71a35009d
MD5 dccac71622aba0b23d4b37c2ba5eb85d
BLAKE2b-256 2f21bd8a93062f415501ea13416090aab2b81436c0fbb9c6779f5d8e5fdb0a70

See more details on using hashes here.

File details

Details for the file nbodycosmos-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nbodycosmos-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nbodycosmos-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da34637a3d0857983e234cdce1ea0b516cbca396ed9136d607d338347404a005
MD5 bbf8696bedae14511f55c315593acdad
BLAKE2b-256 5e73d61d8510725d7cbcba9cf84d683c702a1c29e98703da7ce68ab74bacbea8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page