skip to navigation
skip to content

pmesh 0.1.24

Particle Mesh in Python

Latest Version: 0.1.25

pmesh: Particle Mesh in Python

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

Build Status
.. image::
:alt: Build Status

This readme file is minimal. We shall expand it.

Reference Manual

Refer to 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.


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.

- : 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

.. [1]
.. [2]
.. [3]
.. [4]
.. [5]

File Type Py Version Uploaded on Size
pmesh-0.1.24.tar.gz (md5) Source 2017-05-19 519KB
  • Author: Yu Feng
  • License: GPL3
  • Package Index Owner: rainwoodman, nickhand
  • DOAP record: pmesh-0.1.24.xml