Post-processing tools for particle simulations
Project description
Postprocessing
A Python package to compute static and dynamic correlation functions from simulations of interacting particles, such as molecular dynamics or Monte Carlo simulations. Based on atooms.
Quick start
Postprocessing works on trajectories. Any trajectory format recognized by atooms can be processed, for instance most "xyz" files should work fine. If you use a custom trajectory format, it is easy to add it.
From Python
As an example, we compute the structure factor S(k) from the file data/trajectory.xyz.
from atooms.trajectory import Trajectory
import atooms.postprocessing as pp
with Trajectory('data/trajectory.xyz') as t:
cf = pp.StructureFactor(t)
cf.compute()
cf.plot()
The wave-vectors and values of the correlation function are accessible as cf.grid and cf.values, respectively. If you also want to write the results of the calculation in a file, just use do() instead of compute(). You will find the results in data/trajectory.xyz.pp.sk. Check out the documentation section below for more information.
From the command line
The same calculation can be done from the command line
pp.py sk data/trajectory.xyz
Features
Available correlation and distribution functions
- Real space
- Fourier space
- Molecular correlations
- rotational correlation functions
- orientational angle distribution function
- Most real and Fourier space correlation functions admit a center-of-mass variant suitable for the molecules' centers of mass.
Documentation
Check out the tutorial for more examples and the public API for full details.
Org-mode and jupyter notebooks are available under docs/. You can run the tutorial interactively on Binder.
Installation
Install with pip
pip install atooms-pp
Or from source
git clone https://framagit.org/atooms/postprocessing.git
cd postprocessing
pip install .
Contributing
Contributions to the project are welcome. If you wish to contribute, check out these guidelines.
Authors
Daniele Coslovich: https://www.units.it/daniele.coslovich/
Thanks to Romain Simon and Giacomo Tonet for their contributions.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atooms_pp-4.3.0.tar.gz.
File metadata
- Download URL: atooms_pp-4.3.0.tar.gz
- Upload date:
- Size: 84.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d1f4bee35f1e88c397a404fd0fc9a121d62b024d224fb00bc5d099fa9cfa62
|
|
| MD5 |
cc9c231d9f89a208a5807da1581dda63
|
|
| BLAKE2b-256 |
a160facb92801b8d739da538b16fdacd2d47609c938d34761b75fbf80f842d30
|
File details
Details for the file atooms_pp-4.3.0-py3-none-any.whl.
File metadata
- Download URL: atooms_pp-4.3.0-py3-none-any.whl
- Upload date:
- Size: 87.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc83a9f46f39d888e81f0549c203484c53cb9362f96b4f53aebd8b1ded3ec49c
|
|
| MD5 |
e6d3849eb5d0bf47ddd9bddee36f3121
|
|
| BLAKE2b-256 |
c5c61cecbdc264ee309a91b3a7fb91ed05552794d7c8e1dbf1db0be0479f386d
|