Skip to main content

Mixture properties calculator

Project description

mixprops

CI license

Mixture properties calculator.

Installation

pip install mixprops

Usage

Python

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

poetry run python main.py \
    -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.1.3.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.1.3-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mixprops-0.1.3.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

File hashes

Hashes for mixprops-0.1.3.tar.gz
Algorithm Hash digest
SHA256 130b8800f59df2f8d07c29b44cc6ac44927310a7cc095a44a04eec4278e2e956
MD5 94d14ab95f295e44404d32e546b8667e
BLAKE2b-256 73a8a7a0b36e89fb1a9902026217195af55ff2f25194f363bbc1c21eec7879c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mixprops-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

File hashes

Hashes for mixprops-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b69887dba3a249a6eb444b51b7208f16bd968db433978cf78bc1838e6ef9fe8d
MD5 74d72722bf46d4c45a39f4676b922109
BLAKE2b-256 1eff6847fa13ebd7e7e09811bb5908df0918d83b04c1de5efbf7aa8f4c1f2bc8

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