Skip to main content

Powerful, efficient trajectory analysis in scientific Python.

Project description

Citing freud PyPI conda-forge ReadTheDocs Binder Codecov 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.4.1.tar.gz (3.3 MB view details)

Uploaded Source

Built Distributions

freud_analysis-2.4.1-cp39-cp39-manylinux2010_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

freud_analysis-2.4.1-cp39-cp39-macosx_10_12_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.9 macOS 10.12+ x86-64

freud_analysis-2.4.1-cp38-cp38-manylinux2010_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

freud_analysis-2.4.1-cp38-cp38-macosx_10_12_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.8 macOS 10.12+ x86-64

freud_analysis-2.4.1-cp37-cp37m-manylinux2010_x86_64.whl (5.1 MB view details)

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

freud_analysis-2.4.1-cp37-cp37m-macosx_10_12_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.7m macOS 10.12+ x86-64

freud_analysis-2.4.1-cp36-cp36m-manylinux2010_x86_64.whl (5.1 MB view details)

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

freud_analysis-2.4.1-cp36-cp36m-macosx_10_12_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.6m macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: freud-analysis-2.4.1.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud-analysis-2.4.1.tar.gz
Algorithm Hash digest
SHA256 dbcf3a9a17e117225e466bf6ab17c4a30ed9e201d71e93d0c244de246b46e435
MD5 62e51a54df260f435cd54018545dddaf
BLAKE2b-256 b6d87d9938843fc0d90359817033434a8f868cf615571ad017362bbefc88d2a7

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 168bdec38052bd89abd1bd9b9b2df778a1cf3cdf2d34eba1e90462ab4ec82b7c
MD5 d711527a8945539eb0a43b18ab0516d8
BLAKE2b-256 73ab4c5aa4fdbdd4dd18c6e57bd28b38622b3294fbfcd477a52adf41ec820f38

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp39-cp39-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.9, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 41a1cbf6d8d52540fa7f8676367d5ce73cf0aba088b6976c7ef193c4e2d9b0f7
MD5 1cfac7c5bbe8b5197709a93d90e02005
BLAKE2b-256 e1dc8e3cd60f1b778ca5170ae5b68903e16739e32864f50874a22026f0b531fa

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 10a741408957da3098eba572b14b3198521448e8881d21cfc441a95db280ce5c
MD5 459921f4ec86454bef627d2b38fe07ba
BLAKE2b-256 ab1c7aea16c782e484863a2310dad6e10f50c4c974e59427211295d3560e616d

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp38-cp38-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp38-cp38-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.8, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp38-cp38-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a5592e51725b9d53b6c9ef39731e6d81f96cc7d86eb1170965aec99172b622db
MD5 39d38b049f9e26c7de1b47f359f75d52
BLAKE2b-256 e27b38067c3b98957ab15e353d51820afcfdb4d37aee21c2633aa351a90d0fb6

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 78c8b7f91a00be06e688576e9b226cadbdbe66d0d4d83ccc9a73d32400145161
MD5 8f1cc7aebca7f666a6e928f6b7caf02f
BLAKE2b-256 8f8cde3eac13f646cce6c77aa031d59a8ae2f8f3e84be1f6edb531f4878569ff

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp37-cp37m-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp37-cp37m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.7m, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 73321552cce044aefe96815927399776b2bbee2ede08912187e211ac054c322c
MD5 2ab28aaeb5a55c0ad68b4520e509373f
BLAKE2b-256 98030ba5a4d391d900b86bfd89cad2451538c2beb82d86cbdd66aef863f9e854

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 20770197eebd2e8311397a39f07141c6c1e6feab7a0fe10d46733e68ecd554d8
MD5 c64674d6574be0c99727c377d9a97cdd
BLAKE2b-256 e39811fb231ab41106c1d34de30767a5eb5405264eb86ecc2e65c4af0077860f

See more details on using hashes here.

File details

Details for the file freud_analysis-2.4.1-cp36-cp36m-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.4.1-cp36-cp36m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: CPython 3.6m, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0

File hashes

Hashes for freud_analysis-2.4.1-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3e953d3ca6944dd118023b9d010c2c0bc6f50b5c412b47e8d98270c753c6188c
MD5 a3319fced4ba683c2b114530115392e2
BLAKE2b-256 f542133135ab3518678e8a792b9cab40274c01f97858e5f0c37bb9c06d13f432

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