Home
Generals
Unit converter
Periodic table
Molecular weight
Properties
Hydrocarbon properties
Steam properties
Psychrometric properties
Fuel gas LHV
Flue gas enthalpy
Dynamics
Equation of state
Flow convert (mass - volume)
Energy to emission
Flow rate
Darcy friction factor
Mean pressure
Flow compensation
Orifice sizing
Bernoulli equation
Steam pinhone
Control valve CV
Sizing
LMTD
Flash steam
Pump BHP
Performance
Cooling tower capability
Heater efficiency
Compressor efficiency
Turbine efficiency
About
ID
Name
Title
Keyword
Description
<p><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;">The steam properties library is one of the most important tools used by engineers. In the past, we used to refer to Steam tables books, but now there are tools available for multiple platforms, including Windows programs and Excel addin.</div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br></div><h2 style="margin: 0px; position: relative; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-weight: bold; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Trebuchet MS", Trebuchet, sans-serif; color: rgb(0, 0, 0);"><span style="font-family: Consolas;">IAPWS?</span></h2><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br></div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;">The steam property library expresses actual experimental property results in a regression equation. Standardization is managed by the IAPWS organization (http://www.iapws.org). In Python, Among the many Python packages that follow the IAPWS formula, recommend pyXSteam (https://pypi.org/project/pyXSteam).</div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br></div><h2 style="margin: 0px; position: relative; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-weight: bold; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Trebuchet MS", Trebuchet, sans-serif; color: rgb(0, 0, 0);"><span style="font-family: Consolas;">Use of pyXSteam</span></h2><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br>pyXSteam provides (mostly) accurate steam and water properties from 0 ~ 1000 bar and from 0 ~ 2000 °C according to the IAPWS release IF-97. Also includes thermal conductivity and viscosity, which are not part of the IF97 release.<br>There are no requirements for installing pyXSteam with Python 3.6 and up.<br>When installing the pyXSteam package on a Windows computer, if Python is already installed and you type "pip install pyXSteam" in the command line window, it will be installed immediately if you are connected to the Internet. The steam properties provided by pyXSteam are as follows.</div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br>Property<span style="white-space: pre;"> </span>Description<br>t<span style="white-space: pre;"> </span>Temperature (°C or °F)<br>p<span style="white-space: pre;"> </span>Pressure (bar or psi)<br>h<span style="white-space: pre;"> </span>Enthalpy (kJ/kg or btu/lb)<br>v<span style="white-space: pre;"> </span>Specific volume (m3/kg or ft^3/lb)<br>rho<span style="white-space: pre;"> </span>Density (kg/m3 or lb/ft^3)<br>s<span style="white-space: pre;"> </span>Specific entropy (kJ/(kg °C) or btu/(lb °F))<br>u<span style="white-space: pre;"> </span>Specific internal energy (kJ/kg or btu/lb)<br>Cp<span style="white-space: pre;"> </span>Specific isobaric heat capacity (kJ/(kg °C) or btu/(lb °F))<br>Cv<span style="white-space: pre;"> </span>Specific isochoric heat capacity (kJ/(kg °C) or btu/(lb °F))<br>w<span style="white-space: pre;"> </span>Speed of sound (m/s or ft/s)<br>my<span style="white-space: pre;"> </span>Viscosity (N s/m^2 or lbm/ft/hr)<br>tc<span style="white-space: pre;"> </span>Thermal Conductivity (W/(m °C) or btu/(h ft °F))<br>st<span style="white-space: pre;"> </span>Surface Tension (N/m or lb/ft)<br>x<span style="white-space: pre;"> </span>Vapor fraction<br>vx<span style="white-space: pre;"> </span>Vapor Volume Fraction<br><br></div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;">The unit group supports 3 groups as shown below. Please select one of the three.<br>steamTable = XSteam(XSteam.UNIT_SYSTEM_MKS) # m/kg/sec/°C/bar/W<br>steamTable = XSteam(XSteam.UNIT_SYSTEM_FLS) # ft/lb/sec/°F/psi/btu<br>steamTable = XSteam(XSteam.UNIT_SYSTEM_BARE) # m/kg/sec/K/MPa/W</div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br></div><div class="separator" style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px; clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSDtUi6hCey-oYj3X7PEDHzcsvYpp3Eu4rLtEKD0_Cc67zD09HKBr010GDJxSLEdI-ZyJpiADV-hjUPT2IYrehqw0ldKnJ-_98bLKgyzz-ZClvkacdKnMTwYHuV-q-sOJnKS1icng2eugVYkYKRHgDEWilHf3ZiiNIySKK-hs1jHG2ZxIFRBNEmf3Yjpw/s403/xsteam.png" style="color: rgb(209, 102, 63); margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="148" data-original-width="403" height="118" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSDtUi6hCey-oYj3X7PEDHzcsvYpp3Eu4rLtEKD0_Cc67zD09HKBr010GDJxSLEdI-ZyJpiADV-hjUPT2IYrehqw0ldKnJ-_98bLKgyzz-ZClvkacdKnMTwYHuV-q-sOJnKS1icng2eugVYkYKRHgDEWilHf3ZiiNIySKK-hs1jHG2ZxIFRBNEmf3Yjpw/s320/xsteam.png" width="320" style="border-width: initial; border-style: none; position: relative;"></a></div><p style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br></p><h2 style="margin: 0px; position: relative; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-variant-position: normal; font-weight: bold; font-stretch: normal; font-size: 14px; line-height: normal; font-family: "Trebuchet MS", Trebuchet, sans-serif; color: rgb(0, 0, 0);"><span style="font-family: Consolas;">Python code</span></h2><p style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;">Please see below for an example of calculating steam properties using pyXSteam.</p><span style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><span style="color: rgb(43, 0, 254);">from pyXSteam.XSteam import XSteam</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">steamTable = XSteam(XSteam.UNIT_SYSTEM_FLS) # ft/lb/sec/°F/psi/btu</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">psat = steamTable.psat_t(337)</span><br><span style="color: rgb(43, 0, 254);">print("psat : saturation pressure of steam T = 337 degF = ", psat - 14.696, " psig")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">tsat = steamTable.tsat_p(100+14.696)</span><br><span style="color: rgb(43, 0, 254);">print("tsat : saturation temperature of steam P = 100 psig = ", tsat, " degF")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">h_pt = steamTable.h_pt(100+14.696, 400)</span><br><span style="color: rgb(43, 0, 254);">print("h_pt : enthalpy a of steam P = 100 psig and T = 400 degF = ", h_pt, " btu/lb")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">h_ps = steamTable.h_ps(100+14.696, 1.635)</span><br><span style="color: rgb(43, 0, 254);">print("h_ps : enthalpy a of steam P = 100 psig and S = 1.635 btu/lb-F = ", h_ps, " btu/lb")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">s_pt = steamTable.s_pt(100+14.696, 400)</span><br><span style="color: rgb(43, 0, 254);">print("s_pt : entropy a of steam P = 100 psig and T = 400 degF = ", s_pt, " btu/lb-F")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">s_ph = steamTable.s_ph(100+14.696, 1225)</span><br><span style="color: rgb(43, 0, 254);">print("s_ph : entropy a of steam P = 100 psig and H = 1225 btu/lb = ", s_ph, " btu/lb-F")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">rho_pt = steamTable.rho_pt(100+14.696, 400)</span><br><span style="color: rgb(43, 0, 254);">print("rho_pt : density a of steam P = 100 psig and T = 400 degF = ", rho_pt, " lb/ft3")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">Cp_pt = steamTable.Cp_pt(100+14.696, 400)</span><br><span style="color: rgb(43, 0, 254);">print("Cp_pt : Specific isobaric heat capacity a of steam P = 100 psig and T = 400 degF = ", Cp_pt, " btu/lb-F")</span><br><span style="color: rgb(43, 0, 254);"><br></span><span style="color: rgb(43, 0, 254);">Cv_pt = steamTable.Cv_pt(100+14.696, 400)</span><br></span><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><span style="color: rgb(43, 0, 254);">print("Cv_pt : Specific isochoric heat capacity a of steam P = 100 psig and T = 400 degF = ", Cv_pt, " btu/lb-F")</span></div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><span style="color: rgb(43, 0, 254);"><br></span></div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;">When run the code, you get the results below.</div><div style="color: rgb(68, 68, 68); font-family: Consolas; font-size: 15px;"><br></div><span style="font-family: Consolas; font-size: 15px; color: rgb(43, 0, 254);">psat : saturation pressure of steam T = 337 degF = 98.647 psig<br>tsat : saturation temperature of steam P = 100 psig = 337.882 degF<br>h_pt : enthalpy a of steam P = 100 psig and T = 400 degF = 1225.473 btu/lb<br>h_ps : enthalpy a of steam P = 100 psig and S = 1.635 btu/lb-F = 1225.517 btu/lb<br>s_pt : entropy a of steam P = 100 psig and T = 400 degF = 1.635 btu/lb-F<br>s_ph : entropy a of steam P = 100 psig and H = 1225 btu/lb = 1.634 btu/lb-F<br>rho_pt : density a of steam P = 100 psig and T = 400 degF = 0.234 lb/ft3<br>Cp_pt : Specific isobaric heat capacity a of steam P = 100 psig and T = 400 degF = 0.544 btu/lb-F<br></span><span style="font-family: Consolas; font-size: 15px; color: rgb(43, 0, 254);">Cv_pt : Specific isochoric heat capacity a of steam P = 100 psig and T = 400 degF = 0.399 btu/lb-F</span></p><p><span style="font-family: Consolas; font-size: 15px; color: rgb(43, 0, 254);"><br></span><br></p>