Web-Based Application for Calculation of Physical Properties of Hydrocarbon Fluids Using Compositional Approach

Authors

  • Silvya Dewi Rahmawati ITB
  • Aditya Firman Ihsan Telkom University
  • Darmadi Darmadi ITB
  • Faris Priadi ITB
  • Ucok WR Siagian ITB

Keywords:

compositional approach, hydrocarbon fluids, phase diagram, physical properties, web-based application

Abstract

The objective of this study is to develop a web-based application that can be used to generate phase diagram and calculate the physical properties of hydrocarbon fluids using a compositional approach. This study applies a combined calculation of critical temperature and pressure, bubble point pressure, dew point pressure, and dew point temperature to generate phase diagram. Calculation of critical temperature is carried out using the Chueh and Prausnitz equations, while the calculation of bubble point pressure, dew point pressure, and dew point temperature is carried out using the Newton-Rapshon method. Calculation of the physical properties of hydrocarbon fluids using a compositional approach includes parameters apparent molecular weight, compressibility factor, density, specific gravity, and viscosity for gas and liquid phases. The calculation of the compressibility factor uses the Equation of State (EOS). There are 2 choices of EOS correlation, namely Peng-Robinson and Soave-Reidlich-Kwong. Flash calculation using Newton-Rapshon method. Based on the results of the flash calculation, the physical properties of the hydrocarbon fluids for each of the above phases are calculated. The calculation of the viscosity of the gas phase uses the LeeGonzales-Eakin correlation, while the calculation of the viscosity of the liquid phase uses the LohrenzBray-Clark correlation. The both model of generates phase diagram and calculation of the physical properties of the hydrocarbon fluids is then implemented into a web-based application using the Dash Plotly framework. Dash plotly includes 3 components, namely the main programming language using Python3, a framework for building interfaces using ReactJS, and a framework for the backend using Flask. Testing results by using a set of hydrocarbon fluid data show the model can be used to predict volumetric properties and associated phase diagram as well as physical properties such as compressibility factor, density, specific gravity, and viscosity of gas and liquid phase of the fluid. Comparison with desktop version software results show that the model gives good results.

Published

30-05-2023

Issue

Section

Articles