Python implementation of international standards from the International Association for the Properties of Water and Steam (IAPWS). Provides thermodynamic properties of water and steam based on IAPWS-IF97 and related formulations. Current version: 1.5.5, updated 2024. Release cadence is irregular.
pip install iapwsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create an IAPWS-IF97 steam object using pressure (MPa) and temperature (K), then access thermodynamic properties.
Convert pressure to MPa and temperature to Kelvin before passing to the constructor.
Use 1.0 for 10 bar, or 0.1 for 1 bar. Always double-check units: 1 MPa = 10 bar = 1000 kPa.
Replace calls to `_PS(P, S)` with `IAPWS97(P=P, S=S)`.
Upgrade with `pip install --upgrade iapws` and use `from iapws import IAPWS97`.
Ensure pressure is between 0.001 and 100 MPa. For lower pressures, use IAPWS95 if subcritical steam is needed.
Use the correct constructor for IAPWS97: `IAPWS97(P=..., T=...)` or `IAPWS97(P=..., h=...)`. Check the official API.