Skip to main content

Particle Mesh in Python

Project description

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:: https://api.travis-ci.org/rainwoodman/pmesh.svg
:alt: Build Status
:target: https://travis-ci.org/rainwoodman/pmesh/

This readme file is minimal. We shall expand it.

API Reference
-------------
Refer to http://rainwoodman.github.io/pmesh for a full API reference.


Description
-----------

The domain decomposition is 2-d (pencil/stencils). [pmesh.domain]
FFT is supported by pfft-python.
Currently the conversion between particle and mesh we only implement
the linear window function (Cloud-in-Cell). Plans are to implement
other windows, e.g. truncated lanczos or some wavelet motivated windows
that acts as an apodization filter to suppress aliasing effect.

Currently, a particle mesh gravity solver is in utils/gravpm.py .
We have compared that the force output at first time step agrees with
the long range force calculation in MP-Gadget3.

We also provide a simple (long range) gravitational strain calculator in utils/strain.py .
The calculator have been used to calculate the strain tensor for the RunPB dark matter simulations
(2048^3 particles in a 1380 Mpc/h box), on 576 MPI ranks at Edison.

There is a power-spectrum calculator in utils/powerspectrum.py

If there are issues starting up a large size MPI job, consult
http://github.com/rainwoodman/python-mpi-bcast


Yu Feng

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pmesh-0.1.8.tar.gz (525.2 kB view details)

Uploaded Source

File details

Details for the file pmesh-0.1.8.tar.gz.

File metadata

  • Download URL: pmesh-0.1.8.tar.gz
  • Upload date:
  • Size: 525.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pmesh-0.1.8.tar.gz
Algorithm Hash digest
SHA256 9d10035e653990d6169c4c5b84acba66a7843b6a5d4c4f72ee6217584a6a4179
MD5 2cd5466b1bcc4cae091c778327ee6ea6
BLAKE2b-256 32f4d5b477cf4aa178ffbd3a8a178c4fcca90e8a4d073069458bbcc10cdddd8e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page