IAPWS_IF97
IAPWS_IF97(FUN,IN1,IN2) is 27 functions of water properties and derivatives, based on the International Association on Properties of Water and Steam (http://www.iapws.org). Thermodynamic, hydrodynamic and non-linear modeling often requires thermodynamic derivatives, therefore IAPWS_IF97 can calculate most property derivates as functions of pressure and enthalpy, e.g.: dT/dp_ph, cp_ph, dv/dp_ph and dv/dh_ph. Since modeling often involves multiple dimensions that are discretized or meshed to form a set of either finite-difference or finite-element equations, IAPWS_IF97 is vectorized even across regions (subcooled/compressed-liquid, saturated, superheated and supercritical). For arrays is an order of magnitude faster than XSteam and is multithreaded if your computer is capable.
This is the functional form. I will submit a class & package versions definition soon, that also offer slip correction using Zivi's correlation (1964) for 2-phase flow.
Please report bugs here or at Github:
https://github.com/mikofski/IAPWS_IF97/issues
Reference Documents:
Industrial Formulation 1997 (IF97-Rev, IAPWS-IF97), IAPWS-IF97-S01, IAPWS-IF97-S03rev, IAPWS-IF97-S04, IAPWS-IF97-S05, Revised Advisory Note No. 3 Thermodynamic Derivatives from IAPWS Formulations 2008, Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance, 2008 Revised Release on the IAPWS Formulation 1985 for the Thermal Conductivity of Ordinary Water Substance.
Functions:
Quality:
'x_ph','x_hT','x_pv','x_vT'
Thermal Conductivity [W/m/K]:
'k_pT', 'k_ph'
Viscosity [Pa*s]:
'mu_pT', 'mu_ph', 'dmudh_ph', 'dmudp_ph'
Enthalpy [kJ/kg]:
'h_pT', 'hL_p', 'hV_p', 'dhLdp_p', 'dhVdp_p'
Specific Volume [m^3/kg]:
'v_pT', 'v_ph', 'vL_p', 'vV_p', 'dvLdp_p', 'dvVdp_p', 'dvdp_ph', 'dvdh_ph'
Temperature [K]:
'T_ph', 'dTdp_ph', 'cp_ph'
Saturation Pressure [MPa] and Temperature [K]:
'psat_T', 'Tsat_p', 'dTsatdpsat_p'
Cite As
Mark Mikofski (2024). IAPWS_IF97 (https://github.com/mikofski/IAPWS_IF97), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: X Steam, Thermodynamic properties of water and steam.
Inspired: Water and Steam Refractive Index, A Simple Finite Volume Solver for Matlab
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.7.0.2 | move @folder to separate branch |
|
|
1.7.0.1 | connect to GitHub |
|
|
1.7.0.0 | fix bugs in dhL/dp and dhV/dp, and add dvL/dp and dvV/dp functions |
||
1.6.0.0 | add quality, update help, add assertions |
||
1.5.0.0 | acknowledge Magnus Holmgren's XSteam |
||
1.4.0.0 | show units, categorize and format functions |
||
1.3.0.0 | add link to github |
||
1.2.0.0 | revise/format description, add more tags |
||
1.0.0.0 |