Steam Table, A complete IAPWS IF97 standard

10072015, 01:27 PM
Post: #1




Steam Table, A complete IAPWS IF97 standard
Hi all,
Please find my implementation of the Steam Table for the HPPrime It is based on the version of : X Steam, Thermodynamic properties of water and steam. by Magnus Holmgren 30 Jan 2006 (Updated 01 Aug 2007) Water properties A complete IAPWS IF97 standard. It is still in progress! Next step is to make a nice App. All functions are implemented, except he transport functions! Small help: Water and steam properties according to IAPWS IF97. This Steam Table provides accurate steam and water properties from 0  1000 bar and from 0  2000 deg C according to the standard IAPWS IF97. For accuracy of the functions in different regions see IF97 (http://www.iapws.org) Nomenclature T Temperature (K) t Temperature (C) p Pressure (bar) h Enthalpy (kJ/kg) v Specific volume (m3/kg) rho Density (kg/m3) s Specific entropy (kJ/kgK) u Specific internal energy (kJ/kgK) Cp Specific isobaric heat capacity (kJ/kgK) Cv Specific isochoric heat capacity (kJ/kgK) w Speed of sound () x Vapour fraction () vx Vapour Volume Fraction () Valid Steam table functions. ******* Temperature of these functions is T [K] ************* Temperature Tsat_p Saturation temperature T_ph Temperture as a function of pressure and enthalpy T_ps Temperture as a function of pressure and entropy T_hs Temperture as a function of enthalpy and entropy Pressure psat_T Saturation pressure p_hs Pressure as a function of h and s. p_hrho Pressure as a function of h and rho Enthalpy hV_p Saturated vapour enthalpy hL_p Saturated liquid enthalpy hV_T Saturated vapour enthalpy hL_T Saturated liquid enthalpy h_pT Entalpy as a function of pressure and temperature. h_ps Entalpy as a function of pressure and entropy. h_px Entalpy as a function of pressure and vapour fraction. h_prho Entalpy as a function of pressure and density. h_Tx Entalpy as a function of temperature and vapour fraction Specific volume vV_p Saturated vapour volume vL_p Saturated liquid volume vV_T Saturated vapour volume vL_T Saturated liquid volume v_pT Specific volume as a function of pressure and temperature. v_ph Specific volume as a function of pressure and enthalpy v_ps Specific volume as a function of pressure and entropy. Density rhoV_p Saturated vapour density rhoL_p Saturated liquid density rhoV_T Saturated vapour density rhoL_T Saturated liquid density rho_pT Density as a function of pressure and temperature. rho_ph Density as a function of pressure and enthalpy rho_ps Density as a function of pressure and entropy. Specific entropy sV_p Saturated vapour entropy sL_p Saturated liquid entropy sV_T Saturated vapour entropy sL_T Saturated liquid entropy s_pT Specific entropy as a function of pressure and temperature s_ph Specific entropy as a function of pressure and enthalpy Specific internal energy uV_p Saturated vapour internal energy uL_p Saturated liquid internal energy uV_T Saturated vapour internal energy uL_T Saturated liquid internal energy u_pT Specific internal energy as a function of pressure and temperature. u_ph Specific internal energy as a function of pressure and enthalpy u_ps Specific internal energy as a function of pressure and entropy. Specific isobaric heat capacity CpV_p Saturated vapour heat capacity CpL_p Saturated liquid heat capacity CpV_T Saturated vapour heat capacity CpL_T Saturated liquid heat capacity Cp_pT Specific isobaric heat capacity as a function of pressure and temperature. Cp_ph Specific isobaric heat capacity as a function of pressure and enthalpy Cp_ps Specific isobaric heat capacity as a function of pressure and entropy. Specific isochoric heat capacity CvV_p Saturated vapour isochoric heat capacity CvL_p Saturated liquid isochoric heat capacity CvV_T Saturated vapour isochoric heat capacity CvL_T Saturated liquid isochoric heat capacity Cv_pT Specific isochoric heat capacity as a function of pressure and temperature. Cv_ph Specific isochoric heat capacity as a function of pressure and enthalpy Cv_ps Specific isochoric heat capacity as a function of pressure and entropy. Speed of sound wV_p Saturated vapour speed of sound wL_p Saturated liquid speed of sound wV_T Saturated vapour speed of sound wL_T Saturated liquid speed of sound w_pT Speed of sound as a function of pressure and temperature. w_ph Speed of sound as a function of pressure and enthalpy w_ps Speed of sound as a function of pressure and entropy. Vapour volume fraction vx_ph Vapour volume fraction as a function of pressure and enthalpy vx_ps Vapour volume fraction as a function of pressure and entropy Composit Functions Ask for two paramters and return this list: pt (pressure,temperature) out:=> Enthalpy [kJ/kg] Volume [m3/kg] Entropy [kJ/kgK] Speed of sound [m/s] Cp [kJ/kgK] Cv[kJ/kgK] ph (pressure,enthalpy) out:=> Temperature [c] Volume [m3/kg] Entropy [kJ/kgK] Speed of sound [m/s] Cp [kJ/kgK] Cv [kJ/kgK] ps (pressure,entropy) out: => Temperature [c] Enthalpy [kJ/kg] Volume [m3/kg] Entropy [kJ/kgK] Speed of sound Cp [kJ/kgK] Cv [kJ/kgK] Transport propperties will follow soon. Have fun with this, and look forwards to your comments. Cheers, Jan [NL] 

12072015, 10:21 PM
(This post was last modified: 12072015 10:22 PM by bikeraqp.)
Post: #2




RE: Steam Table, A complete IAPWS IF97 standard
Great Brother¡¡¡¡¡ u have a new fan now¡¡¡ excellent Job


12082015, 11:41 AM
Post: #3




RE: Steam Table, A complete IAPWS IF97 standard
Hi,
that's a hard job, thank's for the great work 

12112015, 03:47 PM
Post: #4




RE: Steam Table, A complete IAPWS IF97 standard
Hello,
I have add two transport properties for this steam table. Dynamic Viscosity and Thermal Conductivity are now added. Have fun with it. Jan 

07032016, 09:55 PM
Post: #5




RE: Steam Table, A complete IAPWS IF97 standard
Hello, I'am from Argentina, I have a problem when I try to run the program, a sintaxis error appears in the screen.
The error is "syntax error in program line 4" I hope that you can fix it or help me! This program is so useful to me, I study engineering! Thanks! 

07042016, 07:07 AM
Post: #6




RE: Steam Table, A complete IAPWS IF97 standard
(07032016 09:55 PM)Chere Wrote: Hello, I'am from Argentina, I have a problem when I try to run the program, a sintaxis error appears in the screen. Do you use the latest update from HP, because with the latest version I have also some problems. 

07042016, 07:30 AM
Post: #7




RE: Steam Table, A complete IAPWS IF97 standard
(07042016 07:07 AM)Powersoft Wrote:I fond the solution, some fixes in the code and all ok!(07032016 09:55 PM)Chere Wrote: Hello, I'am from Argentina, I have a problem when I try to run the program, a sintaxis error appears in the screen. Works perfectly! Thanks! 

07052016, 02:37 AM
Post: #8




RE: Steam Table, A complete IAPWS IF97 standard
Thanks a lot! Its a great job. But has a sintaxe error. Does anyone know how to fix?
Thanks. 

07052016, 12:43 PM
(This post was last modified: 07052016 12:51 PM by roadrunner.)
Post: #9




RE: Steam Table, A complete IAPWS IF97 standard
Ziz,
Use the connectivity kit and find line 3294. Change it from this: LOCAL TMax,hMax,hMin,hB,vmax,hV; to this: LOCAL Tmin,TMax,hMax,hMin,hB,vmax,hV; Then it should compile with no syntax errors. road edited to correct a spelling error 

07052016, 12:50 PM
Post: #10




RE: Steam Table, A complete IAPWS IF97 standard
In the newer version that would be line 3305.
road 

07052016, 09:39 PM
Post: #11




RE: Steam Table, A complete IAPWS IF97 standard  
05102017, 07:21 PM
Post: #12




RE: Steam Table, A complete IAPWS IF97 standard
Hi,
Please excuse me if this is very basic but I received the calculator just yesterday I have the code installed and I can run the functions from the "program" menu. However, I would like to run them from home or from other programs. I tried: (from home) Tsat_p(1) and it gives me syntax error How can I do it ? Thanks !! 

05112017, 06:37 PM
Post: #13




RE: Steam Table, A complete IAPWS IF97 standard
Quote:I tried: (from home)Hello Frikosal, First of all, HP Prime is a case sensitive calculator, and the correct call for this function should be tsat_p(1) instead of the Tsat_p(1), also you can access all functions of this program by the toolbox menu inside User > Steam97. The toolbox button is the one just bellow the Num button. Secondly, make sure you managed to fix the source file as posted by roadrunner above. 

05302017, 07:39 PM
Post: #14




RE: Steam Table, A complete IAPWS IF97 standard
Hi,
I tried to load the progaram but I can't because the calculator crashes during loading. Someone has a suggestion? Thanks 

05312017, 02:41 AM
(This post was last modified: 05312017 02:43 AM by Freire.)
Post: #15




RE: Steam Table, A complete IAPWS IF97 standard
Can you specify exactly what happens?
Also, what calculator are you using and firmware version if possible. I'm just a user here, but can help =] Quote:Ziz,Make sure you followed these steps as well. 

08202017, 11:26 AM
Post: #16




RE: Steam Table, A complete IAPWS IF97 standard
Hi, I installed the program, I corrected the line 3305 but I still obtain the syntax error message. Furthermore, I don't visualize the functions on user menu.
How can I fix it? Thanks 

10212017, 04:08 PM
Post: #17




RE: Steam Table, A complete IAPWS IF97 standard
The program not run. Just appears an exclamation point (!)
What to do ? 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)