Powerful, efficient trajectory analysis in scientific Python.
Project description
freud
The freud Python library provides a simple, flexible, powerful set of tools for analyzing trajectories obtained from molecular dynamics or Monte Carlo simulations. High performance, parallelized C++ is used to compute standard tools such as radial distribution functions, correlation functions, and clusters, as well as original analysis methods including potentials of mean force and torque (PMFTs) and local environment matching. The freud library uses NumPy arrays for input and output, enabling integration with the scientific Python ecosystem for many typical materials science workflows.
When using freud to process data for publication, please use this citation.
Resources
- freud Documentation:
Python package reference.
- Installation Guide: Instructions for installing and compiling freud.
- Examples: Jupyter notebooks demonstrating the core features of freud.
- API Reference: Documentation for classes and methods in freud.
- Development Guide: Resources for contributing to freud.
- freud-users Google Group: Ask questions to the freud community.
- Issue Tracker: Report issues and suggest feature enhancements.
Installation
Install via conda:
conda install -c conda-forge freud
Or via pip:
pip install freud-analysis
freud is also available via containers for Docker or Singularity.
Please refer to the Installation Guide to compile freud from source.
Examples
The freud library is called using Python scripts. Many core features are demonstrated in the freud documentation. Additional example Jupyter notebooks can be found in the freud examples repository. These notebooks may be launched interactively on Binder or downloaded and run on your own system. Below is a script that computes the radial distribution function.
import freud
# Create a freud compute object (rdf is the canonical example)
rdf = freud.density.RDF(rmax=5, dr=0.1)
# Load in your data (freud does not provide a data reader)
box_data = np.load("path/to/box_data.npy")
pos_data = np.load("path/to/pos_data.npy")
# Create freud box
box = freud.box.Box(Lx=box_data[0]["Lx"], Ly=box_data[0]["Ly"], is2D=True)
# Compute RDF
rdf.compute(box, pos_data[0], pos_data[0])
# Get bin centers, RDF data
r = rdf.R
y = rdf.RDF
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 Distributions
File details
Details for the file freud-analysis-1.2.2.tar.gz
.
File metadata
- Download URL: freud-analysis-1.2.2.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32188e0b213c40ec152594e5fcd278c98480530b982f421ffa2157d6d8ce7d24 |
|
MD5 | 3c024fd9316c64e83c03f8496ed4403b |
|
BLAKE2b-256 | 9543ec50a6a22c333cba1d010296ef3a0b3b0396f790e68b1e1141a9d287e7e1 |
File details
Details for the file freud_analysis-1.2.2-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 16.1 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2591003929173ebca646ac1e2568c4b8cce7261448d7f4d2a19af514c97fc9ff |
|
MD5 | 1317028546c56fdd5c05034ab5d0f7f0 |
|
BLAKE2b-256 | 837187866a27d8760a9bb1076ccb8c0b58fb136b4d292ae20f34e509fa2d46da |
File details
Details for the file freud_analysis-1.2.2-cp37-cp37m-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp37-cp37m-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.7m, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ded0659d0c898d1dc408a74d80145b2ae271cbc3fae312c03bcd8f815e16b12 |
|
MD5 | 1c865fcdff5efe65b22ead9d8f2e30c6 |
|
BLAKE2b-256 | e0be344e8a9eb07e5734d7f6f72c336c440df8ab139a91ca44898f9a50016a4f |
File details
Details for the file freud_analysis-1.2.2-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 16.2 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fae935b16ecdcb68c6b48f77395405223ce2e25b309fa93ea11363445d2d5539 |
|
MD5 | 5fc96bf6231a2de394b684e3147219d4 |
|
BLAKE2b-256 | aade1d20b6cf5dd8d5c6c6d33c2ee1faf6a1b37f5902f1d7654fada579af0179 |
File details
Details for the file freud_analysis-1.2.2-cp36-cp36m-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp36-cp36m-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.6m, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf76af6e91e45f136955e69d3dce8040fe15f0a83f6bec83fe20688e7fffc35 |
|
MD5 | b4333003bc6a96bdf74a58a72d8c4418 |
|
BLAKE2b-256 | 03cc04b2f7cee23a21acc83d30bc808e28069b2bd0b838c02532e6b9420d5027 |
File details
Details for the file freud_analysis-1.2.2-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 15.9 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de60aac36b4ebf9a528207c61cf4513a10c609212bae646ecc04fe0bb643215b |
|
MD5 | ccb4ced45b36168c87d8736c2eeed3c3 |
|
BLAKE2b-256 | 1b4fa140d833b505fd1a0735d86f9d0e470d39ea35503b0990a869249a0116e9 |
File details
Details for the file freud_analysis-1.2.2-cp34-cp34m-manylinux1_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 15.9 MB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ca68d190a3832b9f1d407d2c1343fbee8ba93b08e69a5b337123476b0b0b7b6 |
|
MD5 | d95f129c4216aeec9b1bf27badf87015 |
|
BLAKE2b-256 | ab38bce16e9b2f8e876fef1c543d7f2845472fe36ce55f59f1373844a0940eac |
File details
Details for the file freud_analysis-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 15.5 MB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eb3e909c760c21428bee4dfec6bb3b1ad201a31d9cd9f265d71e0eb8c75da5a |
|
MD5 | 81f7c0cd3fe945d8927c86878d665de1 |
|
BLAKE2b-256 | 5511633fe5d153f3f23eee4e246f9f5192128e4fbf01f23b6ad29552eb42a9d3 |
File details
Details for the file freud_analysis-1.2.2-cp27-cp27m-manylinux1_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 15.5 MB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 496c18a3e2668c809836923631dfba56ee087a692229bba75defca3df9978b21 |
|
MD5 | 8cd9fbe99a7143cff3f27abfda29b87c |
|
BLAKE2b-256 | 24dce4009704cceec3e321f0a3037a74aa158581f7d99cfa19597880e934745a |
File details
Details for the file freud_analysis-1.2.2-cp27-cp27m-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: freud_analysis-1.2.2-cp27-cp27m-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 2.7m, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc51486129bca3456fd2b94355f14252731d96b5a673f5d60cb632d91323eaa |
|
MD5 | 0297b327b8e2f872411dbe3f2455829c |
|
BLAKE2b-256 | aeab3874eab8960b73ced28b08c322a4c496d5a8f5cbdec770992f2bb191f86f |