Skip to main content

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.

Metadata

Release files for mixprops 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mixprops 0.1.3
File Size Uploaded
mixprops-0.1.3.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mixprops 0.1.3
File Interpreter ABI Platform
mixprops-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 31.4 kB

Release files / mixprops-0.1.3.tar.gz

Download URL mixprops-0.1.3.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
130b8800f59df2f8d07c29b44cc6ac44927310a7cc095a44a04eec4278e2e956
BLAKE2b-256 checksum
How to use checksums
73a8a7a0b36e89fb1a9902026217195af55ff2f25194f363bbc1c21eec7879c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

Release files / mixprops-0.1.3-py3-none-any.whl

Download URL mixprops-0.1.3-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b69887dba3a249a6eb444b51b7208f16bd968db433978cf78bc1838e6ef9fe8d
BLAKE2b-256 checksum
How to use checksums
1eff6847fa13ebd7e7e09811bb5908df0918d83b04c1de5efbf7aa8f4c1f2bc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page