mixprops
Mixture properties calculator.
Installation
Python
pip install mixprops
CLI
Follow instructions from pipx to install pipx.
pipx install git+https://github.com/oaarnikoivu/mixprops.git
Usage
Python
from mixprops.mixture import Mixture
from mixprops.reference_conditions import ReferenceConditions
mixture = Mixture(
species=[("O2", 0.21), ("N2", 0.79)],
reference_conditions=ReferenceConditions(
absolute_pressure_unit="Pa",
absolute_pressure=101325,
temperature_unit="C",
temperature=25
))
print(mixture.specific_heat_capacity)
# 1011.338752
CLI
mixprops \
-rc 101325,25 \
-u Pa,C \
-s O2,N2 \
-sc 0.21,0.79
- rc = Reference conditions -> Absolute pressure,temperature
- u = Reference condition units -> Pressure unit,temperature unit
- s = Comma separated list of species by name or species -> O2,N2 or Oxygen,Nitrogen
- sc = Species molar composition as comma separated mole fractions -> 0.21,0.79
Properties
molecular_weight- Molecular weight (g/mol)density- Density (kg/m3)specific_heat_capacity- Specific heat capacity (J/kg-K)viscosity- Viscosity (kg/m-s)conductivity- Thermal conductivity (W/m-K)speed_of_sound- Speed of sound (m/s)adiabatic_index- Adiabatic index
Supported species
For the supported species, see the .csv files in the mixprops/data directory.
Metadata
Release files for mixprops 0.3.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 | |
|---|---|---|---|
| mixprops-0.3.0.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mixprops-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.8 kB
Release files / mixprops-0.3.0.tar.gz
| Download URL | mixprops-0.3.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb1ad5c70936d2d9b2c4a60a6d25892bf8318aab7f8076a59206ac5f9f6f2c8e
|
|
BLAKE2b-256 checksum How to use checksums |
17e369e57afa4f5df7861f5f01efe1cec7541358378230b62e98882907c4e4ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1041-azure
|
Release files / mixprops-0.3.0-py3-none-any.whl
| Download URL | mixprops-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b87a0ee485821e673ee6442960ac7734e1398e411aab9d674055dd056f706c85
|
|
BLAKE2b-256 checksum How to use checksums |
3fefa1fa8c88c37bfc09985e8a7d137d04a1db4e874b8d2ffb502706729fcd37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1041-azure
|