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

Uploaded Source

Built Distributions

freud_analysis-1.2.0-cp37-cp37m-manylinux1_x86_64.whl (15.5 MB view details)

Uploaded CPython 3.7m

freud_analysis-1.2.0-cp37-cp37m-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.7m macOS 10.12+ x86-64

freud_analysis-1.2.0-cp36-cp36m-manylinux1_x86_64.whl (15.5 MB view details)

Uploaded CPython 3.6m

freud_analysis-1.2.0-cp36-cp36m-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.6m macOS 10.12+ x86-64

freud_analysis-1.2.0-cp35-cp35m-manylinux1_x86_64.whl (15.3 MB view details)

Uploaded CPython 3.5m

freud_analysis-1.2.0-cp34-cp34m-manylinux1_x86_64.whl (15.3 MB view details)

Uploaded CPython 3.4m

freud_analysis-1.2.0-cp27-cp27mu-manylinux1_x86_64.whl (15.0 MB view details)

Uploaded CPython 2.7mu

freud_analysis-1.2.0-cp27-cp27m-manylinux1_x86_64.whl (15.0 MB view details)

Uploaded CPython 2.7m

freud_analysis-1.2.0-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.0.tar.gz.

File metadata

  • Download URL: freud-analysis-1.2.0.tar.gz
  • Upload date:
  • Size: 4.6 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.0.tar.gz
Algorithm Hash digest
SHA256 38923ba4ae7928e7b7d6e244743b2e7c5b8bd21944652f6b9a7cbdf039a713c1
MD5 f0da938fbf15085a0faa73417209e759
BLAKE2b-256 fb36d88caa117bf1758102eb67a6ce61852244513c17ebcc3e8c37e62b6efebe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.5 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.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e52cf4c8fd641da52c397c16584eb5bab1e6c77ed7e8c6511f69d178c2441523
MD5 bd83172cb99730aca93cb4c68d8a6c3a
BLAKE2b-256 a6830345bd9214df134f7be84d8d87f65a36be63298729fc4d07c31d0c03f869

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp37-cp37m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.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.0-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 60d2e3111a4d6304982467085cfb0db81202d91fd6ad2795f48de15fc68eda7a
MD5 bcb2c59b0f38c48a1c8c69ece7293ecc
BLAKE2b-256 9d2a41891a1ab7237c30d42fbe7567b12941b2ca73a24a36880297ccc1aca1e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.5 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.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f07726da0835120644cf5465dcf20ef579fc7a478318b6a5bca45821ccb265be
MD5 2d8c471b1119c0e3997620a9cb4d2a1d
BLAKE2b-256 b017342e1066ff2571b0678e67bc13c586ddbae8d42aac90583db37d56ca15d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp36-cp36m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.6m, 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.0-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4e381216924d51f74cd53fe5284300d1bc25c920afa16c291c58beabb3c2a070
MD5 19d9276358f15ba26caa052076893bbd
BLAKE2b-256 d2a7c2b34b6495818c949c402587def3aea7f4af47d4b89a3a549b09f82f7505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.3 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.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 58d1d8156ec1907d5c93613365b8c62026042bff42fb48236d03fcde8871b714
MD5 ad8cab6cfa4c8c221a52c9080b1c338b
BLAKE2b-256 5a6b56179b829655b72495e949e17274de30a20496af6aff462f1daddcef5e2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.3 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.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bd78c899abbe9450e9a1ab2ded29e5a90626b9fc9471e0c8caf15f8a774a51a5
MD5 d4fd418c5660cdadae66f560b253d027
BLAKE2b-256 a7adec1ebfe3ee1ecf618a8a0a202158b4ed8ead7f5a8eb635478aec3a02fbfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.0 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.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c9d4198fc7a11c2a69e2c9b78a96eef554873a17aac73175bac198c271a04313
MD5 fdb58b1bee542095fe8423363b227f26
BLAKE2b-256 3190fbf4bc3908d619234a15958e896394f0d8d123f3bceff81bf7710aacb294

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.0 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.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 32efc94db37b1be5d2a1d5b49981279566eb5b602b9b5784cfadf4b5aebfb2c7
MD5 e547e630bed028c2dd81fb157c87ec52
BLAKE2b-256 0997a920dd7044008d70a2f5339d6977eba0c2d35e33c48549601198ca7899c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freud_analysis-1.2.0-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.0-cp27-cp27m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ec10e309d6f782e94ee385bdba5b0487247e7e94cf297f3175280fb857042123
MD5 1da52d2ba97de5d1205749979ea949de
BLAKE2b-256 40457d2281fca4767fdf3334e21a0e397869f2de0bd0d561b84e0ce4f6a39754

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