ms_thermo
This is a small package from Cerfacs dedicated to multispecies thermodynamics operations.
It is available on PyPI, documentation is on readtthedocs, sources are mirrored on gitlab.com
Installation
Install from Python Package index:
pip install ms_thermo
Features
Command line tools
Once the package is installed, you have access in your terminal to a CLI from the command ms_thermo:
Usage: ms_thermo [OPTIONS] COMMAND [ARGS]...
--------------- MS-THERMO --------------------
You are now using the Command line interface of MS-Thermo, a Python3
helper for reactive multispecies computation, created at CERFACS
(https://cerfacs.fr).
This is a python package currently installed in your python environement.
See the full documentation at : https://ms-
thermo.readthedocs.io/en/latest/.
Options:
--help Show this message and exit.
Commands:
fresh-gas (Deprecated) Renamed as kero-prim2cons
gasout Apply GASOUT actions to a mixture.
hp-equil HP equilibrium using Cantera.
kero-prim2cons Primitive to conservative variable conversion...
kero-tadia Adiabatic flame temperature for a kerosene-air...
tadia (Deprecated) Renamed as kero-tadia
yk-from-phi Mass fractions of a fuel-air mixture.
Details on the commands are available in the documentation.
The State class
The State class describes the full thermodynamic state of a gas mixture.
As an example, the following script creates an initial mixture of fresh gases, then changes a subset of the field into hot gases.
>>> from ms_thermo.state import State
>>> case = State()
>>> print(case)
Current primitive state of the mixture
| Most Common | Min | Max
----------------------------------------------------
rho| 1.17192e+00 | 1.172e+00 | 1.172e+00
energy| 2.16038e+05 | 2.160e+05 | 2.160e+05
temperature| 3.00000e+02 | 3.000e+02 | 3.000e+02
pressure| 1.01325e+05 | 1.013e+05 | 1.013e+05
Y_O2| 2.32500e-01 | 2.325e-01 | 2.325e-01
Y_N2| 7.67500e-01 | 7.675e-01 | 7.675e-01
>>> case.temperature = 1200
>>> print(case)
Current primitive state of the mixture
| Most Common | Min | Max
----------------------------------------------------
rho| 2.92980e-01 | 2.930e-01 | 2.930e-01
energy| 9.41143e+05 | 9.411e+05 | 9.411e+05
temperature| 1.20000e+03 | 1.200e+03 | 1.200e+03
pressure| 1.01325e+05 | 1.013e+05 | 1.013e+05
Y_O2| 2.32500e-01 | 2.325e-01 | 2.325e-01
Y_N2| 7.67500e-01 | 7.675e-01 | 7.675e-01
Additional details on the commands are provided in the documentation.
Metadata
Release files for ms-thermo 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ms_thermo-1.1.0.tar.gz | 166.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ms_thermo-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 333.5 kB
Release files / ms_thermo-1.1.0.tar.gz
| Download URL | ms_thermo-1.1.0.tar.gz |
|---|---|
| Size | 166.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
935580ada18760351570a07134edb8544873aed86c7e6d98ad500f62a6a098a1
|
|
BLAKE2b-256 checksum How to use checksums |
579633da3a84c4763d440c1e2e45cbe3a2e2d17d3f61e34797bb2f83fa9acb7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / ms_thermo-1.1.0-py3-none-any.whl
| Download URL | ms_thermo-1.1.0-py3-none-any.whl |
|---|---|
| Size | 167.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5825378aa8746f8d56990f65e47bc556b059825f4461db68334193359a51a41
|
|
BLAKE2b-256 checksum How to use checksums |
47ed00eed22c993d610449cdef15fe45bbfb70fe9db1f3f56c2a61cfc70b6c8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|