GithubHelp home page GithubHelp logo

milescranmer / pmesh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rainwoodman/pmesh

0.0 3.0 0.0 3.01 MB

Particle Mesh in Python

License: GNU General Public License v3.0

Shell 0.03% Python 33.18% C 66.79%

pmesh's Introduction

pmesh: Particle Mesh in Python

The pmesh package lays out the fundation of a parallel Fourier transform particle mesh solver in Python.

Build Status

Build Status

This readme file is minimal. We shall expand it.

Reference Manual

Refer to http://rainwoodman.github.io/pmesh for a full API reference and installation guide.

We recommended working with Anaconda's Python distribution. pmesh is available via the BCCP conda channel for Anaconda. Installing from the source requires installing pfft from source, and it may take a while to compile pfft.

Description

pmesh includes a few software components for building particle mesh simulations with Python. It consists

  • pmesh.domain : a cubinoid domain decomposition scheme in n dimensions.
  • pmesh.pm : a Particle Mesh solver engine, with real-to-complex, complex-to-real transforms, transfer functions in real and complex fields, and particle-mesh conversions (paint and readout) operations. In order to interface with a higher level differentiable modelling package (e.g. abopt [3]), the back-propagation gradient operators are also implemented.
  • pmesh.window : a variety of resampling windows for converting data representation between particle and mesh: polynomial windows up to cubic. Cloud-In-Cell is the same as the linear window; lanczos windows of order 2 and 3; a few wavelet motivated windows (ref needed) that perserves the power spectrum to high frequency.
  • pmesh.whitenoise : a resolution-invariant whitenoise generator for 2d and 3d fields.

The FFT backend is PFFT [5], provided by the pfft-python binding [4]. We use MPI to provide parallism (inherited from PFFT).

Downstream products that uses pmesh includes nbodykit [1] and fastpm-python [2].

If there are issues starting up a large size MPI job, consult
http://github.com/rainwoodman/python-mpi-bcast
[1]https://github.com/bccp/nbodykit
[2]https://github.com/rainwoodman/fastpm-python
[3]https://github.com/bccp/abopt
[4]https://github.com/rainwoodman/pfft-python
[5]https://github.com/mpip/pfft

pmesh's People

Contributors

rainwoodman avatar nickhand avatar

Watchers

James Cloos avatar Miles Cranmer avatar  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.