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.
freud Community
If you have a question, please post to the freud-users mailing list. Please report issues and suggest feature enhancements via the issue tracker.
Documentation
The documentation is available online at https://freud.readthedocs.io. These pages include an installation guide, examples demonstrating many of freud's modules, an API reference, and development guides for adding new features.
Examples
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.
Installing freud
Install via conda
conda install -c conda-forge freud
Install via pip
pip install freud-analysis
Compiling freud
Please refer to the installation documentation for help compiling freud from source.
Simple example script
The freud library is called using Python scripts.
Here is a simple example.
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
Hashes for freud_analysis-1.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e75ef5a840851870edbd7c517534b3344b31618ebbc56c0b6fa3fac990e3dae7 |
|
MD5 | cef92c4cfa44cd5162bb5f96ff62515c |
|
BLAKE2b-256 | 9b63741e4350eff065c5dbeee45027ea37b74f4474250ea9f70daa487ed49f4b |
Hashes for freud_analysis-1.0.0-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6661c665d9d2ad68293005007fc5338efe0c2d912adb14b5691f4fb305f5be65 |
|
MD5 | 351c261727db28b1408f4b9d49adaf7f |
|
BLAKE2b-256 | 076710c7a687590be7fde12ee2677cd795eeb669ae2c9298be581ac75eac4714 |
Hashes for freud_analysis-1.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56169fdcfe81a40f911674cbec5cae8a96459fc459893c60f7bec7d16f89c3be |
|
MD5 | d5b75fce6505d85f0e662fe76a216504 |
|
BLAKE2b-256 | 4d6c990ff07059d57deff20db35703ecb6bae731cacc511eb906d49e1feda3d7 |
Hashes for freud_analysis-1.0.0-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0239c34c5debab5c035e509096a9536c36f09d63bed7e6de27465ea69d50aca8 |
|
MD5 | a2ca596662a60bb2b198058cb6259272 |
|
BLAKE2b-256 | e1fb896b1f4fb183507d345249dd20e6cdb5b3b7a25e8021fe0bb01491d11b49 |
Hashes for freud_analysis-1.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0540d3bade0b71b0cb45abbe15079012836db132c1e61971143e9175e1d3f3 |
|
MD5 | d432cdb97092906b7a25f841ec706c5b |
|
BLAKE2b-256 | 2b18d51a25a239ea64073ad2dc6d78aaf64306911e0816b6f5a786f319cb1df1 |
Hashes for freud_analysis-1.0.0-cp35-cp35m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a10dc9a73583d62312c25386953ba361b85010b2700180c2a4d1c18afd82a60 |
|
MD5 | 356b8ae33f5e32326af05f9882a1067c |
|
BLAKE2b-256 | 9122238be143b5db4adfadd8fd2d157c1a0356376fc70c97b8d255b0aa8803b4 |
Hashes for freud_analysis-1.0.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3c6596d77aea4a4f48cc05b1028ecc89f53a1649224b462edeb08391f7be2d |
|
MD5 | af40953a5a5a001b7b9051ac7c9b5525 |
|
BLAKE2b-256 | 9afb7ff6f0e71c75c28ac0792886f2c7e36ee2833f590828fa66b0b29ef8b961 |
Hashes for freud_analysis-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 829d62d7761183fc9ddd7e41b29e5abeb332f8ca0c51a8fd34410f0540d04854 |
|
MD5 | be01d1a39f1d8e8b42033c01fc09b70e |
|
BLAKE2b-256 | bc552c48f08fbf636af6c21b97e3fb2562d11aadc1ef365e9269f1d38fcbb885 |
Hashes for freud_analysis-1.0.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52e9387797e9aad8af5be874f4a70f71cd4f9ea5dae04a2633f310b360858585 |
|
MD5 | 93bd37cc75215d39e07299693e4d66c9 |
|
BLAKE2b-256 | 555be945ab380e68561851df891eea5af0f2ba1d0f55f74f13d695bf8de3dd90 |
Hashes for freud_analysis-1.0.0-cp27-cp27m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98495389f6e1d66ca685a7b4e1d44b474510fd0bf3dfc48f5492b4a24308fc01 |
|
MD5 | 4087a3b325f5a52838b6dd07a83a55cf |
|
BLAKE2b-256 | 4b0a74dfd1d7e46eba0bc27b4e0eb9513390d51495c8d6ef82308d8c0a4c36fb |