Skip to main content

Powerful, efficient trajectory analysis in scientific Python.

Project description

Citing freud PyPI conda-forge ReadTheDocs Binder GitHub-Stars

Overview

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, order parameters, and clusters, as well as original analysis methods including potentials of mean force and torque (PMFTs) and local environment matching. The freud library supports many input formats and outputs NumPy arrays, enabling integration with the scientific Python ecosystem for many typical materials science workflows.

Resources

Citation

When using freud to process data for publication, please use this citation.

Installation

The easiest ways to install freud are using pip:

pip install freud-analysis

or conda:

conda install -c conda-forge freud

freud is also available via containers for Docker or Singularity. If you need more detailed information or wish to install freud from source, 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. The examples come in the form of Jupyter notebooks, which can also be downloaded from the freud examples repository or launched interactively on Binder. Below is a sample script that computes the radial distribution function for a simulation run with HOOMD-blue and saved into a GSD file.

import freud
import gsd.hoomd

# Create a freud compute object (RDF is the canonical example)
rdf = freud.density.RDF(bins=50, r_max=5)

# Load a GSD trajectory (see docs for other formats)
traj = gsd.hoomd.open('trajectory.gsd', 'rb')
for frame in traj:
    rdf.compute(system=frame, reset=False)

# Get bin centers, RDF data from attributes
r = rdf.bin_centers
y = rdf.rdf

Support and Contribution

Please visit our repository on GitHub for the library source code. Any issues or bugs may be reported at our issue tracker, while questions and discussion can be directed to our user forum. All contributions to freud are welcomed via pull requests!

Project details


Download files

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

Source Distribution

freud-analysis-2.5.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distributions

freud_analysis-2.5.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

freud_analysis-2.5.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

freud_analysis-2.5.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

freud_analysis-2.5.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

File details

Details for the file freud-analysis-2.5.0.tar.gz.

File metadata

  • Download URL: freud-analysis-2.5.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for freud-analysis-2.5.0.tar.gz
Algorithm Hash digest
SHA256 263d985842b2adcd7130aaf0880cb45f5a8e33c08fb39161cca26b7c6b97a713
MD5 b0a7a88854f7adc284cf7e8e94285dc5
BLAKE2b-256 02446f871a2abc6a14fd34964a55744fd6cd8531418f3b091b2dc844d89531e4

See more details on using hashes here.

File details

Details for the file freud_analysis-2.5.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for freud_analysis-2.5.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 83af90c7d92ff4dcc25dfb4706bc4e5fe91d3f0a58b3962ce39486d0cc9f4baf
MD5 9517ff16c2bea01359afb5db79956a1b
BLAKE2b-256 3a88925a1cba090724e2c8007cb18fcc991d3f681c4c842b16417fdd0f4556a2

See more details on using hashes here.

File details

Details for the file freud_analysis-2.5.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for freud_analysis-2.5.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0b8e901f5f59889ee63b812aaf9247c3220b16deff72a6aa7be93c201ad67308
MD5 33f3415d43f765bfa408c16695f9ba41
BLAKE2b-256 700c69b8cf67dc98b65467d0a9e24098ba0c499f1cccd9571efc956be4e7da9f

See more details on using hashes here.

File details

Details for the file freud_analysis-2.5.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for freud_analysis-2.5.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7386278bf429b95aa5813e314725d93bbf11976767eea53e6de189a079e51e01
MD5 41df5f887b8341da3ce9359c4c3753ed
BLAKE2b-256 eb5468c68fb931ab9a3aaf6a2380adb1faccae9beb26af1d72be11af7b1f26e8

See more details on using hashes here.

File details

Details for the file freud_analysis-2.5.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for freud_analysis-2.5.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c68f6649eacf0d8a374ae155be86a8dba07165dd05448d2f0c189216022c2147
MD5 931856f7e8cc1e81637ada1099c6bfc4
BLAKE2b-256 d932a0069e76cb53c96bc97c2253f54205058d0629374335531dc1aee7c6c29c

See more details on using hashes here.

Supported by

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