Metadata-Version: 2.4
Name: nbodycosmos
Version: 0.1.1
Summary: Fast Cosmological N-body Simulation
Author: Akshay B220011EP
License: Copyright 2026 Akshay Sekar
        
        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at
        
            https://www.apache.org/licenses/LICENSE-2.0
        
        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Topic :: Scientific/Engineering :: Physics
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.24
Requires-Dist: scipy>=1.10
Requires-Dist: pandas>=2.0
Requires-Dist: matplotlib>=3.7
Dynamic: license-file

# 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):

```bash
pip install nbodycosmos
```

From source (editable, for development):

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

## Usage

### From Python

```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

```bash
run-cosmos
```

With custom inputs:

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