Skip to main content

Package for handling the statistical mechanics of fermions and bosons

Project description

https://zenodo.org/badge/1019497078.svg

wnstatmech is a python package for handling the statistical mechanics of fermions and bosons.

pypi Documentation Status GitHub test lint-test black

Installation

Install from PyPI with pip by typing in your favorite terminal:

$ pip install wnstatmech

Performance controls

Fermion and Boson objects accept optional integration_epsabs and integration_epsrel arguments to control numerical integration accuracy. For better throughput over many thermodynamic states, pass vectorized temperature and alpha arrays to compute_quantity rather than calling it repeatedly in a Python loop:

import wnstatmech as ws
import numpy as np

electron = ws.fermion.create_electron(integration_epsrel=1.0e-6)
temperatures = np.geomspace(1.0e7, 1.0e10, 24)
alphas = np.linspace(-8.0, 8.0, 24)
pressures = electron.compute_quantity("pressure", temperatures, alphas)

Scalar call signatures remain backwards compatible with 1.0.x usage.

Authors

Contribute

License

The project is licensed under the GNU Public License v3 (or later).

Documentation

The project documentation is available at https://wnstatmech.readthedocs.io.

Usage

The best way to get started using wnstatmech is to follow the tutorial.

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

wnstatmech-1.1.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

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

wnstatmech-1.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file wnstatmech-1.1.0.tar.gz.

File metadata

  • Download URL: wnstatmech-1.1.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for wnstatmech-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6e22015721ca9795828f578099d998fccc51c6c28663d66a456751171ceec34d
MD5 6a59dc1e22b47520bf84db4004a4c245
BLAKE2b-256 103e3ef050ccf57245ff1b133e0f7bc08e5733499dc38d64330d3c5032484017

See more details on using hashes here.

File details

Details for the file wnstatmech-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: wnstatmech-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for wnstatmech-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c12b1628d44cdf69b081d973e714e513142278434e4d698fc649598ea49166f
MD5 ef254b2c7e66ec3d548814294aa7a229
BLAKE2b-256 dd66d7274a9ef29c09ab0b9a9593a80520601da66dcb7019cba222ea1e9d3cb3

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