Revised Enskog solutions
Project description
KineticGas
Implementation of Enskog solutions for diffusion, thermal diffusion and conductivity. The file theory.pdf contains an excerpt of the project report this package was created to produce, that outlines the theory used in the package and some notable results regarding the stability of the solutions.
Dependencies
C++ module uses the pybind11 package to expose itself to the Python wrapper, removing this dependency does not ammount to more than deleting the final lines in KineticGas.cpp and removing the appropriate include
statements.
The Python extension requires the ThermoPack python module (pyctp) and associated dependencies. The ThermoPack module is only used as a database for Mie-parameters. Removing the appropriate import statements and associated function calls will not break the code, but require that Mie-parameters are explicitly supplied.
Setup
The package that can be installed with pip
comes with a pre-compiled file KineticGas.so
, compiled on MacOS 10.14.6.
Build for mac by running bash cpp/build_mac.sh
from the top-level directory. The same script works for Linux, possibly with minor modifications. For Windows, may God be with you.
Install with pip
by running pip install pykingas/
from the top-level directory after activating your python-installation of choice.
Usage
Initialize a KineticGas object with the desired components, compute diffusion coefficients, thermal diffusion coefficients and thermal conductivity with the respective functions in py_KineticGas.py
Acknowledgments and sources
This implementation of the Enskog solutions presented by Chapman and Cowling (The mathematical theory of non-uniform gases 2nd ed. Cambridge University Press, 1964) utilises the explicit summational expressions for the required bracket integrals published by Tompson, Tipton and Loyalka in Chapman–Enskog solutions to arbitrary order in Sonine polynomials IV: Summational expressions for the diffusion- and thermal conductivity-related bracket integrals, European Journal of Mechanics - B/Fluids, 28, 6, pp. 695 - 721, 2009.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pykingas-1.0.2.tar.gz
.
File metadata
- Download URL: pykingas-1.0.2.tar.gz
- Upload date:
- Size: 111.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fb2b68bc205864ab9b6644f2971fa3e2cfdaf9888083581fbc0c396d51b826d |
|
MD5 | 76949457c2209806ef5d550cbf982f5a |
|
BLAKE2b-256 | df520a4a0b7bbc25112e8ce830410856f7dbcd35cf08ff618132bdc80a3aac59 |
File details
Details for the file pykingas-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pykingas-1.0.2-py3-none-any.whl
- Upload date:
- Size: 111.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae04fdf937f24607f39502234b0d2a973abf24b0bcb25a354cf6fde54e30dd8 |
|
MD5 | 75d0d4f7f50732937f527b8756654cdd |
|
BLAKE2b-256 | 50597c3f544841f6178e821b67a6a4fa46e07bb7c5770a7724a6d876d2c14afb |