Installation - Nouman090/ThermoSim GitHub Wiki

From PyPI (Recommended)

pip install ThermoSim

To install with all optional dependencies:

pip install ThermoSim[all]

Dependencies

Package Purpose Required
CoolProp Thermodynamic property calculations ✅ Yes
scipy Numerical solvers (fsolve, brentq) ✅ Yes
matplotlib Plotting ✅ Yes
numpy Numerical arrays ✅ Yes
pandas Data tables ✅ Yes
pymoo Optimisation ❌ Optional
pytest Testing ❌ Optional

Verify Installation

import ThermoSim
print(f"ThermoSim v{ThermoSim.__version__} installed successfully!")

# Quick test
from ThermoSim import ThermodynamicModel
from ThermoSim.state import Prop

Model = ThermodynamicModel()
Model.set_dead_state()

pt = Prop('water', 'test', P=101325, T=373.15)
print(f"Water at 1 atm, 100°C: H = {pt.H:.0f} J/kg")

Running Tests

pytest tests/ -v