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 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.

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.

Resources

Some other helpful links for working with freud:

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(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 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.0.0.tar.gz (4.7 MB view details)

Uploaded Source

Built Distributions

freud_analysis-2.0.0-cp37-cp37m-manylinux1_x86_64.whl (24.2 MB view details)

Uploaded CPython 3.7m

freud_analysis-2.0.0-cp37-cp37m-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.7m macOS 10.12+ x86-64

freud_analysis-2.0.0-cp36-cp36m-manylinux1_x86_64.whl (24.2 MB view details)

Uploaded CPython 3.6m

freud_analysis-2.0.0-cp36-cp36m-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.6m macOS 10.12+ x86-64

freud_analysis-2.0.0-cp35-cp35m-manylinux1_x86_64.whl (24.2 MB view details)

Uploaded CPython 3.5m

freud_analysis-2.0.0-cp35-cp35m-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.5m macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: freud-analysis-2.0.0.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for freud-analysis-2.0.0.tar.gz
Algorithm Hash digest
SHA256 4320caf09439ee0d55afd6f99666defa61e201820e1c53005f15f42a75e00af3
MD5 230cd0755bcb71fe7f50205b61d3a964
BLAKE2b-256 b0721aad1d1b2bc0c6761a9a4637a2cfec68547098a3854ae006c393fbce1391

See more details on using hashes here.

File details

Details for the file freud_analysis-2.0.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.0.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 24.2 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for freud_analysis-2.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c24a470d8c7fbbc2f8755c0acc9f50af48f0b66e7650e400a15522df0d036f25
MD5 e4fc2f1379f8fcb65261efc4b2b9f02f
BLAKE2b-256 7f3ad1cf54a9e0a933ea069f32feee65d37ad7bf27de6b9f994f1f265a8b1af9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-2.0.0-cp37-cp37m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.7m, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for freud_analysis-2.0.0-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5df6206339216ce5354072b67c3f77897a436a4a912d36d93b6988cdec19402e
MD5 ecc58d498903c473f7604c715decd63d
BLAKE2b-256 c38247f1ab30279662ef542d445e5c7451cec095dda568aa7305fab4b31ef739

See more details on using hashes here.

File details

Details for the file freud_analysis-2.0.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.0.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 24.2 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for freud_analysis-2.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 79791a91ddbbd8c1ac9ed83ecf508729290bd430eafbd5a476b1fb1c9628f1b5
MD5 329542fab36dfb32bae04f822b2c17ee
BLAKE2b-256 a8e78a0493e80047ffce41638dc83a28647405b7b3836ee0d101763c64e0f399

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-2.0.0-cp36-cp36m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.6m, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for freud_analysis-2.0.0-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6d2f99b26a8da0de67a9254830700aeafe4989f5d3df1d4c272985aed197bc09
MD5 1db94a9d7328740f1abb0b3ee8b45386
BLAKE2b-256 9119b650e7e93c1003deeb3ec021f7d4709b1d6ac27c58abde8f71eb305314ad

See more details on using hashes here.

File details

Details for the file freud_analysis-2.0.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.0.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 24.2 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for freud_analysis-2.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 13b77722d8b7670cd18ee8fd91fcff48da8152cce0046248a3499b04f4fe18e2
MD5 87957da5c8ff8e15b8eecb9d54711121
BLAKE2b-256 d56fb3bd14b1358cbf506dc9ca26f8088bc6d5ebcebea91f3ddf21327a8cb256

See more details on using hashes here.

File details

Details for the file freud_analysis-2.0.0-cp35-cp35m-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: freud_analysis-2.0.0-cp35-cp35m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.5m, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for freud_analysis-2.0.0-cp35-cp35m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fca8d83fe5172e3b73beaae075b3dff66a127248c582bccc9f53494efa505bc8
MD5 9ced4d14b726ef5a4d555a3ae219783a
BLAKE2b-256 f5f11c0e4ecfe37f2cd5a9c582f009dec482434e00645e766a98d1a499a08531

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