Skip to main content

Utilities to perform stat mech analysis of pair potentials

Project description

Repo Docs PyPI license PyPI version Conda (channel only) Code style: ruff uv

analphipy

Utilities to perform metric analysis on fluid pair potentials. The main features of analphipy as follows:

Overview

analphipy is a python package to calculate metrics for classical models for pair potentials. It provides a simple and extendable api for pair potentials creation. Several routines to calculate metrics are included in the package.

Features

  • Pre-defined spherically symmetric potentials
  • Simple interface to extended to user defined pair potentials
  • Routines to calculate Noro-Frenkel effective parameters.
  • Routines to calculate Jensen-Shannon divergence

Status

This package is actively used by the author. Please feel free to create a pull request for wanted features and suggestions!

Example usage

# Create a Lennard-Jones potential
>>> import analphipy
>>> p = analphipy.potential.LennardJones(sig=1.0, eps=1.0)

# Get a Noro-Frenekl analysis object
>>> n = p.to_nf()

# Get effective parameters at inverse temperature beta
>>> print(n.sig(beta=1.0))
1.01560...

>>> print(n.eps(beta=1.0))
-1.0

>>> print(n.lam(beta=1.0))
1.44097...

Installation

Use one of the following to install analphipy

pip install analphipy

or

conda install -c conda-forge analphipy

Documentation

See the documentation for a look at analphipy in action.

What's new?

See changelog.

License

This is free software. See LICENSE.

Contact

The author can be reached at wpk@nist.gov.

Credits

This package was created using Cookiecutter with the usnistgov/cookiecutter-nist-python template.

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

analphipy-0.4.2.dev15.tar.gz (49.3 kB view details)

Uploaded Source

Built Distribution

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

analphipy-0.4.2.dev15-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file analphipy-0.4.2.dev15.tar.gz.

File metadata

  • Download URL: analphipy-0.4.2.dev15.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for analphipy-0.4.2.dev15.tar.gz
Algorithm Hash digest
SHA256 50cd053db3f51be57b979763a38268ad67fd65da7cf5bdfd185f0424d51ea480
MD5 cea22b72461661d6ffc989b52cb92048
BLAKE2b-256 855e5a6c1f7bdfc4420d344a7f620a2e0756b3a622b8dbb285214ab091f616e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for analphipy-0.4.2.dev15.tar.gz:

Publisher: cd.yml on usnistgov/analphipy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file analphipy-0.4.2.dev15-py3-none-any.whl.

File metadata

File hashes

Hashes for analphipy-0.4.2.dev15-py3-none-any.whl
Algorithm Hash digest
SHA256 241c91ea1a9d88f99ad227706c1a75df0dd71f761146001a6d5d0773aad01ff0
MD5 fc49646ec065269e30c7ec33e4ef91fa
BLAKE2b-256 b9a7759af6d2b82f6714bfb2f980109db3216069f0c336efffb9c0ab36b956c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for analphipy-0.4.2.dev15-py3-none-any.whl:

Publisher: cd.yml on usnistgov/analphipy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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