Giter VIP home page Giter VIP logo

sph-interp's Introduction

sph-interp

Smoothed particle hydrodynamics interpolation to a grid.

The core functionality of sph-interp is a set of interpolation functions derived from the Splash Fortran code rewritten in Python. It uses numba, a Python JIT compiler, for performance on par with the Fortran code.

For the original Splash source code, see https://github.com/danieljprice/splash.

Usage

Import sph-interp.

>>> import sphinterp as interp

Interpolate particles via projection.

>>> pixel_grid = interp.projection(x, y, z, h, weight, data, ...)

Install

Install from PyPI with pip.

python -m pip install sphinterp

Install from source.

git clone https://github.com/dmentipl/sph-interp
cd sph-interp
pip install -e .

Requirements

Python 3.6+ with numpy and numba.

License

sph-interp is licensed under GPL-2.0 following Splash. See LICENSE for details.

Citation

If you use sph-interp in a publication, please cite the Splash paper.

Price, D. J., 2007, PASA, 24, 159

To-do

  • add license
  • add tests
  • modularise code
  • add non-Cartesian interpolation
  • add perspective rendering
  • add opacity rendering
  • add exact rendering
  • add interpolate to 3D grid
  • add missing docstrings

sph-interp's People

Contributors

dmentipl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sph-interp's Issues

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.