Calculation of the compressibility factor and fugacity in oil-gas systems using cubic equations of state
Knowledge of thermodynamics properties and phase behavior in complex mixtures of hydrocarbons is essential to minimize risk and optimize production during the development of subsea oil and gas fields. In this sense, the main aim of this work was to calculate the compressibility factor and the fugacity of component in oil and gas systems at liquid-vapor equilibrium. Code built in Wolfram Mathematica® used an approach of compositional modeling to evaluate multicomponent mixtures of hydrocarbons. Cubic Equations of State (EoS) in general form: Peng-Robinson and Soave-Redlich-Kong, and classical mixing rules were implemented in the code. Furthermore, the algorithm developed performed Gibbs energy minimization during EoS resolution. Then, results compared to commercial simulators presented a good agreement. Therefore, tool was able to determine the compressibility factor and component fugacity of oil and gas phase composition in equilibrium condition.