https://github.com/jhidding/nbody2d
2D PM n-body code for cosmology
https://github.com/jhidding/nbody2d
2d-nbody cosmology simulation
Last synced: 3 months ago
JSON representation
2D PM n-body code for cosmology
- Host: GitHub
- URL: https://github.com/jhidding/nbody2d
- Owner: jhidding
- License: apache-2.0
- Created: 2019-11-01T15:36:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T14:21:51.000Z (over 1 year ago)
- Last Synced: 2025-04-11T23:17:33.981Z (10 months ago)
- Topics: 2d-nbody, cosmology, simulation
- Language: Python
- Homepage: https://jhidding.github.io/nbody2d
- Size: 5.26 MB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# 2D PM n-body code for cosmology
[](https://entangled.github.io/)
[](https://doi.org/10.5281/zenodo.4158731)

## Install
This code has the following dependencies:
- Python3
- Gnuplot
- `pip install -r requirements.txt` will install `numpy` and `scipy`.
## Run
From project directory run
python -m nbody.nbody
Progress on simulation is plotted with Gnuplot. Results end up in `./data` directory.
## Citation
If you use this code in a scientific publication, please cite it using this DOI:[10.5281/zenodo.4158731](https://doi.org/10.5281/zenodo.4158731).
## Development
I'm in the process of making this code literate. To edit the code, have [Entangled](https://entangled.github.io/) installed and running:
entangled daemon
Documentation is currently minimal. The literate code can be viewed in rendered form [on the github.io pages](https://jhidding.github.io/nbody2d).