HCO-TERNARY: A FORTRAN code for calculating P-V-T-X properties and liquid vapor equilibria of fluids in the system H2O-CO2-CH4
The equation of state (EOS) for the system H2O-CO2-CH4 was programmed in a FORTRAN code which allows for its utilization in several modes. In one mode, specifically designed for mathematical modeling of two-phase, two-component flow, the code accepts as independent variables (1) pressure and (2) the composition of the gas phase. Other modes allow for the calculation of phase equilibria and/or the molar volumes of H2O and binary mixtures, with pressure and temperature as the input variables (just pressure in the case of H2O). Another mode is used to calculate phase equilibria for ternary mixtures, with pressure, temperature and the mole fraction of water in the gas phase as input variables. The algorithms for automatic convergence utilized in each mode are described. The code was tested extensively against experimental data from the literature. Some of these data were applied in the development of the EOS, and others were published subsequently. Analyses of the performance of the code and EOS for the modes described above, in the range 50-1000degreesC, 0-1000 bar, are presented. P-T-X regions of best applicability of the code and EOS are also identified. (C) 2003 Elsevier Science Ltd. All rights reserved.
equation of state volumetric properties vapor-liquid equilibria h2o-co2-ch4 fluids