Skip to main content

mixprops

CI license

Mixture properties calculator.

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 data/ directory.

Metadata

Release files for mixprops 0.1.0

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.0
File Size Uploaded
mixprops-0.1.0.tar.gz 5.2 kB Details

Built distribution (wheel)

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

Total release size: 12.1 kB

Release files / mixprops-0.1.0.tar.gz

Download URL mixprops-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3322a849e7e6074f62d0be5f3d4f549dafbc5e4333225d6031e624386c74994b
BLAKE2b-256 checksum
How to use checksums
e341fc533b462b6f54b0eff1f7908bd942bf808561ca9a173c9db132c0cd9df7
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.0-py3-none-any.whl

Download URL mixprops-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ccdda2fcc34043178b5623a65350cc002081f6abee943294666d8465ff80417
BLAKE2b-256 checksum
How to use checksums
c1e937d548e62b14fe555970f4041112cf1c383d69eb3d4d9d8a59f1eb37a74c
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

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

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