Package for handling the statistical mechanics of fermions and bosons
Project description
wnstatmech is a python package for handling the statistical mechanics of fermions and bosons.
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.
Contribute
Issue Tracker: https://github.com/mbradle/wnstatmech/issues/
Source Code: https://github.com/mbradle/wnstatmech/
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wnstatmech-1.1.1.tar.gz.
File metadata
- Download URL: wnstatmech-1.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d0e2ca75b8cd6460867a28a40604d8a4dec38953c00bdaf6a1354b07ca3141
|
|
| MD5 |
995e27728cd68e5630750c5a3dec4ba4
|
|
| BLAKE2b-256 |
56250696b47fd696309268cc11d4b67fe745e7706ca82c819c4a20f34c2d697a
|
File details
Details for the file wnstatmech-1.1.1-py3-none-any.whl.
File metadata
- Download URL: wnstatmech-1.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be078e9d3da0a81c04c19d562c4828f6f1959684f1ceddee78d2c3f6c8eb8c2c
|
|
| MD5 |
f73c4e93488c44536e3fa007a76c4efd
|
|
| BLAKE2b-256 |
224077e4c2937c21e7bee9dd8e2398007b6d19101028790758025cc1fb3b968d
|