Giter Site home page Giter Site logo

yunoshev / py-sphviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alejandrobll/py-sphviewer

0.0 1.0 0.0 6.74 MB

Py-SPHViewer is a framework for rendering cosmological simulations in Python using the Smoothed Particle Hydrodynamics (or SPH for short) interpolation scheme.

Home Page: https://github.com/alejandrobll/py-sphviewer

C 3.85% Python 12.16% Shell 0.01% Jupyter Notebook 83.98%

py-sphviewer's Introduction

py-sphviewer DOI

Py-SPHViewer is a publicly available Python package to visualize and explore N-body + Hidrodynamical simulations. The Smoothed Particle Hydrodynamics interpolation scheme is used to interpolate the underlaying density field (or any other property) traced by a finite set of particles, t hus producing smooth images of a particle distribution that can be easily interpreted. It does also provide the natural way for visualizing in a self-consistent way gas dynamical simulations in which the same technique is used to compute the particle interactions.

Part of the code is written in C, but it can be used interactively from Python, using tools such as Ipython or Ipython notebook. It does not only smooth the properties of particles over a ceratin influence domain, but also allows to explore the simulated volumes using different projections.

I usually try to keep the latest (stable or not) version available in the Python Package Index (or Pypi for short), so that you can get it just doing:

pip install py-sphviewer 

or:

easy_install py-sphviewer 

Note that as far as you have not root permissions, the --user flag would be requiered.

In case you may want to clone and install by yourself the package from this repository, you can simply do:

git clone https://github.com/alejandrobll/py-sphviewer.git
cd py-sphviewer
python setup.py install

Perhaps a good example of the current power of Py-SPHViewer is the logo of the project,

Image

The image above shows the dark matter distribution colored according to the velocity dispersion of a small halo taken from a cosmological simulation. It was rendered (of course) with Py-SPHViewer

More examples of the power of Py-SPHViewer are the following movies:

IMAGE ALT TEXT HERE

or,

IMAGE ALT TEXT HERE

and,

IMAGE ALT TEXT HERE

Previous movies show a 3D rotation around a dark matter halo taken from a cosmological simulation and the "Cosmic Web Stripping" process, which arise from hydrodynamical interaction betweet the gas content of dwarf galaxies and the large-scale structure of the Universe, respectively

Code Licence

Py-SPHViewer is under GNU GPL v3 licence, and was started by Alejandro Benitez-Llambay. It is under development and changes everytime. It's your responsibility to be aware of the changes and to check the code for understanding what it does.

Basic Tutorial

If you are interested in using Py-SPHVIewer, you should take a look at the very little tutorial. This tutorial assumes that you are familiar with Python. If not, please go to learn Python and come back.

Citing the code

If Py-SPHViewer has been significant in your project and leads to a publication, please acknowledge by citing the project. You can check the DOI at Zenodo: DOI, or just use the following BibTex:

@misc{alejandro_benitez_llambay_2015_21703,
author       = {Alejandro Benitez-Llambay},
title        = {py-sphviewer: Py-SPHViewer v1.0.0},
month        = jul,
year         = 2015,
doi          = {10.5281/zenodo.21703},
url          = {http://dx.doi.org/10.5281/zenodo.21703}
}

or in plain text:

Alejandro Benitez-Llambay. (2015). py-sphviewer: Py-SPHViewer v1.0.0. Zenodo. 10.5281/zenodo.21703

py-sphviewer's People

Contributors

alejandrobll avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.