Skip to main content

rdfpy is a Python package for computing 2D and 3D radial distribution functions.

Project description

rdfpy

rdfpy is a Python library for fast computation of 2D and 3D radial distribution functions.

Installation

$ pip install rdfpy

Usage

import numpy as np
from rdfpy import rdf

particles = np.random.uniform(0.0, 20.0, size=(2500, 3))  # random particles in a 20x20x20 box

g_r, radii = rdf(particles, dr=0.1)

You can find a more detailed example in the Documentation.

Note: In order for rdfpy to work correctly, your particles should spatially be in a cuboidal box, where the entire box is filled with particles.

Authors

rdfpy was developed by Batuhan Yildirim under the supervision of Prof. Jacqueline M. Cole.

Citation

If you use rdfpy in your work, please cite:

@software{rdfpy,
  author       = {Batuhan Yildirim and
                  Hamish Galloway Brown},
  title        = {by256/rdfpy: rdfpy-v0.1.7},
  month        = mar,
  year         = 2021,
  publisher    = {Zenodo},
  version      = {v0.1.7},
  doi          = {10.5281/zenodo.4603002},
  url          = {https://doi.org/10.5281/zenodo.4603002}
}

DOI

Funding

This project was financially supported by the Science and Technology Facilities Council (STFC) and the Royal Academy of Engineering (RCSRF1819\7\10).

License

License

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

rdfpy-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdfpy-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file rdfpy-1.0.0.tar.gz.

File metadata

  • Download URL: rdfpy-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.6.0 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.4

File hashes

Hashes for rdfpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 99ac9f002148b09afc763bf86ccae094236f41a9762498760f5d28d021a2ba57
MD5 cfc63161c69c6332feea6beee309600c
BLAKE2b-256 d3e96dc620cc09e3bc5548093125d542d993107f136a4763973cf992388d016e

See more details on using hashes here.

File details

Details for the file rdfpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rdfpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.6.0 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.4

File hashes

Hashes for rdfpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c994446a553e2323e53b969558808358c71902ea09034e6ea994e6298e9e357
MD5 5c8c9e1491fa62557dc0029a3ed01114
BLAKE2b-256 e297aa8bb5aac21089d587dac33befa1cc3a2a925cb7ea572d31c4aa751a5225

See more details on using hashes here.

Supported by

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