Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.12 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.12 KB

2D PM n-body code for cosmology

Entangled badge DOI

A sample simulation, three time steps; the bottom row is a zoom-in.

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.

Development

I'm in the process of making this code literate. To edit the code, have Entangled installed and running:

    entangled daemon

Documentation is currently minimal. The literate code can be viewed in rendered form on the github.io pages.