Mixture properties calculator
Project description
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.
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
mixprops-0.3.0.tar.gz
(14.6 kB
view details)
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
mixprops-0.3.0-py3-none-any.whl
(17.2 kB
view details)
File details
Details for the file mixprops-0.3.0.tar.gz.
File metadata
- Download URL: mixprops-0.3.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb1ad5c70936d2d9b2c4a60a6d25892bf8318aab7f8076a59206ac5f9f6f2c8e
|
|
| MD5 |
3013ac61d54a0761e77b0b6042d75c4f
|
|
| BLAKE2b-256 |
17e369e57afa4f5df7861f5f01efe1cec7541358378230b62e98882907c4e4ab
|
File details
Details for the file mixprops-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mixprops-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b87a0ee485821e673ee6442960ac7734e1398e411aab9d674055dd056f706c85
|
|
| MD5 |
cad7e922f1f7c9769fbbf1a717b8da9a
|
|
| BLAKE2b-256 |
3fefa1fa8c88c37bfc09985e8a7d137d04a1db4e874b8d2ffb502706729fcd37
|