Skip to main content

Revised Enskog solutions of the Boltzmann Equations for diffusion, thermal diffusion and thermal conductivity.

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 elements of kinetic gas theory used in the package and some notable results regarding the stability of the solutions. See the documentation for SAFT-VR-Mie at ThermoPack for more details on mixing rules.

Dependencies

C++ module uses the pybind11 package to expose itself to the Python wrapper, removing this dependency does not amount 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 for Python 3.9.

Build for Python 3.9 on mac by running bash cpp/build_mac.sh from the top-level directory. The same script works for Linux, possibly with minor modifications. To build for different Python versions, edit the variable PYBIND11_PYTHON_VERSION in cpp/CMakeLists.txt. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykingas-1.1.4.tar.gz (94.2 kB view details)

Uploaded Source

Built Distribution

pykingas-1.1.4-py3-none-any.whl (94.2 kB view details)

Uploaded Python 3

File details

Details for the file pykingas-1.1.4.tar.gz.

File metadata

  • Download URL: pykingas-1.1.4.tar.gz
  • Upload date:
  • Size: 94.2 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

Hashes for pykingas-1.1.4.tar.gz
Algorithm Hash digest
SHA256 a875692183c987f746fd721d3ca24a4cd1a58897dfa7eb1339a592d318dd9694
MD5 dccd3343e0b5d951d844095fe6596827
BLAKE2b-256 7bbd593a137032cae85610d60d633084075cbe3cc2c2c417dc9df4e3a8c176f1

See more details on using hashes here.

File details

Details for the file pykingas-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: pykingas-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 94.2 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

Hashes for pykingas-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 52bc17658029b66b25811265681ed28da3be86cccfe6c5285a747b19be663c0d
MD5 cc11e4408d18c8cc0e8c75a137333ee6
BLAKE2b-256 341004d755b0eb7cba57c9aa9b94ceef829703d40c5480ae45beae1893cdedc0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page