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: black

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!

Quick start

Use one of the following to install analphipy

pip install analphipy

or

conda install -c conda-forge analphipy

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

Documentation

See the documentation for a look at analphipy in action.

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.

Changelog

Changelog for analphipy

Unreleased

See the fragment files in changelog.d

v0.3.0 — 2023-08-04

Added

  • Package now available on conda-forge

Changed

  • Added better support for mypy/pyright type checking.

v0.2.0 — 2023-05-04

Removed

  • Removed cached_decorator module.
  • Removed docfiller module.

Added

v0.1.0 — 2023-04-24

Changed

  • Update package layout
  • New linters via pre-commit
  • Development env now handled by tox

v0.0.6 - 2023-03-22

Full set of changes: v0.0.5...v0.0.6

v0.0.5 - 2023-03-22

Full set of changes: v0.0.4...v0.0.5

v0.0.4 - 2022-09-27

Full set of changes: v0.0.3...v0.0.4

v0.0.3 - 2022-09-26

Full set of changes: v0.0.2...v0.0.3

v0.0.2 - 2022-09-26

Full set of changes: v0.0.1...v0.0.2

v0.0.1 - 2022-09-26

This software was developed by employees of the National Institute of Standards and Technology (NIST), an agency of the Federal Government. Pursuant to title 17 United States Code Section 105, works of NIST employees are not subject to copyright protection in the United States and are considered to be in the public domain. Permission to freely use, copy, modify, and distribute this software and its documentation without fee is hereby granted, provided that this notice and disclaimer of warranty appears in all copies.

THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.

Distributions of NIST software should also include copyright and licensing statements of any third-party software that are legally bundled with the code in compliance with the conditions of those licenses.

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.1.tar.gz (437.2 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.1-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file analphipy-0.4.1.tar.gz.

File metadata

  • Download URL: analphipy-0.4.1.tar.gz
  • Upload date:
  • Size: 437.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.23

File hashes

Hashes for analphipy-0.4.1.tar.gz
Algorithm Hash digest
SHA256 4d4f1d0b0bb8b7861d714999450cbcc2c798e1a52157e6900beee13571bc6e9e
MD5 c91fc9efc5bdc2b6eed9d6a77469353a
BLAKE2b-256 ee3d7de0882ab93a78cb5821909d64070cf8ab11df6ca701a0725765ce4c9180

See more details on using hashes here.

File details

Details for the file analphipy-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: analphipy-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.23

File hashes

Hashes for analphipy-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56da41439ccd8a23f1e4f4489ab333bf45272673f63ddcab4b7eadb49d2078bc
MD5 f1fb1961b9202a088cdb94be965c3a76
BLAKE2b-256 a0b9726b78b53eb847c1ee593772f78026725a0e05bfea5165ccfc6acbcba203

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