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

- v0, Ideal specific volume, m³/kg
- u0, Ideal specific internal energy, kJ/kg
- h0, Ideal specific enthalpy, kJ/kg
- s0, Ideal specific entropy, kJ/kg·K
- a0, Ideal specific Helmholtz free energy, kJ/kg
- g0, Ideal specific Gibbs free energy, kJ/kg
- cp0, Ideal specific isobaric heat capacity, kJ/kg·K
- cv0, Ideal specific isochoric heat capacity, kJ/kg·K
- w0, Ideal speed of sound, m/s
- gamma0, Ideal isoentropic exponent

- 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.3.tar.gz (39.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for iapws-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2c0a93fbff455ad31573c84b3cd9c5c6e694647cd17189291327323ff32bf48b
MD5 8654773e31c03d7d42765c77926c62f7
BLAKE2b-256 534ca7226781ba15d2bd8055e001910bfc3ff85f9979cb779a4df3b27be41075

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page