Skip to main content

Mixture properties calculator

Project description

mixprops

CI license

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.2.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mixprops-0.2.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file mixprops-0.2.0.tar.gz.

File metadata

  • Download URL: mixprops-0.2.0.tar.gz
  • Upload date:
  • Size: 14.5 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

Hashes for mixprops-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1451fe9863c1a695f8134044286e744e0d348029151b99f49db136a8b2f627a6
MD5 9fdc1138c18d3c47df2019bdadd58b5f
BLAKE2b-256 ace2dcfb50b2dc3c665480fe7fe3b8f5b94c468301c5c38918c4aea276fe6de4

See more details on using hashes here.

File details

Details for the file mixprops-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mixprops-0.2.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

Hashes for mixprops-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce8419326466f9749d00bfa7ea6a315b59ad89058367140fd4df7bc0914874f3
MD5 2ea19ee7979fe0afdcef0410aa1839ca
BLAKE2b-256 5fe16a668f0143f897f7c1ec230802264f76859cc36fd9dfdec6d7668d5d01b5

See more details on using hashes here.

Supported by

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