Skip to main content

Powerful, efficient trajectory analysis in scientific Python.

Project description

freud

DOI PyPI conda-forge ReadTheDocs Binder Codecov GitHub Stars

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

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


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

Uploaded Source

Built Distributions

freud_analysis-1.2.1-cp37-cp37m-manylinux1_x86_64.whl (16.1 MB view details)

Uploaded CPython 3.7m

freud_analysis-1.2.1-cp36-cp36m-manylinux1_x86_64.whl (16.0 MB view details)

Uploaded CPython 3.6m

freud_analysis-1.2.1-cp35-cp35m-manylinux1_x86_64.whl (15.9 MB view details)

Uploaded CPython 3.5m

freud_analysis-1.2.1-cp34-cp34m-manylinux1_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.4m

freud_analysis-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl (15.5 MB view details)

Uploaded CPython 2.7mu

freud_analysis-1.2.1-cp27-cp27m-manylinux1_x86_64.whl (15.5 MB view details)

Uploaded CPython 2.7m

freud_analysis-1.2.1-cp27-cp27m-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 2.7m macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: freud-analysis-1.2.1.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.32.2 CPython/3.7.3

File hashes

Hashes for freud-analysis-1.2.1.tar.gz
Algorithm Hash digest
SHA256 2f3320d158b0dcddb8f085d13cbe25393d6ae7f43cd679e09ea54a46252a80ec
MD5 32398e41278203bdb623d1f16ade14f3
BLAKE2b-256 487884a85cc89d7ae62c96ec3f08acdda922850c440ff2b3d91949c118d45004

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.1-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.32.2 CPython/3.7.3

File hashes

Hashes for freud_analysis-1.2.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e4a7e6e1c0783de7d0e0074bab3b34edd6b18d6ca2f3aa5dfb3c5678dd8ed5da
MD5 a6a54e62d4ead11c1b21965d7591b364
BLAKE2b-256 73bfe4f76fcedf7dd7e2364534a08a05b19b8cfee518e45664b78cd9fd249043

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 16.0 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.32.2 CPython/3.7.3

File hashes

Hashes for freud_analysis-1.2.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 53e6ec6c38ece72aa71b416e08e8eab7360484c1839074d744afe6fd77d7b186
MD5 6d1f6ee4209a37b20ce4f7b7d85d5e70
BLAKE2b-256 6263be5c6d69668017602346ad6a0bc176d59207cd6466965ae69ebc2b7076b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.1-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.32.2 CPython/3.7.3

File hashes

Hashes for freud_analysis-1.2.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bc8a72d9059af77d8c9273f4869095d50cc9c26acf49e6c423d65323620f61a8
MD5 2b37a8f5d884f9ba70893dbf8c41cb32
BLAKE2b-256 60ef2bb6f79a9b87d6c3c196c8d122d2d8bc8d5737c251da71177e2dbe7d63a2

See more details on using hashes here.

File details

Details for the file freud_analysis-1.2.1-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: freud_analysis-1.2.1-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.8 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.32.2 CPython/3.7.3

File hashes

Hashes for freud_analysis-1.2.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b2bc038ca709104c4632a11c52c016af22a4a6e3e218381a4509a05c363167a3
MD5 97f050a01c8ee0f48661fc0ef6b74d9a
BLAKE2b-256 b3b9d977e1719d7fee5e177ca17e7b025338d4090ead2445e19cc2e75036de16

See more details on using hashes here.

File details

Details for the file freud_analysis-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: freud_analysis-1.2.1-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.32.2 CPython/3.7.3

File hashes

Hashes for freud_analysis-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1e545578c81750a59cc45861e725b044fbd376dcd2dedda4387f9daa2bfd81ca
MD5 8b740b32562f6362bd2f154d2b47c0ea
BLAKE2b-256 5a2397868fc79ce0ba352a79f1b47c34f97921f29b174a442ddf25680760d6e4

See more details on using hashes here.

File details

Details for the file freud_analysis-1.2.1-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: freud_analysis-1.2.1-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.32.2 CPython/3.7.3

File hashes

Hashes for freud_analysis-1.2.1-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d69e0657ce555e0fd033c2b5ce6e787ab0013984d20e876637f51e0f2e7c2f2b
MD5 507cfad715b16490904a131c5e391e5f
BLAKE2b-256 84deb6f222ebf770db61821f06971a909f390741bb3f198c76ec1bead784d85f

See more details on using hashes here.

File details

Details for the file freud_analysis-1.2.1-cp27-cp27m-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: freud_analysis-1.2.1-cp27-cp27m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.2 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.32.2 CPython/3.7.0

File hashes

Hashes for freud_analysis-1.2.1-cp27-cp27m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 462fefec4fc0594261ee885f7bb8a5a6404cdf3069a3755feae0c55102821bf9
MD5 cf21272731da2b5e3d8262e9dcd364ec
BLAKE2b-256 29f4c671a185052865e6fef5d1fca9121371092fb283465b867940b52adef0e0

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