Skip to content

ChenYangyao/cosmic-web-classifier

Repository files navigation

CosmicWebClassifier - A Python package for classifying cosmic web structures

Last commit Workflow Status MIT License PyPI

The package provides a set of tools to compute the density and tidal field from a sample of particles (usually obtained by N-body/hydrodynamical simulations), and classify the cosmic web structures into knots, filaments, sheets and voids based on the fields.

To install, run:

pip install cosmic-web-classifier

Alternatively, you can clone the repository and install the package locally via pip install -e /path/to/the/repo.

Usage

See the Jupyter notebooks under docs/.

  • cosmic_web_types.ipynb: demonstrates how to generate a sample of dark matter particles from a particle-mesh code, and perform the classification based on the particle distribution.

Example images

Left: The evaluated density field. Right: The regions classified as voids (shown in white).

Contributors

Citation

If you use this package in your research, please cite the following papers:

Acknowledgements

The examples in this repository are based on the particle-mesh code PMWD (Yin Li, et al.).

About

A Python package for classifying cosmic web structures

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages