@thorade

Steam tables for pure water as an ActiveX component in Visual Basic 6.0

. Computers & Geosciences, 29 (9): 1155 - 1163 (2003)
DOI: 10.1016/S0098-3004(03)00136-5

Abstract

The IAPWS-95 formulation for the thermodynamic properties of pure water was implemented as an ActiveX component (SteamTables) in Visual Basic 6.0. For input parameters as temperature (T=190-2000 K) and pressure (P=3.23×10-8-10,000 MPa) the program SteamTables calculates the following properties: volume (V), density (D), compressibility factor (Z0), internal energy (U), enthalpy (H), Gibbs free energy (G), Helmholtz free energy (A), entropy (S), heat capacity at constant pressure (Cp), heat capacity at constant volume (Cv), coefficient of thermal expansion (CTE), isothermal compressibility (Ziso), velocity of sound (VelS), partial derivative of P with T at constant V (dPdT), partial derivative of T with V at constant P (dTdV), partial derivative of V with P at constant T (dVdP), Joule-Thomson coefficient (JTC), isothermal throttling coefficient (IJTC), viscosity (Vis), thermal conductivity (ThrmCond), surface tension (SurfTen), Prandtl number (PrdNum) and dielectric constant (DielCons) for the liquid and vapor phases of pure water. It also calculates T as a function of P (or P as a function of T) along the sublimation, saturation and critical isochor curves, depending on the values of P (or T). The SteamTables can be incorporated in a program in any computer language, which supports object link embedding (OLE) in the Windows environment. An application of SteamTables is illustrated in a program in Visual Basic 6.0 to tabulate the values of the thermodynamic properties of water and vapor. Similarly, four functions, Temperature(Press), Pressure(Temp), State(Temp, Press) and WtrStmTbls(Temp, Press, Nphs, Nprop), where Temp, Press, Nphs and Nprop are temperature, pressure, phase number and property number, respectively, are written in Visual Basic for Applications (VBA) to use the SteamTables in a workbook in MS-Excel.

Description

ScienceDirect - Computers & Geosciences : Steam tables for pure water as an ActiveX component in Visual Basic 6.0*1

Links and resources

Tags