Skip to main content

Object-oriented wrapper for CoolProp thermodynamic properties

Project description

CoolProp-OOP

An object-oriented wrapper for CoolProp thermodynamic properties.

Installation

pip install coolprop-oop

Usage

Humid Air Properties

from coolprop_oop import StateHA

# Create a state for humid air
state = StateHA(['P', 101325, 'T', 293.15, 'R', 0.5])

# Access properties
print(f"Temperature: {state.tempc}°C")
print(f"Relative Humidity: {state.relhum * 100}%")
print(f"Humidity Ratio: {state.humrat} kg/kg")

Pure Fluid Properties

from coolprop_oop import StatePROPS

# Create a state for water
state = StatePROPS(['P', 101325, 'T', 373.15, 'water'])

# Access properties
print(f"Temperature: {state.tempc}°C")
print(f"Pressure: {state.press} Pa")
print(f"Density: {state.dens} kg/m³")

License

MIT

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

coolprop_oop-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

coolprop_oop-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file coolprop_oop-0.1.0.tar.gz.

File metadata

  • Download URL: coolprop_oop-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for coolprop_oop-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e03da595e0af324e30ecb6b879254e1d729412164e28b96eec38e3acdb09c33
MD5 0e1118e043a7c5fef96550b3e988be40
BLAKE2b-256 d786430ae6ef3d583382fd9bc960c604179b80585afdf41edbf4bc6e81a2032e

See more details on using hashes here.

File details

Details for the file coolprop_oop-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: coolprop_oop-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for coolprop_oop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45d8bf843b281048806ad4eb76644e2212f3f62f27d1959ff6f515368a79ced0
MD5 8d70cc0de994a330072c9593748af5e1
BLAKE2b-256 a682bc42150af96aed4a18f2fce21091f335a8593a1af9b5a5ef85f2a38229ee

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