Post Reply 
Steam Table, A complete IAPWS IF-97 standard
10-07-2015, 01:27 PM
Post: #1
Steam Table, A complete IAPWS IF-97 standard
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]


Attached File(s)
.hpprgm  Steam97.hpprgm (Size: 255.75 KB / Downloads: 324)
Find all posts by this user
Quote this message in a reply
12-07-2015, 10:21 PM (This post was last modified: 12-07-2015 10:22 PM by bikeraqp.)
Post: #2
RE: Steam Table, A complete IAPWS IF-97 standard
Great Brother¡¡¡¡¡ u have a new fan now¡¡¡ excellent Job Smile
Find all posts by this user
Quote this message in a reply
12-08-2015, 11:41 AM
Post: #3
RE: Steam Table, A complete IAPWS IF-97 standard
Hi,

that's a hard job, thank's for the great work
Find all posts by this user
Quote this message in a reply
12-11-2015, 03:47 PM
Post: #4
RE: Steam Table, A complete IAPWS IF-97 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


Attached File(s)
.hpprgm  Steam97.hpprgm (Size: 265.66 KB / Downloads: 191)
Find all posts by this user
Quote this message in a reply
07-03-2016, 09:55 PM
Post: #5
RE: Steam Table, A complete IAPWS IF-97 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!
Find all posts by this user
Quote this message in a reply
07-04-2016, 07:07 AM
Post: #6
RE: Steam Table, A complete IAPWS IF-97 standard
(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.
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!

Do you use the latest update from HP, because with the latest version I have also some problems.
Find all posts by this user
Quote this message in a reply
07-04-2016, 07:30 AM
Post: #7
RE: Steam Table, A complete IAPWS IF-97 standard
(07-04-2016 07:07 AM)Powersoft Wrote:  
(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.
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!

Do you use the latest update from HP, because with the latest version I have also some problems.
I fond the solution, some fixes in the code and all ok!
Works perfectly!
Thanks!
Find all posts by this user
Quote this message in a reply
07-05-2016, 02:37 AM
Post: #8
RE: Steam Table, A complete IAPWS IF-97 standard
Thanks a lot! Its a great job. But has a sintaxe error. Does anyone know how to fix?

Thanks.
Find all posts by this user
Quote this message in a reply
07-05-2016, 12:43 PM (This post was last modified: 07-05-2016 12:51 PM by roadrunner.)
Post: #9
RE: Steam Table, A complete IAPWS IF-97 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
Find all posts by this user
Quote this message in a reply
07-05-2016, 12:50 PM
Post: #10
RE: Steam Table, A complete IAPWS IF-97 standard
In the newer version that would be line 3305.

-road
Find all posts by this user
Quote this message in a reply
07-05-2016, 09:39 PM
Post: #11
RE: Steam Table, A complete IAPWS IF-97 standard
(07-05-2016 12:50 PM)roadrunner Wrote:  In the newer version that would be line 3305.

-road

It worked! Thank you very much! Smile

-Ziz
Find all posts by this user
Quote this message in a reply
05-10-2017, 07:21 PM
Post: #12
RE: Steam Table, A complete IAPWS IF-97 standard
Hi,
Please excuse me if this is very basic but I received the calculator just yesterday Smile
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 !!
Find all posts by this user
Quote this message in a reply
05-11-2017, 06:37 PM
Post: #13
RE: Steam Table, A complete IAPWS IF-97 standard
Quote:I tried: (from home)
Tsat_p(1)
and it gives me syntax error
How can I do it ?
Thanks !!
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.
[Image: dad92c2f1b0544639c192ac9e1d82d70.jpeg]

Secondly, make sure you managed to fix the source file as posted by roadrunner above.
Find all posts by this user
Quote this message in a reply
05-30-2017, 07:39 PM
Post: #14
RE: Steam Table, A complete IAPWS IF-97 standard
Hi,
I tried to load the progaram but I can't because the calculator crashes during loading.
Someone has a suggestion?

Thanks
Find all posts by this user
Quote this message in a reply
05-31-2017, 02:41 AM (This post was last modified: 05-31-2017 02:43 AM by Freire.)
Post: #15
RE: Steam Table, A complete IAPWS IF-97 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,

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
Make sure you followed these steps as well.
Find all posts by this user
Quote this message in a reply
08-20-2017, 11:26 AM
Post: #16
RE: Steam Table, A complete IAPWS IF-97 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
Find all posts by this user
Quote this message in a reply
10-21-2017, 04:08 PM
Post: #17
RE: Steam Table, A complete IAPWS IF-97 standard
The program not run. Just appears an exclamation point (!)

What to do ?
Find all posts by this user
Quote this message in a reply
07-06-2018, 02:57 PM
Post: #18
RE: Steam Table, A complete IAPWS IF-97 standard
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?
Find all posts by this user
Quote this message in a reply
07-08-2018, 03:05 AM
Post: #19
RE: Steam Table, A complete IAPWS IF-97 standard
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.
Find all posts by this user
Quote this message in a reply
09-15-2018, 05:36 PM
Post: #20
RE: Steam Table, A complete IAPWS IF-97 standard
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.
Find all posts by this user
Quote this message in a reply
Post Reply 




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