Skip to main content

Post-processing tools for particle simulations

Project description

Post processing

Python post processing tools to compute static and dynamic correlation functions from particle simulations

  • Real space: radial distribution function, mean square displacement, time-dependent overlap functions, non-Gaussian parameter
  • Fourier space: structure factor, intermediate scattering functions, four-point dynamic susceptibility

This package relies on atooms to read trajectory files.

Quick start

Installation is easy (see Installation for more details)

pip install atooms-pp

We can now compute correlation functions from trajectories produced by particle simulation codes. Any trajectory format recognized by atooms can be processed, for instance most "xyz" files should work fine.

As an example, we compute the structure factor S(k) for the trajectory file contained in the data/ directory.

In the example above, we used 20% of the available time frames to compute the averages using the --norigins flag. Without it, atooms-pp applies an heuristics to determine the number of time frames required to achieve a reasonable data quality.

The results of the calculation are stored in data/ If the system is a mixture of different types of particles, say A and B, the program will create additional files for partial correlations, named, and

The same calculation can be done from python:

from atooms.trajectory import Trajectory
import atooms.postprocessing as pp

with Trajectory('data/') as t:
     p = pp.StructureFactor(t)

Checkout the tutorial and notebook for more details.


  • numpy
  • atooms
  • [optional] argh (only needed when using
  • [optional] tqdm (enable progress bars)
  • [optional] argcomplete (enable tab-completion for


If you cannot install the package system-wide, you can still install it in the user space. Either from pypi

pip install --user atooms-pp

or cloning the project repo

git clone
cd postprocessing
make user

The commands above will install under ~/.local/bin. Make sure this folder is in your $PATH. To install system-wide, sudo make install.

Project details

Download files

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

Files for atooms-pp, version 2.4.1
Filename, size File type Python version Upload date Hashes
Filename, size atooms-pp-2.4.1.tar.gz (42.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page