Steam Table, A complete IAPWS IF-97 standard - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: HP Prime ( /forum-5.html)+--- Thread: Steam Table, A complete IAPWS IF-97 standard ( /thread-4896.html)Pages: 1 2 |

Steam Table, A complete IAPWS IF-97 standard - Powersoft - 10-07-2015 01:27 PM
Hi all, Please find my implementation of the Steam Table for the HP-Prime 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 IF-97 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 IF-97. This Steam Table provides accurate steam and water properties from 0 - 1000 bar and from 0 - 2000 deg C according to the standard IAPWS IF-97. For accuracy of the functions in different regions see IF-97 (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] RE: Steam Table, A complete IAPWS IF-97 standard - bikeraqp - 12-07-2015 10:21 PM
Great Brother¡¡¡¡¡ u have a new fan now¡¡¡ excellent Job RE: Steam Table, A complete IAPWS IF-97 standard - mop80087 - 12-08-2015 11:41 AM
Hi, that's a hard job, thank's for the great work RE: Steam Table, A complete IAPWS IF-97 standard - Powersoft - 12-11-2015 03:47 PM
Hello, I have add two transport properties for this steam table. Dynamic Viscosity and Thermal Conductivity are now added. Have fun with it. Jan RE: Steam Table, A complete IAPWS IF-97 standard - Chere - 07-03-2016 09:55 PM
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! RE: Steam Table, A complete IAPWS IF-97 standard - Powersoft - 07-04-2016 07:07 AM
(07-03-2016 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. RE: Steam Table, A complete IAPWS IF-97 standard - Chere - 07-04-2016 07:30 AM
(07-04-2016 07:07 AM)Powersoft Wrote:I fond the solution, some fixes in the code and all ok!(07-03-2016 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! RE: Steam Table, A complete IAPWS IF-97 standard - Ziz - 07-05-2016 02:37 AM
Thanks a lot! Its a great job. But has a sintaxe error. Does anyone know how to fix? Thanks. RE: Steam Table, A complete IAPWS IF-97 standard - roadrunner - 07-05-2016 12:43 PM
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 RE: Steam Table, A complete IAPWS IF-97 standard - roadrunner - 07-05-2016 12:50 PM
In the newer version that would be line 3305. -road RE: Steam Table, A complete IAPWS IF-97 standard - Ziz - 07-05-2016 09:39 PM
(07-05-2016 12:50 PM)roadrunner Wrote: In the newer version that would be line 3305. It worked! Thank you very much! -Ziz RE: Steam Table, A complete IAPWS IF-97 standard - Frikosal - 05-10-2017 07:21 PM
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 !! RE: Steam Table, A complete IAPWS IF-97 standard - Freire - 05-11-2017 06:37 PM
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. RE: Steam Table, A complete IAPWS IF-97 standard - f.prisinzano - 05-30-2017 07:39 PM
Hi, I tried to load the progaram but I can't because the calculator crashes during loading. Someone has a suggestion? Thanks RE: Steam Table, A complete IAPWS IF-97 standard - Freire - 05-31-2017 02:41 AM
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. RE: Steam Table, A complete IAPWS IF-97 standard - f.prisinzano - 08-20-2017 11:26 AM
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 RE: Steam Table, A complete IAPWS IF-97 standard - Berg - 10-21-2017 04:08 PM
The program not run. Just appears an exclamation point (!) What to do ? RE: Steam Table, A complete IAPWS IF-97 standard - dartagnan993 - 07-06-2018 02:57 PM
Hello everyone, i just bought the HP Prime and i would like to install this program but i don't know how. I tried to paste de file i downloaded here in the "programs" section of the calculator from the HP Connectivity kit but as i turn on the HP Prime i just dont see it. Can you please help me? RE: Steam Table, A complete IAPWS IF-97 standard - Randall - 07-08-2018 03:05 AM
The connectivity kit has a content area and is labelled as such. Programs and other data in the content area reside on the computer with the connectivity kit. Each connected calculator (such as a hardware Prime or a virtual Prime) will also be displayed. Each connected Prime has its own work area. The content area is independent from the calculator(s) work area. I have steam97 on my Prime. Typing shift program lists my programs as well as steam97. Since you don't see steam97 on your Prime, it is possible steam97 was downloaded to the content area of the connectivity kit and not the calculator work area. RE: Steam Table, A complete IAPWS IF-97 standard - numerovix - 09-15-2018 05:36 PM
Hi Powersoft, congratulations on your program. I ask you permission to translate it into Spanish to use it with my students in Spain. Thank you very much. |