Professional Documents
Culture Documents
Conclusion
The initial units of XSteam are SI units as denoted in this document. All functions however
call unit conversion functions so the units can be easily changed. A text file with unit
conversion functions for English units are enclosed with the file.
For a list of valid Steam Table functions se section 3 or the XSteam macros for MS Excel.
Contents
1 INTRODUCTION ........................................................................................ 2
2 USING THE MATLAB IMPLEMENTATION................................................ 2
3 XSTEAM CALLING FUNCTIONS .............................................................. 3
3.1 Temperature .............................................................................................. 3
3.2 Pressure .................................................................................................... 3
3.3 Enthalpy .................................................................................................... 3
3.4 Specific volume......................................................................................... 3
3.5 Density....................................................................................................... 3
3.6 Specific entropy........................................................................................ 3
3.7 Specific internal energy............................................................................ 4
3.8 Specific isobaric heat capacity ................................................................ 4
3.9 Specific isochoric heat capacity.............................................................. 4
3.10 Speed of sound......................................................................................... 4
3.11 Viscosity.................................................................................................... 4
3.12 Thermal Conductivity ............................................................................... 5
3.13 Surface Tension........................................................................................ 5
3.14 Vapour fraction ......................................................................................... 5
3.15 Vapour Volume Fraction........................................................................... 5
1 INTRODUCTION
For accuracy and further information on IAPWS IF97 formulation, se homepage of the
international association for properties of water and steam (www.iapws.org).
X Steam are available both for matlab and for MS excel. The MS Excel version can be
useful also for matlab users to get valid calling functions.
Out=XSteam(‘function name’,In1,In2)
Function name are the name on the XSteam function and In1 and In2 are the inputs to that
function. The results are returned (in this case to Out).
Valid XSteam functions are listed in section 3. The notaions used in XSteam are listed in the
table bellow with the currently implemented.
3.1 Temperature
Function In1 In2 Out
Tsat_p p Saturation temperature
T_ph p H Temperture as a function of pressure and enthalpy
T_ps p S Temperture as a function of pressure and entropy
T_hs h S Temperture as a function of enthalpy and entropy
3.2 Pressure
Function In1 In2 Out
psat_T T Saturation pressure
p_hs h s Pressure as a function of h and s.
Pressure as a function of h and rho (density).
p_hrho h rho Very unaccurate for solid water region since it's almost
incompressible!
3.3 Enthalpy
Function In1 In2 Out
hV_p p Saturated vapour enthalpy
hL_p p Saturated liquid enthalpy
hV_T T Saturated vapour enthalpy
hL_T T Saturated liquid enthalpy
h_pT p T Entalpy as a function of pressure and temperature.
h_ps p s Entalpy as a function of pressure and entropy.
h_px p x Entalpy as a function of pressure and vapour fraction
h_Tx T X Entalpy as a function of temperature and vapour fraction
Entalpy as a function of pressure and density. Observe for
h_prho p rho low temperatures (liquid) this equation has 2 solutions.
(Not valid!!)
3.4 Specific volume
Function In1 In2 Out
vV_p p Saturated vapour volume
vL_p p Saturated liquid volume
vV_T T Saturated vapour volume
vL_T T Saturated liquid volume
Specific volume as a function of pressure and
v_pT p T
temperature.
v_ph p h Specific volume as a function of pressure and enthalpy
v_ps p s Specific volume as a function of pressure and entropy.
3.5 Density
Function In1 In2 Out
rhoV_p p Saturated vapour density
rhoL_p p Saturated liquid density
rhoV_T T Saturated vapour density
rhoL_T T Saturated liquid density
rho_pT p T Density as a function of pressure and temperature.
rho_ph p h Density as a function of pressure and enthalpy
rho_ps p s Density as a function of pressure and entropy.
3.6 Specific entropy
Function In1 In2 Out
sV_p p Saturated vapour entropy
sL_p p Saturated liquid entropy
sV_T T Saturated vapour entropy
sL_T T Saturated liquid entropy
Specific entropy as a function of pressure and temperature
p T
s_pT (Returns saturated vapour entalpy if mixture.)
s_ph p h Specific entropy as a function of pressure and enthalpy
3.7 Specific internal energy
Function In1 In2 Out
uV_p p Saturated vapour internal energy
uL_p p Saturated liquid internal energy
uV_T T Saturated vapour internal energy
uL_T T Saturated liquid internal energy
Specific internal energy as a function of pressure and
p T
u_pT temperature.
Specific internal energy as a function of pressure and
p h
u_ph enthalpy
Specific internal energy as a function of pressure and
p s
u_ps entropy.
3.8 Specific isobaric heat capacity
Function In1 In2 Out
CpV_p p Saturated vapour heat capacity
CpL_p p Saturated liquid heat capacity
CpV_T T Saturated vapour heat capacity
CpL_T T Saturated liquid heat capacity
Specific isobaric heat capacity as a function of pressure
p T
Cp_pT and temperature.
Specific isobaric heat capacity as a function of pressure
p h
Cp_ph and enthalpy
Specific isobaric heat capacity as a function of pressure
p s
Cp_ps and entropy.
3.9 Specific isochoric heat capacity
Function In1 In2 Out
CvV_p p Saturated vapour isochoric heat capacity
CvL_p p Saturated liquid isochoric heat capacity
CvV_T T Saturated vapour isochoric heat capacity
CvL_T T Saturated liquid isochoric heat capacity
Specific isochoric heat capacity as a function of pressure
p T
Cv_pT and temperature.
Specific isochoric heat capacity as a function of pressure
p h
Cv_ph and enthalpy
Specific isochoric heat capacity as a function of pressure
p s
Cv_ps and entropy.
3.10 Speed of sound
Function In1 In2 Out
wV_p p Saturated vapour speed of sound
wL_p p Saturated liquid speed of sound
wV_T T Saturated vapour speed of sound
wL_T T Saturated liquid speed of sound
Speed of sound as a function of pressure and
p T
w_pT temperature.
w_ph p h Speed of sound as a function of pressure and enthalpy
w_ps p s Speed of sound as a function of pressure and entropy.
3.11 Viscosity
Viscosity is not part of IAPWS Steam IF97. Equations from "Revised Release on the
IAPWS Formulation 1985 for the Viscosity of Ordinary Water Substance", 2003 are used.
Viscosity in the mixed region (4) is interpolated according to the density. This is not true
since it will be two fases.
Function In1 In2 Out
my_pT p T Viscosity as a function of pressure and temperature.
my_ph p h Viscosity as a function of pressure and enthalpy
my_ps p s Viscosity as a function of pressure and entropy.
3.12 Thermal Conductivity
Revised release on the IAPS Formulation 1985 for the Thermal Conductivity of ordinary
water substance (IAPWS 1998)