Skip to main content

A Python thermodynamic property wrapper for fluids and mixtures.

Project description

ThermoProp

PyPI version Python License

ThermoProp is a Python thermodynamic property wrapper for fluids, mixtures, and ideal gases.

It provides a clean interface around:

  • CoolProp
  • PYroMat
  • NumPy
  • SciPy

Installation

pip install thermoprop

Pure Fluid Example

from thermoprop import Fluid

water = Fluid("water", pressure=101325, temperature=300)

print(water.density)
print(water.enthalpy)
print(water.phase)

Mixture Example

from thermoprop import Fluid

air_like = Fluid(
    {"nitrogen": 0.79, "oxygen": 0.21},
    basis="mole",
    pressure=101325,
    temperature=300,
)

print(air_like.density)
print(air_like.specific_heat_cp)

Ideal Gas Example

from thermoprop import IdealGas

nitrogen = IdealGas("gn2", pressure=101325, temperature=300)

print(nitrogen.density)
print(nitrogen.specific_heat_ratio)
print(nitrogen.speed_of_sound)

Source Code

https://github.com/saakethramoju/ThermoProp

License

ThermoProp is released under the GNU General Public License v3.0.

See LICENSE and THIRD_PARTY_LICENSES.md.

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

thermoprop-0.1.3.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

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

thermoprop-0.1.3-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thermoprop-0.1.3.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for thermoprop-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6a9405a66aa557c95d7a8c1e136467ff5ea6edadc544e7c4e7b5152664796201
MD5 bd3cb0cc2f2e1fc8184cdfffe2546f64
BLAKE2b-256 940bab6563bd67fdb791f2195396cfc6d78770fff3e5005e53e750ca70500959

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thermoprop-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for thermoprop-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 678e3b46f58e54441fecfc8ab5550153b74a39d120eb50d9523e67f7e24daf4f
MD5 83998fbf66fc0a44aeb1e8655da64932
BLAKE2b-256 0fa09279f8f9ab2de10cf3eee64462b3a3276e102f917c613f8dc521464fbf77

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