Skip to main content

Python implementation of international-standard IAPWS-IF97 steam tables

Project description

Class to model a state for liquid water or steam with the Industrial Formulation IAPWS-IF97

Incoming properties:

- T, Temperature, K
- P, Pressure, MPa
- h, Specific enthalpy, kJ/kg
- s, Specific entropy, kJ/kg·K
- x, Quality

Definitions options:

- T, P (Not valid for two-phases region)
- P, h
- P, s
- h, s
- T, x (Only for two-phases region)
- P, x (Only for two-phases region)

Properties:

- P, Pressure, MPa
- T, Temperature, K
- g, Specific Gibbs free energy, kJ/kg
- a, Specific Helmholtz free energy, kJ/kg
- v, Specific volume, m³/kg
- rho, Density, kg/m³
- h, Specific enthalpy, kJ/kg
- u, Specific internal energy, kJ/kg
- s, Specific entropy, kJ/kg·K
- cp, Specific isobaric heat capacity, kJ/kg·K
- cv, Specific isochoric heat capacity, kJ/kg·K
- Z, Compression factor
- gamma, Isoentropic exponent
- alfav, Isobaric cubic expansion coefficient, 1/K
- kt, Isothermal compressibility, 1/MPa
- alfap, Relative pressure coefficient, 1/K
- betap, Isothermal stress coefficient, kg/m³
- joule, Joule-Thomson coefficient, K/MPa
- deltat, Isothermal throttling coefficient, kJ/kg·MPa
- region, Region

- w, Speed of sound, m/s
- mu, Dynamic viscosity, Pa·s
- nu, Kinematic viscosity, m²/s
- k, Thermal conductivity, W/m·K
- alfa, Thermal diffusivity, m²/s
- sigma, Surface tension, N/m
- epsilon, Dielectric constant
- n, Refractive index
- Pr, Prandtl number



Usage:

-
from iapws import IAPWS97
-
sat_steam=IAPWS97(P=1,x=1) #saturated steam with known P
sat_liquid=IAPWS97(T=370, x=0) #saturated liquid with known T
steam=IAPWS97(P=2.5, T=500) #steam with known P and T
print(sat_steam.h, sat_liquid.h, steam.h) #calculated enthalpy

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

iapws-1.0.2.tar.gz (50.4 kB view details)

Uploaded Source

File details

Details for the file iapws-1.0.2.tar.gz.

File metadata

  • Download URL: iapws-1.0.2.tar.gz
  • Upload date:
  • Size: 50.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for iapws-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e35de1eb92e89319f8a628ea8b210882e7d25dc21ced59832f27745c04cabf91
MD5 08968006eb244e3b3aa351f75be30779
BLAKE2b-256 5c8d13d626a502d186ecf9a84e185e7ba20e2377e40b36e428a6abc010752726

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