Phase equilibrium calculations are important in various fields such as chemical engineering, materials science, and physics. The Peng-Robinson equation of state (EOS) is widely used to calculate phase behavior for mixtures of substances. This paper presents a program for isothermal and isobaric phase-equilibrium calculations using the Peng-Robinson EOS. The program utilizes successive substitution for both single-phase stability analysis and two-phase flash, and allows for multiple initial guesses and variable input parameters for flexibility. The program is designed to be easily modified to accommodate changes in the number of components, overall composition, temperature, pressure, critical temperature and pressure, acentric factors, binary interaction parameters, convergence criteria, and maximum numbers of iterations for iteration loops. The program is then used to analyze the phase behavior of various mixtures, including a binary mixture of n-hexane and n-hexatriacontane, and a ternary mixture of CO2-n-C4-n-C10 at 180 °F and 1700 psia. The results show the bubble- and dew-point curves for the binary mixture, as well as the effect of the binary interaction parameter on the Gibbs energy and phase envelope. The ternary phase diagram for the CO2-n-C4-n-C10 mixture is also presented, along with a Gibbs free energy plot of equilibrium two-phase compositions. Overall, this program and its results have important implications for a variety of fields, including chemical engineering and materials science. The program can be used to design and develop new materials and processes in these fields by accurately predicting the phase behavior of mixtures under different conditions.
Primary Language | English |
---|---|
Subjects | Geological Sciences and Engineering (Other) |
Journal Section | Research Articles |
Authors | |
Publication Date | May 10, 2023 |
Published in Issue | Year 2023 Volume: 5 Issue: 1 |