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.1.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coolprop_oop-0.1.1.tar.gz.
File metadata
- Download URL: coolprop_oop-0.1.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14c0a1d1007054d928238f70c7cb4a694d304d6b095e6157de56e0c9d2e28ee3
|
|
| MD5 |
1b84c8afcff6436fe3aee84d175c6454
|
|
| BLAKE2b-256 |
119095ad7bf72fcfff5c44eb323df4c2e3d30627b1ece58e42cf5b75ef615511
|
File details
Details for the file coolprop_oop-0.1.1-py3-none-any.whl.
File metadata
- Download URL: coolprop_oop-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a155d0334961c983b49c194f5e1a83319e16663f86a156820bf13fe7cb6e192f
|
|
| MD5 |
451bf5cb1a0555d242f20edc5b211d4c
|
|
| BLAKE2b-256 |
7003891eed164e4f1ac2dbd2e5aaba558ad457ec605b42723849cb5310446f4a
|